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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default location of Chemaxon standard checker runner configurationFields inherited from interface chemaxon.checkers.runner.configuration.reader.ConfigurationReader
DEFAULT_CHECKERS_CONFIG_PATH, DEFAULT_USER_CHECKER_FILENAME, USER_CHECKERS_CONFIG_PATH -
Constructor Summary
ConstructorsConstructorDescriptionXMLBasedConfigurationReader(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 Summary
Modifier and TypeMethodDescriptionstatic booleanisValid(InputStream inputStream) Checks whether the contents of the provided input stream is a valid configuration XML
-
Field Details
-
DEFAULT_CONFIGURATION_SCHEMA
The default location of Chemaxon standard checker runner configuration- See Also:
-
-
Constructor Details
-
XMLBasedConfigurationReader
Initiate anXMLBasedConfigurationReaderinstance with the given inputSteam with the configuration- Parameters:
inputStream- anInputStreaminstance
-
XMLBasedConfigurationReader
Initiate anXMLBasedConfigurationReaderinstance with the given inputSteam with the configuration- Parameters:
inputStream- anInputStreaminstancefactory- a customCheckerFixerFactorywhich gives the possibility for this instance to be able to recognize configurations that contain custom implementedStructureCheckerinstances
-
-
Method Details
-
getCheckerList
- Specified by:
getCheckerListin interfaceConfigurationReader- Returns:
- the
ListofStructureCheckerinstances which can be run by aCheckerRunnerinstance
-
getErrorTypeDefaultFixerMap
- Specified by:
getErrorTypeDefaultFixerMapin interfaceConfigurationReader- Returns:
- a
Mapwhich contains the association betweenStructureCheckerErrorTypeandStructureFixerinstances
-
isValid
Checks 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
-