public class SimpleCatalog extends Object implements IonMutableCatalog, Iterable<SymbolTable>
IonCatalog as a hash table. There is no
automatic removal of entries.| Constructor and Description |
|---|
SimpleCatalog() |
| Modifier and Type | Method and Description |
|---|---|
SymbolTable |
getTable(String name)
Gets a symbol table with a specific name and the highest version
possible.
|
SymbolTable |
getTable(String name,
int version)
Gets a desired symbol table from this catalog, using an exact match if
possible.
|
Iterator<SymbolTable> |
iterator()
Constructs an iterator that enumerates all of the shared symbol tables
in this catalog, at the time of method invocation.
|
void |
putTable(SymbolTable table)
Adds a symbol table to this catalog.
|
SymbolTable |
removeTable(String name,
int version)
Removes a symbol table from this catalog.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic SymbolTable getTable(String name)
IonCataloggetTable in interface IonCatalogname - identifies the desired symbol table.null if this catalog has no table with the name.public SymbolTable getTable(String name, int version)
IonCatalogImplentations must make a best effort to find an exact match. If an exact match cannot be found, then this method must make a best effort to find the best match available.
getTable in interface IonCatalognull.public void putTable(SymbolTable table)
IonMutableCatalogputTable in interface IonMutableCatalogtable - must be shared but not a system table or
substitute table.public SymbolTable removeTable(String name, int version)
null if this catalog has
no matching table.public Iterator<SymbolTable> iterator()
iterator in interface Iterable<SymbolTable>