|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | 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 prefix)
Returns true if this map contains a mapping for the specified key. |
boolean |
containsValue(String namespaceURI)
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. |
String |
get(String prefix)
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. |
String |
put(String prefix,
String namespaceURI)
Associates the specified value with the specified key in this map. |
String |
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 |
|
| Field Detail |
private HashMap namespaceTable
| Constructor Detail |
public SixdmlNamespaceMap()
| Method Detail |
public void clear()
public boolean containsKey(String prefix)
prefix - The key whose presence in this map is to be tested. The key should
be a namespace prefix.public boolean containsValue(String namespaceURI)
namespaceURI - 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 String get(String prefix)
prefix - the key whose associated value is to be returned. The key should be a
prefix associated with a particular namespace URI.
public String put(String prefix,
String namespaceURI)
prefix - key with which the specified value is to be associated.namespaceURI - value to be associated with the specified key.public String remove(String prefix)
prefix - key whose mapping is to be removed from the map.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||