public class NamespaceContextImpl extends Object implements NamespaceContext
BiMap
. It ensures that a prefix for a
namespace that was specified once is not overridden. Prefixes are first come,
first serve.Constructor and Description |
---|
NamespaceContextImpl() |
Modifier and Type | Method and Description |
---|---|
String |
add(String preferredPrefix,
String namespace)
Add a namespace prefix.
|
com.google.common.collect.BiMap<String,String> |
asMap()
Get the prefix namespace mapping as a map.
|
String |
getNamespaceURI(String prefix) |
String |
getPrefix(String namespaceURI) |
Iterator |
getPrefixes(String namespaceURI) |
public String add(String preferredPrefix, String namespace)
preferredPrefix
- the preferred namespace prefixnamespace
- the namespacepublic com.google.common.collect.BiMap<String,String> asMap()
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
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a