Interface MDReaderFactory

All Known Subinterfaces:
CfpTableReader.Factory, EcfpTableReader.Factory, PfTableReader.Factory

@Beta @PublicApi public interface MDReaderFactory
Factory class for MDTableReader.

Represents bridge creation for a class of descriptors from the chemaxon.descriptors API. An instance can check an XML descriptor configuration if it can handle.

Please note that this interface is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(String xmlConfig)
    Returns true if this factory can handle the given xml.
    createReader(String xmlConfig)
    Generates reader object.
  • Method Details

    • canHandle

      boolean canHandle(String xmlConfig)
      Returns true if this factory can handle the given xml.

      Note that the wrapping of underlying Standardizer is not checked by implementation. This method returns true for compatible descriptors even when the descriptors standardizer configuration is not recognized.

      Parameters:
      xmlConfig - configuration string
      Returns:
      true when the configuration can be handled by this instance
    • createReader

      MDTableReader<? extends Descriptor> createReader(String xmlConfig)
      Generates reader object.
      Parameters:
      xmlConfig - configuration string
      Returns:
      an instance of MDTableReader
      Throws:
      IllegalArgumentException - when this instance is incompatible with the given configuration string