Class CheckerFixerFactory
java.lang.Object
chemaxon.structurechecker.factory.CheckerFixerFactory
Factory for structure checkers and structure fixers.
- Since:
- 5.12
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class forCheckerFixerFactory
.static class
Descriptor of a checker classstatic class
Descriptor of a classstatic class
Descriptor of a fixer class -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateChecker
(String checkerId, Map<String, String> params) This method creates a requested (type represented in checkerId) StructureChecker instance with the give parameterscreateFixer
(String fixerId) This method creates aStructureFixer
instance identified by fixerId parametersThis method returns allStructureChecker
instances available by the current configurationThis method returns allStructureFixer
instances available by the current configurationstatic CheckerFixerFactory
Creates aCheckerFixerFactory
based on theDEFAULT_CONFIGURATION_PATH
and the user defined checkers/fixers located at the default userstatic void
Reloads the content of the default factory instancevoid
writeConfiguration
(OutputStream outputstream) Writes the factory configuration to the output stream
-
Field Details
-
EXTERNAL_CHECKER_CONFIGURATION_PATH_PROPERTY_KEY
Java System Property key to globally override default configuration path. Accepts absolute file path or URL in String format.- Since:
- 6.1.1
- See Also:
-
DEFAULT
default factory id- See Also:
-
USER_DEFINED_CHECKERCONFIG_XML
Users checker configuration file name- See Also:
-
DEFAULT_CONFIGURATION_PATH
Chemaxon's default checker configuration path- See Also:
-
-
Method Details
-
getInstance
Creates aCheckerFixerFactory
based on theDEFAULT_CONFIGURATION_PATH
and the user defined checkers/fixers located at the default user- Returns:
- the default checker fixer factory
-
reloadDefaultInstance
public static void reloadDefaultInstance()Reloads the content of the default factory instance -
getAvailableCheckers
This method returns allStructureChecker
instances available by the current configuration- Returns:
- all
StructureChecker
instances available by the current configuration
-
getAvailableFixers
This method returns allStructureFixer
instances available by the current configuration- Returns:
- all
StructureFixer
instances available by the current configuration
-
createChecker
This method creates a requested (type represented in checkerId) StructureChecker instance with the give parameters- Parameters:
checkerId
- the Id of the checkerparams
- is aMap
containsString
pairs representing a property bag should be passed to the checker instance- Returns:
- a well configured
StructureChecker
instance
-
createFixer
This method creates aStructureFixer
instance identified by fixerId parameters- Parameters:
fixerId
- aString
object which is the unique id of theStructureFixer
class- Returns:
- a
StructureFixer
instance if there is any identified by the fixerName parameter, null otherwise
-
writeConfiguration
Writes the factory configuration to the output stream- Parameters:
outputstream
- the target output stream
-