public class SimpleSymbolPropertyTableDB extends Object implements SymbolPropertyTableDB
Constructor and Description |
---|
SimpleSymbolPropertyTableDB()
Initializes the database.
|
SimpleSymbolPropertyTableDB(SymbolPropertyTableIterator tableIterator)
Initializes the database by copying all symbol property tables from
a given iterator into the database.
|
Modifier and Type | Method and Description |
---|---|
void |
addTable(SymbolPropertyTable table)
Adds a symbol property table to the database.
|
Set |
names()
Returns the set of unique table names.
|
int |
numTables()
Returns the number of symbol property tables in the database.
|
SymbolPropertyTable |
table(String name)
Returns the table with the specified name.
|
SymbolPropertyTableIterator |
tableIterator()
Returns an iterator over
SymbolPropertyTable objects. |
public SimpleSymbolPropertyTableDB()
public SimpleSymbolPropertyTableDB(SymbolPropertyTableIterator tableIterator) throws BioException
tableIterator
- an iterator over symbol property tables.BioException
- if the symbol property tables could not be
iterated.public void addTable(SymbolPropertyTable table) throws NullPointerException
table
- the symbol property table to add.NullPointerException
- if table
is null
.public SymbolPropertyTableIterator tableIterator()
SymbolPropertyTable
objects.tableIterator
in interface SymbolPropertyTableDB
public int numTables()
numTables
in interface SymbolPropertyTableDB
public SymbolPropertyTable table(String name) throws IllegalIDException, NullPointerException
table
in interface SymbolPropertyTableDB
name
- the
name
of the tableIllegalIDException
- if no symbol property table with the specified name could be found.NullPointerException
- if name
is
null
.public Set names()
names
in interface SymbolPropertyTableDB
Copyright © 2014 BioJava. All rights reserved.