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 TypeMethodDescriptionvoid
addTable
(SymbolPropertyTable table) Adds a symbol property table to the database.names()
Returns the set of unique table names.int
Returns the number of symbol property tables in the database.Returns the table with the specified name.Returns an iterator overSymbolPropertyTable
objects.
-
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
- iftable
isnull
.
-
tableIterator
Returns an iterator overSymbolPropertyTable
objects.- Specified by:
tableIterator
in interfaceSymbolPropertyTableDB
- Returns:
- a new iterator
-
numTables
Returns the number of symbol property tables in the database.- Specified by:
numTables
in interfaceSymbolPropertyTableDB
- Returns:
- the number of tables
-
table
Returns the table with the specified name.- Specified by:
table
in 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
- ifname
isnull
.
-
names
Returns the set of unique table names.- Specified by:
names
in interfaceSymbolPropertyTableDB
- Returns:
- a set containing strings
-