Class SimpleSymbolPropertyTableDB
java.lang.Object
org.biojava.bio.proteomics.aaindex.SimpleSymbolPropertyTableDB
- All Implemented Interfaces:
SymbolPropertyTableDB
A simple implementation of a symbol property table database.
- Version:
- $Revision$
- Author:
- Martin Szugat
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes the database.SimpleSymbolPropertyTableDB(SymbolPropertyTableIterator tableIterator) Initializes the database by copying all symbol property tables from a given iterator into the database. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTable(SymbolPropertyTable table) Adds a symbol property table to the database.names()Returns the set of unique table names.intReturns the number of symbol property tables in the database.Returns the table with the specified name.Returns an iterator overSymbolPropertyTableobjects.
-
Constructor Details
-
SimpleSymbolPropertyTableDB
public SimpleSymbolPropertyTableDB()Initializes the database. -
SimpleSymbolPropertyTableDB
Initializes the database by copying all symbol property tables from a given iterator into the database.- Parameters:
tableIterator- an iterator over symbol property tables.- Throws:
BioException- if the symbol property tables could not be iterated.
-
-
Method Details
-
addTable
Adds a symbol property table to the database. Overrides an existing table entry with the same name.- Parameters:
table- the symbol property table to add.- Throws:
NullPointerException- iftableisnull.
-
tableIterator
Returns an iterator overSymbolPropertyTableobjects.- Specified by:
tableIteratorin interfaceSymbolPropertyTableDB- Returns:
- a new iterator
-
numTables
Returns the number of symbol property tables in the database.- Specified by:
numTablesin interfaceSymbolPropertyTableDB- Returns:
- the number of tables
-
table
Returns the table with the specified name.- Specified by:
tablein interfaceSymbolPropertyTableDB- Parameters:
name- the name of the table- Returns:
- the specified table
- Throws:
IllegalIDException- if no symbol property table with the specified name could be found.NullPointerException- ifnameisnull.
-
names
Returns the set of unique table names.- Specified by:
namesin interfaceSymbolPropertyTableDB- Returns:
- a set containing strings
-