public class XMLBasedConfigurationReader extends 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 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(InputStream inputStream)
Initiate an
XMLBasedConfigurationReader instance with the given
inputSteam with the configuration |
Modifier and Type | Method and Description |
---|---|
List<StructureChecker> |
getCheckerList() |
Map<StructureCheckerErrorType,StructureFixer> |
getErrorTypeDefaultFixerMap() |
static boolean |
isValid(InputStream inputStream)
Checks whether the contents of the provided input stream is a valid
configuration XML
|
public static final String DEFAULT_CONFIGURATION_SCHEMA
public XMLBasedConfigurationReader(InputStream inputStream)
XMLBasedConfigurationReader
instance with the given
inputSteam with the configurationinputStream
- an InputStream
instancepublic List<StructureChecker> getCheckerList()
getCheckerList
in interface ConfigurationReader
List
of StructureChecker
instances which can be run by a CheckerRunner
instancepublic Map<StructureCheckerErrorType,StructureFixer> getErrorTypeDefaultFixerMap()
getErrorTypeDefaultFixerMap
in interface ConfigurationReader
Map
which contains the association between StructureCheckerErrorType
and StructureFixer
instancespublic static boolean isValid(InputStream inputStream)
inputStream
- the input stream containing the configuration