|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.anadix.Anadix
public final class Anadix
Main class to interact with Anadix analyzing engine. The basic methods are provided for creation of analyzer, report formatting and setting the implementations of Parser, ConditionSet and ReportFormatter used. All operations are done either with default implementations (Section508, Swingparser and SimpleRepportFormatter) or with the implementations provided.
| Method Summary | |
|---|---|
static Report |
deserializeReport(File source)
Deserializes the serialized report from a file. |
static boolean |
formatReport(Report report)
Tries to format given report and store it in report directory. |
static boolean |
formatReport(Report report,
String fileName)
Tries to format given report and store it in the report directory under specified name. |
static Analyzer |
newAnalyzer()
Creates a new Analyzer instance. |
static Analyzer |
newAnalyzer(ConditionSet conditions)
Creates a new Analyzer instance. |
static Analyzer |
newAnalyzer(ConditionSet conditions,
Parser parser)
Creates a new Analyzer instance. |
static void |
serializeReport(Report report,
File target)
Serializes the report to a file for later use. |
static boolean |
setDefaultConditionSet(Class<? extends ConditionSet> clazz)
Sets the ConditionSet class that is to be used by default |
static boolean |
setDefaultConditionSet(String clazz)
Sets the ConditionSet class that is to be used by default |
static boolean |
setDefaultFormatter(Class<? extends ReportFormatter> clazz)
Sets the ReportFormatter class that is to be used by default |
static boolean |
setDefaultFormatter(String clazz)
Sets the ReportFormatter class that is to be used by default |
static boolean |
setDefaultParser(Class<? extends Parser> clazz)
Sets the Parser class that is to be used by default |
static boolean |
setDefaultParser(String clazz)
Sets the Parser class that is to be used by default |
static boolean |
setReportDirectory(File path)
Sets the directory where all reports are stored |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Analyzer newAnalyzer()
throws InstantiationException
InstantiationException - when problem occurs during Analyzer creation
public static Analyzer newAnalyzer(ConditionSet conditions)
throws InstantiationException
conditions - - instance of ConditionSet used to analyze parsed sources
InstantiationException - when problem occurs during Analyzer creation
public static Analyzer newAnalyzer(ConditionSet conditions,
Parser parser)
throws InstantiationException
conditions - - instance of ConditionSet used to analyze parsed sourcesparser - - instance of Parser used to parse sources
InstantiationException - when problem occurs during Analyzer creationpublic static boolean formatReport(Report report)
report - - instance of Report received upon successful analysis
public static boolean formatReport(Report report,
String fileName)
report - - instance of Report received upon successful analysisfileName - - name of the file to store results to
public static boolean setDefaultParser(String clazz)
clazz - Parser class
public static boolean setDefaultParser(Class<? extends Parser> clazz)
clazz - instance of class extending Parser
public static boolean setDefaultConditionSet(String clazz)
clazz - ConditionSet class
public static boolean setDefaultConditionSet(Class<? extends ConditionSet> clazz)
clazz - - instance of class extending ConditionSet
public static boolean setDefaultFormatter(String clazz)
clazz - - instance of class extending ReportFormatter
public static boolean setDefaultFormatter(Class<? extends ReportFormatter> clazz)
clazz - - instance of class extending ReportFormatter
public static boolean setReportDirectory(File path)
path - - instance of File pointing to a directory
public static void serializeReport(Report report,
File target)
throws FileNotFoundException
report - Report to serializetarget - file to store report to
FileNotFoundException - if the file exists but is a directory rather than a
regular file, does not exist but cannot be created, or cannot be opened for any
other reasonpublic static Report deserializeReport(File source)
source - file from which the report should be deserialized
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||