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, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, 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 NamespaceContext
public String getPrefix(String namespaceURI)
getPrefix
in interface NamespaceContext
public Iterator getPrefixes(String namespaceURI)
getPrefixes
in interface NamespaceContext
Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.