Package com.chemaxon.descriptors.db
Interface MDReaderFactory
- All Known Subinterfaces:
CfpTableReader.Factory,EcfpTableReader.Factory,PfTableReader.Factory
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 TypeMethodDescriptionbooleanReturns true if this factory can handle the given xml.MDTableReader<? extends Descriptor> createReader(String xmlConfig) Generates reader object.
-
Method Details
-
canHandle
Returns true if this factory can handle the given xml.Note that the wrapping of underlying
Standardizeris not checked by implementation. This method returnstruefor compatible descriptors even when the descriptors standardizer configuration is not recognized.- Parameters:
xmlConfig- configuration string- Returns:
truewhen the configuration can be handled by this instance
-
createReader
Generates reader object.- Parameters:
xmlConfig- configuration string- Returns:
- an instance of MDTableReader
- Throws:
IllegalArgumentException- when this instance is incompatible with the given configuration string
-