Class XMLBasedConfigurationReader
java.lang.Object
chemaxon.checkers.runner.configuration.reader.XMLBasedConfigurationReader
- All Implemented Interfaces:
- ConfigurationReader
A descendant of 
ConfigurationReader which can read
 CheckerRunner configuration described Chemaxon's own checker
 configuration XML format (schema in jar:
 chemaxon/checkers/runner/configuration
 /reader/resoruce/checkerconfiguation.xsd)- Since:
- Marvin 5.3
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe default location of Chemaxon standard checker runner configurationFields inherited from interface chemaxon.checkers.runner.configuration.reader.ConfigurationReaderDEFAULT_CHECKERS_CONFIG_PATH, DEFAULT_USER_CHECKER_FILENAME, USER_CHECKERS_CONFIG_PATH
- 
Constructor SummaryConstructorsConstructorDescriptionXMLBasedConfigurationReader(InputStream inputStream) Initiate anXMLBasedConfigurationReaderinstance with the given inputSteam with the configurationXMLBasedConfigurationReader(InputStream inputStream, CheckerFixerFactory factory) Initiate anXMLBasedConfigurationReaderinstance with the given inputSteam with the configuration
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleanisValid(InputStream inputStream) Checks whether the contents of the provided input stream is a valid configuration XML
- 
Field Details- 
DEFAULT_CONFIGURATION_SCHEMAThe default location of Chemaxon standard checker runner configuration- See Also:
 
 
- 
- 
Constructor Details- 
XMLBasedConfigurationReaderInitiate anXMLBasedConfigurationReaderinstance with the given inputSteam with the configuration- Parameters:
- inputStream- an- InputStreaminstance
 
- 
XMLBasedConfigurationReaderInitiate anXMLBasedConfigurationReaderinstance with the given inputSteam with the configuration- Parameters:
- inputStream- an- InputStreaminstance
- factory- a custom- CheckerFixerFactorywhich gives the possibility for this instance to be able to recognize configurations that contain custom implemented- StructureCheckerinstances
 
 
- 
- 
Method Details- 
getCheckerList- Specified by:
- getCheckerListin interface- ConfigurationReader
- Returns:
- the ListofStructureCheckerinstances which can be run by aCheckerRunnerinstance
 
- 
getErrorTypeDefaultFixerMap- Specified by:
- getErrorTypeDefaultFixerMapin interface- ConfigurationReader
- Returns:
- a Mapwhich contains the association betweenStructureCheckerErrorTypeandStructureFixerinstances
 
- 
isValidChecks whether the contents of the provided input stream is a valid configuration XML- Parameters:
- inputStream- the input stream containing the configuration
- Returns:
- true if valid configuration, false otherwise
 
 
-