public abstract class AbstractNamespaceContext
extends java.lang.Object
implements javax.xml.namespace.NamespaceContext
NamespaceContext implementation that takes care of the
implicit namespace bindings (for the xml and xmlns
prefixes) defined in the NamespaceContext Javadoc.| Constructor and Description |
|---|
AbstractNamespaceContext() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.String |
doGetNamespaceURI(java.lang.String prefix)
Get namespace URI bound to a prefix in the current scope.
|
protected abstract java.lang.String |
doGetPrefix(java.lang.String namespaceURI)
Get prefix bound to namespace URI in the current scope.
|
protected abstract java.util.Iterator |
doGetPrefixes(java.lang.String namespaceURI)
Get all prefixes bound to a namespace URI in the current scope.
|
java.lang.String |
getNamespaceURI(java.lang.String prefix) |
java.lang.String |
getPrefix(java.lang.String namespaceURI) |
java.util.Iterator |
getPrefixes(java.lang.String namespaceURI) |
public final java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI in interface javax.xml.namespace.NamespaceContextprotected abstract java.lang.String doGetNamespaceURI(java.lang.String prefix)
NamespaceContext.getNamespaceURI(String), except that the
implementation is not required to handle the implicit namespace bindings.prefix - prefix to look uppublic final java.lang.String getPrefix(java.lang.String namespaceURI)
getPrefix in interface javax.xml.namespace.NamespaceContextprotected abstract java.lang.String doGetPrefix(java.lang.String namespaceURI)
NamespaceContext.getPrefix(String),
except that the implementation is not required to handle the implicit
namespace bindings.namespaceURI - URI of namespace to lookuppublic final java.util.Iterator getPrefixes(java.lang.String namespaceURI)
getPrefixes in interface javax.xml.namespace.NamespaceContextprotected abstract java.util.Iterator doGetPrefixes(java.lang.String namespaceURI)
NamespaceContext.getPrefixes(String), except that the
implementation is not required to handle the implicit namespace bindings.namespaceURI - URI of namespace to lookup