Class NamespaceMap
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,,Object> NamespaceContext,NamespacePrefixList
This class maps from a prefix to an object that is either a String or a URI.
In fact, it will work with anything with a toString result that is useful
as a namespace URI.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidString[]Returns the list of currently defined namespace prefixes.getNamespaceURI(String prefix) getPrefixes(String namespaceURI) Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
NamespaceMap
public NamespaceMap() -
NamespaceMap
-
-
Method Details
-
add
-
getDeclaredPrefixes
Description copied from interface:NamespacePrefixListReturns the list of currently defined namespace prefixes.- Specified by:
getDeclaredPrefixesin interfaceNamespacePrefixList
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNamespaceContext
-
getPrefix
- Specified by:
getPrefixin interfaceNamespaceContext
-
getPrefixes
- Specified by:
getPrefixesin interfaceNamespaceContext
-