public class FilesystemMoleculeDataSource extends java.lang.Object implements IDataSource<org.openscience.cdk.interfaces.IAtomContainer>
Constructor and Description |
---|
FilesystemMoleculeDataSource(java.lang.String moleculePath) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the data source.
|
org.openscience.cdk.interfaces.IAtomContainer |
get(java.lang.String id)
Get the reaction with this ID.
|
java.lang.Iterable<org.openscience.cdk.interfaces.IAtomContainer> |
getAll()
Get all the reactions in the data source.
|
java.util.List<java.lang.String> |
getIDList()
Get a list of the IDs in this data source.
|
void |
setTransformation(ITransformation<org.openscience.cdk.interfaces.IAtomContainer> transformation)
Set the transformation to apply to the object before returning it.
|
public FilesystemMoleculeDataSource(java.lang.String moleculePath)
moleculePath
- public void setTransformation(ITransformation<org.openscience.cdk.interfaces.IAtomContainer> transformation)
IDataSource
setTransformation
in interface IDataSource<org.openscience.cdk.interfaces.IAtomContainer>
public org.openscience.cdk.interfaces.IAtomContainer get(java.lang.String id)
IDataSource
get
in interface IDataSource<org.openscience.cdk.interfaces.IAtomContainer>
id
- the identifier for this reaction.public java.lang.Iterable<org.openscience.cdk.interfaces.IAtomContainer> getAll()
IDataSource
getAll
in interface IDataSource<org.openscience.cdk.interfaces.IAtomContainer>
public java.util.List<java.lang.String> getIDList()
IDataSource
getIDList
in interface IDataSource<org.openscience.cdk.interfaces.IAtomContainer>
public void close()
IDataSource
close
in interface IDataSource<org.openscience.cdk.interfaces.IAtomContainer>