nct.service.sequences
Interface SequenceDatabase

All Known Implementing Classes:
DIPSequenceDatabase

public interface SequenceDatabase

An interface describing a way to query a sequence database for sequence and existence information.


Method Summary
 boolean contains(java.lang.String id)
          Determines whether or not the specified id points to a sequence in the database.
 java.lang.String getSequence(java.lang.String id)
          Returns the sequence associated with the specified id from the database.
 

Method Detail

contains

boolean contains(java.lang.String id)
Determines whether or not the specified id points to a sequence in the database.

Parameters:
id - The id to search for in the database.
Returns:
True if the id is found in the database, false otherwise.

getSequence

java.lang.String getSequence(java.lang.String id)
Returns the sequence associated with the specified id from the database.

Parameters:
id - The id of the sequence to retrieve from the database.
Returns:
A String representation of the sequence found in the database.