Interface MDReaderFactory

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

    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 Detail

      • 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.
        xmlConfig - configuration string
        true when the configuration can be handled by this instance
      • createReader

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