@PublicAPI public class XMLBasedConfigurationReader extends java.lang.Object implements ConfigurationReader
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)Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_CONFIGURATION_SCHEMA
The default location of ChemAxon standard checker runner configuration
|
DEFAULT_CHECKERS_CONFIG_PATH, DEFAULT_USER_CHECKER_FILENAME, USER_CHECKERS_CONFIG_PATH
Constructor and Description |
---|
XMLBasedConfigurationReader(java.io.InputStream inputStream)
Initiate an
XMLBasedConfigurationReader instance with the given
inputSteam with the configuration |
XMLBasedConfigurationReader(java.io.InputStream inputStream,
chemaxon.structurechecker.factory.CheckerFixerFactory factory)
Initiate an
XMLBasedConfigurationReader instance with the given
inputSteam with the configuration |
Modifier and Type | Method and Description |
---|---|
java.util.List<StructureChecker> |
getCheckerList() |
java.util.Map<StructureCheckerErrorType,StructureFixer> |
getErrorTypeDefaultFixerMap() |
static boolean |
isValid(java.io.InputStream inputStream)
Checks whether the contents of the provided input stream is a valid
configuration XML
|
public static final java.lang.String DEFAULT_CONFIGURATION_SCHEMA
public XMLBasedConfigurationReader(java.io.InputStream inputStream)
XMLBasedConfigurationReader
instance with the given
inputSteam with the configurationinputStream
- an InputStream
instancepublic XMLBasedConfigurationReader(java.io.InputStream inputStream, chemaxon.structurechecker.factory.CheckerFixerFactory factory)
XMLBasedConfigurationReader
instance with the given
inputSteam with the configurationinputStream
- an InputStream
instancefactory
- a custom CheckerFixerFactory
which gives the
possibility for this instance to be able to recognize
configurations that contain custom implemented
StructureChecker
instancespublic java.util.List<StructureChecker> getCheckerList()
getCheckerList
in interface ConfigurationReader
List
of StructureChecker
instances which can be run by a CheckerRunner
instancepublic java.util.Map<StructureCheckerErrorType,StructureFixer> getErrorTypeDefaultFixerMap()
getErrorTypeDefaultFixerMap
in interface ConfigurationReader
Map
which contains the association between StructureCheckerErrorType
and StructureFixer
instancespublic static boolean isValid(java.io.InputStream inputStream)
inputStream
- the input stream containing the configuration