jsystem.framework.analyzer
Interface Analyzer

All Known Implementing Classes:
AnalyzerImpl

public interface Analyzer

Any system object implement an Analyzer as well. The Analyzer work in 2 steps: In the first the object to analyze is set by using setTestAgainsObject. it's the system object task to do it. Then the analyze or the silenceAnalyze method are called.


Method Summary
 void analyze(AnalyzerParameter parameter)
          Analyze the result.
 void analyze(AnalyzerParameter parameter, boolean silent)
          Analyze the result.
 void setTestAgainsObject(Object o)
          Set the object to analyze.
 

Method Detail

analyze

public void analyze(AnalyzerParameter parameter)
             throws AnalyzerException
Analyze the result. Report to the reporter. Send AnalyzerException if analyze fails.

Parameters:
parameter - The analyzer parameter object.
Throws:
AnalyzerException

analyze

public void analyze(AnalyzerParameter parameter,
                    boolean silent)
             throws AnalyzerException
Analyze the result. Report to the reporter.if not silent Send AnalyzerException if analyze fails.

Parameters:
parameter - The analyzer parameter object.
silent - if silent no reports will be submit
Throws:
AnalyzerException

setTestAgainsObject

public void setTestAgainsObject(Object o)
Set the object to analyze. This method is called by the system object.

Parameters:
o - The object to analyze. can be String ResultSet or any other object.