- All Implemented Interfaces:
public class DummySequenceDBInstallation extends Object implements SequenceDBInstallation
DummySequenceDBInstallationis an implementation which returns the same
DummySequenceDBinstance regardless of the identifier used to retrieve a database.
- Keith James
Constructors Constructor Description
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
addSequenceDB(SequenceDBLite sequenceDB, Set otherIdentifiers)As this is a dummy implementation adding a sequenceDB doesn't do anything
getSequenceDB(String identifier)Return the SequenceDB for the given identifier.
getSequenceDBs()Return all sequence dbs available in this sequence db installation.
public SequenceDBLite getSequenceDB(String identifier)Description copied from interface:
Return the SequenceDB for the given identifier. The identifier can (but need not) be the name of the sequence db. An implementation may support any number of identifiers to (uniquely) identify a particular sequence db - but the name of the sequence db (returned by SequenceDB.getName()) must always be among them.
If the sequence db identified by the given identifier has not been requested through this object, it will be created and returned (hence this method is a factory method). If the sequence db identified by the given identifier has already been requested, the same object is returned.
- Specified by:
identifier- the string that identifies the sequence db. May not be null.
- the SequenceDB object that matches the given identifier or null if no such SequenceDB object could be found. (It is the responsibility of the implementation to take care that all identifiers are unique so if it turns out that the given identifier identifies more than one sequence db, this method should throw a RuntimeException.)
public Set getSequenceDBs()Description copied from interface:
SequenceDBInstallationReturn all sequence dbs available in this sequence db installation. This is not just the set of sequence dbs already returned by getSequenceDB() but the entire set of sequence dbs supported by this object.