|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.sixdml.SixdmlNamespaceMap
SixdmlNamespaceMap.java A hashtable containing mappings between prefixes and namespace URIs for use by theSixdmlQueryServiceandSixdmlUpdateService classes.
This class is not thread-safe. Created: Tue Feb 04 02:49:16 2002
SixdmlQueryService,
SixdmlUpdateService| Field Summary | |
private HashMap |
namespaceTable
This is the table of containing mappings of prefixes to namespace URI. |
| Fields inherited from interface org.sixdml.SixdmlConstants |
SIXDML_NS, SIXDML_VERSION |
| Constructor Summary | |
SixdmlNamespaceMap()
Default constructor initializes class. |
|
| Method Summary | |
void |
clear()
Removes all mappings from this map. |
boolean |
containsKey(String key)
Returns true if this map contains a mapping for the specified key. |
boolean |
containsValue(URI value)
Returns true if this map contains a mapping for the specified value. |
Set |
entrySet()
Returns a collection view of the mappings contained in this map. |
URI |
get(String key)
Returns the value to which the specified key is mapped in this identity hash map, or null if the map contains no mapping for this key. |
boolean |
isEmpty()
Returns true if this map contains no key-value mappings. |
URI |
put(String prefix,
URI namespaceURI)
Associates the specified value with the specified key in this map. |
URI |
remove(String prefix)
Removes the mapping for this key from this map if present. |
int |
size()
Returns the number of key-value mappings in this map. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private HashMap namespaceTable
| Constructor Detail |
public SixdmlNamespaceMap()
| Method Detail |
public void clear()
public boolean containsKey(String key)
key - The key whose presence in this map is to be tested. The key should
be a namespace prefix.
public boolean containsValue(URI value)
value - The value whose presence in this map is to be tested. The value should
be a URI.
public boolean isEmpty()
public int size()
public Set entrySet()
Map.Entrypublic URI get(String key)
key - the key whose associated value is to be returned. The key should
prefix associated with a particular namespace URI.
public URI put(String prefix,
URI namespaceURI)
prefix - key with which the specified value is to be associated.namespaceURI - value to be associated with the specified key.
public URI remove(String prefix)
prefix - key whose mapping is to be removed from the map.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||