Package chemaxon.checkers
Class StructureCheckerFactory
java.lang.Object
chemaxon.checkers.StructureCheckerFactory
Deprecated.
This is a factory class providing functionality of creating
Please note that factory instances will use class loaders to load external checkers, and that can lead to problems when using checker editor components, as external checkers loaded with different factories are different types. In most cases using
StructureChecker instances by name with the given parameters.Please note that factory instances will use class loaders to load external checkers, and that can lead to problems when using checker editor components, as external checkers loaded with different factories are different types. In most cases using
getInstance() or
getInstance(String, String) instead of creating multiple factory
instances is a safe way to load default and external checkers.- Since:
- Marvin 5.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Chemaxon's default checker configuration file namestatic final StringDeprecated.default factory idstatic final StringDeprecated.Chemaxon's default checker configuration pathstatic final StringDeprecated.Chemaxon's default checker configuration file schema pathstatic final StringDeprecated.Users checker configuration file name -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Please consider usinggetInstance()instead of calling this constructor directly.StructureCheckerFactory(InputStream internalCheckerConfigStream, InputStream externalCheckerConfigStream) Deprecated.Please consider usinggetInstance(String, String)instead of calling this constructor directly.StructureCheckerFactory(String path, String externalPath) Deprecated.Please consider usinggetInstance(String, String)instead of calling this constructor directly. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns a list of checkers availablegetChecker(String checkerId, Map<String, String> params) Deprecated.This method creates a requested (type represented in checkerId) StructureChecker instance with the give parametersstatic StructureCheckerFactoryDeprecated.Returns the default factory instance.static StructureCheckerFactorygetInstance(String path, String externalPath) Deprecated.Returns the factory instance for specified paths.static voidDeprecated.Forces reload of factory data.
-
Field Details
-
DEFAULT
Deprecated.default factory id- See Also:
-
CHECKERCONFIG_XML
Deprecated.Chemaxon's default checker configuration file name- See Also:
-
USER_DEFINED_CHECKERCONFIG_XML
Deprecated.Users checker configuration file name- See Also:
-
DEFAULT_CONFIGURATION_PATH
Deprecated.Chemaxon's default checker configuration path- See Also:
-
DEFAULT_CONFIGURATION_SCHEMA
Deprecated.Chemaxon's default checker configuration file schema path- See Also:
-
-
Constructor Details
-
StructureCheckerFactory
Deprecated.Please consider usinggetInstance()instead of calling this constructor directly.
Default constructor. Default configurations will be read. -
StructureCheckerFactory
Deprecated.Please consider usinggetInstance(String, String)instead of calling this constructor directly.
With this constructor inner and external configuration location can be defined.- Parameters:
path- the location of the configuration xml for the inner checker classesexternalPath- the location of the configuration xml for the external checker classes
-
StructureCheckerFactory
@Deprecated public StructureCheckerFactory(InputStream internalCheckerConfigStream, InputStream externalCheckerConfigStream) Deprecated.Please consider usinggetInstance(String, String)instead of calling this constructor directly.
With this constructor inner and external configuration location can be defined.- Parameters:
internalCheckerConfigStream- the stream containing the configuration xml for the inner checker classesexternalCheckerConfigStream- the stream containing the configuration xml for the external checker classes
-
-
Method Details
-
getAvailableCheckers
Deprecated.Returns a list of checkers available- Returns:
- a list of checkers available
- Since:
- 5.7
-
getChecker
Deprecated.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
-
reloadDefaultMap
public static void reloadDefaultMap()Deprecated.Forces reload of factory data.- Since:
- 5.12
-
getInstance
Deprecated.Returns the default factory instance.- Returns:
- the default factory instance
- Since:
- 5.11
-
getInstance
Deprecated.Returns the factory instance for specified paths.- Parameters:
path- the internal checker path (resource path)externalPath- the external checker path (file path)- Returns:
- the factory instance for paths
- Since:
- 5.11
-
CheckerFixerFactoryinstead