Class CheckerFixerFactory
java.lang.Object
chemaxon.structurechecker.factory.CheckerFixerFactory
Factory for structure checkers and structure fixers.
- Since:
- 5.12
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class forCheckerFixerFactory.static classDescriptor of a checker classstatic classDescriptor of a classstatic classDescriptor of a fixer class -
Field Summary
Fields -
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 aStructureFixerinstance identified by fixerId parametersThis method returns allStructureCheckerinstances available by the current configurationThis method returns allStructureFixerinstances available by the current configurationstatic CheckerFixerFactoryCreates aCheckerFixerFactorybased on theDEFAULT_CONFIGURATION_PATHand the user defined checkers/fixers located at the default userstatic voidReloads the content of the default factory instancevoidwriteConfiguration(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 aCheckerFixerFactorybased on theDEFAULT_CONFIGURATION_PATHand 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 allStructureCheckerinstances available by the current configuration- Returns:
- all
StructureCheckerinstances available by the current configuration
-
getAvailableFixers
This method returns allStructureFixerinstances available by the current configuration- Returns:
- all
StructureFixerinstances 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 aMapcontainsStringpairs representing a property bag should be passed to the checker instance- Returns:
- a well configured
StructureCheckerinstance
-
createFixer
This method creates aStructureFixerinstance identified by fixerId parameters- Parameters:
fixerId- aStringobject which is the unique id of theStructureFixerclass- Returns:
- a
StructureFixerinstance 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
-