Package org.openscience.cdk.config
Class OWLBasedAtomTypeConfigurator
java.lang.Object
org.openscience.cdk.config.OWLBasedAtomTypeConfigurator
- All Implemented Interfaces:
IAtomTypeConfigurator
AtomType resource that reads the atom type configuration from an OWL file.
- Source code:
- main
- Belongs to CDK module:
- core
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadAtomTypes
(IChemObjectBuilder builder) Reads the atom types from the OWL based atom type list.void
Sets the file containing the configuration data.
-
Constructor Details
-
OWLBasedAtomTypeConfigurator
public OWLBasedAtomTypeConfigurator()
-
-
Method Details
-
setInputStream
Sets the file containing the configuration data.- Specified by:
setInputStream
in interfaceIAtomTypeConfigurator
- Parameters:
ins
- InputStream from which the atom type definitions are to be read
-
readAtomTypes
Reads the atom types from the OWL based atom type list.- Specified by:
readAtomTypes
in interfaceIAtomTypeConfigurator
- Parameters:
builder
- IChemObjectBuilder used to construct the IAtomType's.- Returns:
- A List with read IAtomType's.
- Throws:
IOException
- when a problem occurred with reading from the InputStream
-