Package chemaxon.checkers
Class StructureCheckerFactory
- java.lang.Object
-
- chemaxon.checkers.StructureCheckerFactory
-
@Deprecated @PublicAPI public final class StructureCheckerFactory extends Object
Deprecated.useCheckerFixerFactory
insteadThis is a factory class providing functionality of creatingStructureChecker
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 usinggetInstance()
orgetInstance(String, String)
instead of creating multiple factory instances is a safe way to load default and external checkers.- Since:
- Marvin 5.3
-
-
Field Summary
Fields Modifier and Type Field Description static String
CHECKERCONFIG_XML
Deprecated.Chemaxon's default checker configuration file namestatic String
DEFAULT
Deprecated.default factory idstatic String
DEFAULT_CONFIGURATION_PATH
Deprecated.Chemaxon's default checker configuration pathstatic String
DEFAULT_CONFIGURATION_SCHEMA
Deprecated.Chemaxon's default checker configuration file schema pathstatic String
USER_DEFINED_CHECKERCONFIG_XML
Deprecated.Users checker configuration file name
-
Constructor Summary
Constructors Constructor Description StructureCheckerFactory()
Deprecated.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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<StructureChecker>
getAvailableCheckers()
Deprecated.Returns a list of checkers availableStructureChecker
getChecker(String checkerId, Map<String,String> params)
Deprecated.This method creates a requested (type represented in checkerId) StructureChecker instance with the give parametersstatic StructureCheckerFactory
getInstance()
Deprecated.Returns the default factory instance.static StructureCheckerFactory
getInstance(String path, String externalPath)
Deprecated.Returns the factory instance for specified paths.static void
reloadDefaultMap()
Deprecated.Forces reload of factory data.
-
-
-
Field Detail
-
DEFAULT
public static final String DEFAULT
Deprecated.default factory id- See Also:
- Constant Field Values
-
CHECKERCONFIG_XML
public static final String CHECKERCONFIG_XML
Deprecated.Chemaxon's default checker configuration file name- See Also:
- Constant Field Values
-
USER_DEFINED_CHECKERCONFIG_XML
public static final String USER_DEFINED_CHECKERCONFIG_XML
Deprecated.Users checker configuration file name- See Also:
- Constant Field Values
-
DEFAULT_CONFIGURATION_PATH
public static final String DEFAULT_CONFIGURATION_PATH
Deprecated.Chemaxon's default checker configuration path- See Also:
- Constant Field Values
-
DEFAULT_CONFIGURATION_SCHEMA
public static final String DEFAULT_CONFIGURATION_SCHEMA
Deprecated.Chemaxon's default checker configuration file schema path- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StructureCheckerFactory
@Deprecated public StructureCheckerFactory()
Deprecated.Please consider usinggetInstance()
instead of calling this constructor directly.
Default constructor. Default configurations will be read.
-
StructureCheckerFactory
@Deprecated public StructureCheckerFactory(String path, String externalPath)
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 Detail
-
getAvailableCheckers
public List<StructureChecker> getAvailableCheckers()
Deprecated.Returns a list of checkers available- Returns:
- a list of checkers available
- Since:
- 5.7
-
getChecker
public StructureChecker getChecker(String checkerId, Map<String,String> params)
Deprecated.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
-
reloadDefaultMap
public static void reloadDefaultMap()
Deprecated.Forces reload of factory data.- Since:
- 5.12
-
getInstance
public static StructureCheckerFactory getInstance()
Deprecated.Returns the default factory instance.- Returns:
- the default factory instance
- Since:
- 5.11
-
getInstance
public static StructureCheckerFactory getInstance(String path, String externalPath)
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
-
-