class ImplicitNamespaceContextWrapper extends AbstractNamespaceContext
NamespaceContext wrapper that adds support for the implicit namespace
bindings for the xml and xmlns prefixes. This wrapper may
be used to fix the behavior of broken NamespaceContext
implementations.| Modifier and Type | Field and Description |
|---|---|
private javax.xml.namespace.NamespaceContext |
parent |
| Constructor and Description |
|---|
ImplicitNamespaceContextWrapper(javax.xml.namespace.NamespaceContext parent) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
doGetNamespaceURI(java.lang.String prefix)
Get namespace URI bound to a prefix in the current scope.
|
protected java.lang.String |
doGetPrefix(java.lang.String namespaceURI)
Get prefix bound to namespace URI in the current scope.
|
protected java.util.Iterator |
doGetPrefixes(java.lang.String namespaceURI)
Get all prefixes bound to a namespace URI in the current scope.
|
getNamespaceURI, getPrefix, getPrefixespublic ImplicitNamespaceContextWrapper(javax.xml.namespace.NamespaceContext parent)
protected java.lang.String doGetNamespaceURI(java.lang.String prefix)
AbstractNamespaceContextNamespaceContext.getNamespaceURI(String), except that the
implementation is not required to handle the implicit namespace bindings.doGetNamespaceURI in class AbstractNamespaceContextprefix - prefix to look upprotected java.lang.String doGetPrefix(java.lang.String namespaceURI)
AbstractNamespaceContextNamespaceContext.getPrefix(String),
except that the implementation is not required to handle the implicit
namespace bindings.doGetPrefix in class AbstractNamespaceContextnamespaceURI - URI of namespace to lookupprotected java.util.Iterator doGetPrefixes(java.lang.String namespaceURI)
AbstractNamespaceContextNamespaceContext.getPrefixes(String), except that the
implementation is not required to handle the implicit namespace bindings.doGetPrefixes in class AbstractNamespaceContextnamespaceURI - URI of namespace to lookup