Package com.chemaxon.descriptors.db
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 thechemaxon.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canHandle(String xmlConfig)
Returns true if this factory can handle the given xml.MDTableReader<? extends Descriptor>
createReader(String xmlConfig)
Generates reader object.
-
-
-
Method Detail
-
canHandle
boolean canHandle(String xmlConfig)
Returns true if this factory can handle the given xml. Note that the wrapping of underlyingStandardizer
is not checked by implementation. This method returnstrue
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
-
-