public class SimpleSymbolPropertyTableDB extends java.lang.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.
|
java.util.Set |
names()
Returns the set of unique table names.
|
int |
numTables()
Returns the number of symbol property tables in the database.
|
SymbolPropertyTable |
table(java.lang.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 java.lang.NullPointerException
table
- the symbol property table to add.java.lang.NullPointerException
- if table
is null
.public SymbolPropertyTableIterator tableIterator()
SymbolPropertyTable
objects.tableIterator
in interface SymbolPropertyTableDB
public int numTables()
numTables
in interface SymbolPropertyTableDB
public SymbolPropertyTable table(java.lang.String name) throws IllegalIDException, java.lang.NullPointerException
table
in interface SymbolPropertyTableDB
name
- the
name
of the tableIllegalIDException
- if no symbol property table with the specified name could be found.java.lang.NullPointerException
- if name
is
null
.public java.util.Set names()
names
in interface SymbolPropertyTableDB