IonCatalog as a hash table. There is no
automatic removal of entries.
| Modifier and Type | Field and Description |
|---|---|
| private Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Integer | |
| public SymbolTable | getTable(String
identifies the desired symbol table. name)Implements com. Gets a symbol table with a specific name and the highest version possible. |
| public SymbolTable | getTable(String name, int version)
Implements com. Gets a desired symbol table from this catalog, using an exact match if possible. |
| public Iterator | Returns: a non-null, but potentially empty, iterator.Implements java. Constructs an iterator that enumerates all of the shared symbol tables in this catalog, at the time of method invocation. |
| public void | putTable(SymbolTable
must be shared but not a system table or
substitute table. table)Implements com. Adds a symbol table to this catalog. |
| public SymbolTable | Returns: the removed table, ornull if this catalog has
no matching table.Removes a symbol table from this catalog. |
| myTablesByName | back to summary |
|---|---|
| private Map<String, TreeMap<Integer, SymbolTable>> myTablesByName | |
| SimpleCatalog | back to summary |
|---|---|
| public SimpleCatalog() | |
| bestMatch | back to summary |
|---|---|
| pack-priv static Integer bestMatch(int requestedVersion, Iterable<Integer> availableVersions) | |
| getTable | back to summary |
|---|---|
| public SymbolTable getTable(String name) Implements com. Doc from com. Gets a symbol table with a specific name and the highest version possible.
| |
| getTable | back to summary |
|---|---|
| public SymbolTable getTable(String name, int version) Implements com. Doc from com. Gets a desired symbol table from this catalog, using an exact match if possible. Implentations 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.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Constructs an iterator that enumerates all of the shared symbol tables in this catalog, at the time of method invocation. The result represents a snapshot of the state of this catalog.
| |
| putTable | back to summary |
|---|---|
| public void putTable(SymbolTable table) Implements com. Doc from com. Adds a symbol table to this catalog. This interface does not define the behavior of this method if this catalog already contains a table with the same name and version.
| |
| removeTable | back to summary |
|---|---|
| public SymbolTable removeTable(String name, int version) Removes a symbol table from this catalog.
| |