public class NamespaceMap extends HashMap implements NamespacePrefixList
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
NamespaceMap() |
NamespaceMap(Map map) |
Modifier and Type | Method and Description |
---|---|
void |
add(String prefix,
String namespaceURI) |
String[] |
getDeclaredPrefixes()
Returns the list of currently defined namespace prefixes.
|
String |
getNamespaceURI(String prefix) |
String |
getPrefix(String namespaceURI) |
Iterator |
getPrefixes(String namespaceURI) |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public NamespaceMap()
public NamespaceMap(Map map)
public String[] getDeclaredPrefixes()
NamespacePrefixList
getDeclaredPrefixes
in interface NamespacePrefixList
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface javax.xml.namespace.NamespaceContext
public String getPrefix(String namespaceURI)
getPrefix
in interface javax.xml.namespace.NamespaceContext
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.