Class StructureCheckerConfigurationXmlReader
java.lang.Object
chemaxon.structurechecker.configuration.StructureCheckerConfigurationXmlReader
- All Implemented Interfaces:
StructureCheckerConfigurationReader
@PublicApi
public class StructureCheckerConfigurationXmlReader
extends Object
implements StructureCheckerConfigurationReader
Structure Checker configuration reader for parsing XML configuration files.
- Since:
- Marvin 5.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default location of Chemaxon standard checker runner configurationFields inherited from interface chemaxon.structurechecker.configuration.StructureCheckerConfigurationReader
DEFAULT_USER_CHECKER_FILENAME -
Constructor Summary
ConstructorsConstructorDescriptionStructureCheckerConfigurationXmlReader(InputStream inputStream) Initiate anStructureCheckerConfigurationXmlReaderinstance with the given inputSteam with the configurationStructureCheckerConfigurationXmlReader(InputStream inputStream, CheckerFixerFactory factory) Initiate anStructureCheckerConfigurationXmlReaderinstance with the given inputSteam with the configuration -
Method Summary
Modifier and TypeMethodDescriptionReturns the list ofStructureCheckerinstances, which can be run by aCheckerRunnerinstance.Returns a map that contains the association betweenStructureCheckerErrorTypeandStructureFixerinstances.static 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
-
StructureCheckerConfigurationXmlReader
Initiate anStructureCheckerConfigurationXmlReaderinstance with the given inputSteam with the configuration- Parameters:
inputStream- anInputStreaminstance
-
StructureCheckerConfigurationXmlReader
Initiate anStructureCheckerConfigurationXmlReaderinstance 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
Description copied from interface:StructureCheckerConfigurationReaderReturns the list ofStructureCheckerinstances, which can be run by aCheckerRunnerinstance.- Specified by:
getCheckerListin interfaceStructureCheckerConfigurationReader
-
getErrorTypeDefaultFixerMap
Description copied from interface:StructureCheckerConfigurationReaderReturns a map that contains the association betweenStructureCheckerErrorTypeandStructureFixerinstances.- Specified by:
getErrorTypeDefaultFixerMapin interfaceStructureCheckerConfigurationReader
-
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
-