Class CheckerFixerFactory.Builder

java.lang.Object
chemaxon.structurechecker.factory.CheckerFixerFactory.Builder
Enclosing class:
CheckerFixerFactory

public static class CheckerFixerFactory.Builder extends Object
Builder class for CheckerFixerFactory.
Since:
5.12
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • add

      public void add(URL url) throws IOException
      Adds an input stream containing checker and fixer specifications to be stored by the output factory
      Parameters:
      url - a URL of an entity containing checker and fixer specification
      Throws:
      IOException
    • add

      public void add(InputStream inputStream)
      Adds an input stream containing checker and fixer specifications to be stored by the output factory
      Parameters:
      inputStream - an input stream containing checker and fixer specifications
    • add

      public void add(Properties properties)
      Adds a property map containing properties of checkers and fixers to be stored by the output factory
      Parameters:
      properties - an input stream containing properties of checkers and fixers
    • add

      public void add(CheckerFixerFactory.CheckerClassDescriptor descriptor)
      Adds a checker class descriptor to the factory
      Parameters:
      descriptor - the descriptor of the checker class
    • add

      public void add(CheckerFixerFactory.FixerClassDescriptor descriptor)
      Adds a fixer class descriptor to the factory
      Parameters:
      descriptor - the descriptor of the fixer class
    • merge

      public void merge(CheckerFixerFactory other)
      Adds all checkers, fixers and properties registered in the given other factory instance. Warning: This method may be used outside ccl as well!
      Parameters:
      other - the factory whose checkers, fixers and properties should be added
    • build

      public CheckerFixerFactory build()
      Builds a CheckerFixerFactory based no the previously added InputStream and Properties instances
      Returns:
      the built factory