public class FilesystemReactionDataSource extends java.lang.Object implements IDataSource<org.openscience.cdk.interfaces.IReaction>
Constructor and Description |
---|
FilesystemReactionDataSource(java.lang.String reactionPath) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the data source.
|
org.openscience.cdk.interfaces.IReaction |
get(java.lang.String id)
Get the reaction with this ID.
|
java.lang.Iterable<org.openscience.cdk.interfaces.IReaction> |
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.IReaction> transformation)
Set the transformation to apply to the object before returning it.
|
public FilesystemReactionDataSource(java.lang.String reactionPath)
reactionPath
- public void setTransformation(ITransformation<org.openscience.cdk.interfaces.IReaction> transformation)
IDataSource
setTransformation
in interface IDataSource<org.openscience.cdk.interfaces.IReaction>
public org.openscience.cdk.interfaces.IReaction get(java.lang.String id)
IDataSource
get
in interface IDataSource<org.openscience.cdk.interfaces.IReaction>
id
- the identifier for this reaction.public java.lang.Iterable<org.openscience.cdk.interfaces.IReaction> getAll()
IDataSource
getAll
in interface IDataSource<org.openscience.cdk.interfaces.IReaction>
public java.util.List<java.lang.String> getIDList()
IDataSource
getIDList
in interface IDataSource<org.openscience.cdk.interfaces.IReaction>
public void close()
IDataSource
close
in interface IDataSource<org.openscience.cdk.interfaces.IReaction>