org.anadix.impl
Class ReportImpl

java.lang.Object
  extended by org.anadix.impl.ReportImpl
All Implemented Interfaces:
Report

public class ReportImpl
extends Object
implements Report

ReportImpl class.

Version:
$Id: $
Author:
tomason

Constructor Summary
ReportImpl(org.drools.runtime.StatefulKnowledgeSession ksession, Source source)
          Constructor
 
Method Summary
 List<ReportItem> getErrors()
          Lists all elements with critical errors.
 List<ReportItem> getInfos()
          Lists all information items
 List<ReportItem> getManuals()
          Lists all elements that require manual check
 List<ReportItem> getOks()
          Lists all elements that are all right.
 Source getSource()
          Gets the Source this report was generated for
 List<ReportItem> getWarnings()
          Lists all elements that have non-critical errors.
 String report()
          Creates a simple format String that lists all ReportItems resulting from single analysis.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReportImpl

public ReportImpl(org.drools.runtime.StatefulKnowledgeSession ksession,
                  Source source)
Constructor

Parameters:
ksession - - session to generate report from
source - - source that was analyzed
Method Detail

getSource

public Source getSource()
Gets the Source this report was generated for

Specified by:
getSource in interface Report
Returns:
Source this Report was generated from

getOks

public List<ReportItem> getOks()
Lists all elements that are all right. Note that not all ConditionSets insert ReportItems without mistakes!

Specified by:
getOks in interface Report
Returns:
list of ReportItem that have OK status

getWarnings

public List<ReportItem> getWarnings()
Lists all elements that have non-critical errors. Note that not all ConditionSets insert ReportItems with minor mistakes!

Specified by:
getWarnings in interface Report
Returns:
list of ReportItem that have WARNING status

getErrors

public List<ReportItem> getErrors()
Lists all elements with critical errors.

Specified by:
getErrors in interface Report
Returns:
list of ReportItem that have ERROR status

getManuals

public List<ReportItem> getManuals()
Lists all elements that require manual check

Specified by:
getManuals in interface Report
Returns:
list of ReportItems that have MANUAL status

getInfos

public List<ReportItem> getInfos()
Lists all information items

Specified by:
getInfos in interface Report
Returns:
list of ReportItems that have INFO status

report

public String report()
Creates a simple format String that lists all ReportItems resulting from single analysis. Please note that this format should be used for debugging only!

Specified by:
report in interface Report
Returns:
string representation of this instance

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.