Class StructureCheckerFactory

java.lang.Object
chemaxon.checkers.StructureCheckerFactory

@Deprecated @PublicApi public final class StructureCheckerFactory extends Object
Deprecated.
This is a factory class providing functionality of creating 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 Details

    • DEFAULT

      public static final String DEFAULT
      Deprecated.
      default factory id
      See Also:
    • CHECKERCONFIG_XML

      public static final String CHECKERCONFIG_XML
      Deprecated.
      Chemaxon's default checker configuration file name
      See Also:
    • USER_DEFINED_CHECKERCONFIG_XML

      public static final String USER_DEFINED_CHECKERCONFIG_XML
      Deprecated.
      Users checker configuration file name
      See Also:
    • DEFAULT_CONFIGURATION_PATH

      public static final String DEFAULT_CONFIGURATION_PATH
      Deprecated.
      Chemaxon's default checker configuration path
      See Also:
    • DEFAULT_CONFIGURATION_SCHEMA

      public static final String DEFAULT_CONFIGURATION_SCHEMA
      Deprecated.
      Chemaxon's default checker configuration file schema path
      See Also:
  • Constructor Details

    • StructureCheckerFactory

      @Deprecated public StructureCheckerFactory()
      Deprecated.
      Please consider using getInstance() instead of calling this constructor directly.

      Default constructor. Default configurations will be read.
    • StructureCheckerFactory

      @Deprecated public StructureCheckerFactory(String path, String externalPath)
      Deprecated.
      Please consider using getInstance(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 classes
      externalPath - the location of the configuration xml for the external checker classes
    • StructureCheckerFactory

      @Deprecated public StructureCheckerFactory(InputStream internalCheckerConfigStream, InputStream externalCheckerConfigStream)
      Deprecated.
      Please consider using getInstance(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 classes
      externalCheckerConfigStream - the stream containing the configuration xml for the external checker classes
  • Method Details

    • 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 checker
      params - is a Map contains String 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