public class DummySequenceDBInstallation extends Object implements SequenceDBInstallation
DummySequenceDBInstallation
is an implementation which
returns the same DummySequenceDB
instance regardless
of the identifier used to retrieve a database.Constructor and Description |
---|
DummySequenceDBInstallation() |
Modifier and Type | Method and Description |
---|---|
void |
addSequenceDB(SequenceDBLite sequenceDB,
Set otherIdentifiers)
As this is a dummy implementation adding a sequenceDB doesn't do anything
|
SequenceDBLite |
getSequenceDB(String identifier)
Return the SequenceDB for the given identifier.
|
Set |
getSequenceDBs()
Return all sequence dbs available in this sequence db
installation.
|
public DummySequenceDBInstallation()
public SequenceDBLite getSequenceDB(String identifier)
SequenceDBInstallation
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.
getSequenceDB
in interface SequenceDBInstallation
identifier
- the string that identifies the sequence db. May
not be null.public Set getSequenceDBs()
SequenceDBInstallation
getSequenceDBs
in interface SequenceDBInstallation
public void addSequenceDB(SequenceDBLite sequenceDB, Set otherIdentifiers)
addSequenceDB
in interface SequenceDBInstallation
sequenceDB
- a SequenceDB
.otherIdentifiers
- a Set
.Copyright © 2014 BioJava. All rights reserved.