public final class NamespaceContextImpl
extends java.lang.Object
implements javax.xml.namespace.NamespaceContext
EPP specific implementation of a NamespaceContext, which maps prefixes to name space URIs and vice versa. Initially,
instances of this class support all of the standard EPP object name spaces, as defined in RFC5730-RFC5733, as well as
the name spaces of the e164epp, auext and aeext command/response extensions and the arext protocol extension. Support
for other extensions can be added at runtime by invoking the put
class method.
Uses the debug level loggers.
Constructor and Description |
---|
NamespaceContextImpl()
Create a NamespaceContextImpl with state as possibly adjusted by any previous calls to NamespaceContextImpl.put.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Implemented using a map lookup of the given prefix.
|
java.lang.String |
getPrefix(java.lang.String namespaceURI)
Implemented using a map lookup of the given name space URI.
|
java.util.Iterator<java.lang.String> |
getPrefixes(java.lang.String namespaceURI)
Lookup the List of prefixes for the given namespaceURI from the URI to prefix map, then return the iterator for
that List if the URI is in the map.
|
static void |
put(java.lang.String prefix,
java.lang.String uri)
Add a prefix to URI mapping and a URI to prefix mapping between the given prefix and URI.
|
public NamespaceContextImpl()
public static void put(java.lang.String prefix, java.lang.String uri)
public java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI
in interface javax.xml.namespace.NamespaceContext
public java.lang.String getPrefix(java.lang.String namespaceURI)
getPrefix
in interface javax.xml.namespace.NamespaceContext
public java.util.Iterator<java.lang.String> getPrefixes(java.lang.String namespaceURI)
getPrefixes
in interface javax.xml.namespace.NamespaceContext