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
Modifier and TypeFieldDescriptionstatic final String
The 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
ConstructorDescriptionXMLBasedConfigurationReader
(InputStream inputStream) Initiate anXMLBasedConfigurationReader
instance with the given inputSteam with the configurationXMLBasedConfigurationReader
(InputStream inputStream, CheckerFixerFactory factory) Initiate anXMLBasedConfigurationReader
instance with the given inputSteam with the configuration -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isValid
(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 anXMLBasedConfigurationReader
instance with the given inputSteam with the configuration- Parameters:
inputStream
- anInputStream
instance
-
XMLBasedConfigurationReader
Initiate anXMLBasedConfigurationReader
instance with the given inputSteam with the configuration- Parameters:
inputStream
- anInputStream
instancefactory
- a customCheckerFixerFactory
which gives the possibility for this instance to be able to recognize configurations that contain custom implementedStructureChecker
instances
-
-
Method Details
-
getCheckerList
- Specified by:
getCheckerList
in interfaceConfigurationReader
- Returns:
- the
List
ofStructureChecker
instances which can be run by aCheckerRunner
instance
-
getErrorTypeDefaultFixerMap
- Specified by:
getErrorTypeDefaultFixerMap
in interfaceConfigurationReader
- Returns:
- a
Map
which contains the association betweenStructureCheckerErrorType
andStructureFixer
instances
-
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
-