public class NamespaceContextAdapter extends java.lang.Object implements NamespaceContext
NamespaceContext that wraps another context. This class is useful for
hiding the underlying implementation, or adding additional functionality on top of
another context.| Modifier and Type | Field and Description |
|---|---|
protected NamespaceContext |
namespaceCtx
The wrapped context.
|
| Constructor and Description |
|---|
NamespaceContextAdapter() |
NamespaceContextAdapter(NamespaceContext namespaceCtx) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getNamespaceURI(java.lang.String prefix) |
java.lang.String |
getPrefix(java.lang.String nsURI) |
java.util.Iterator |
getPrefixes(java.lang.String nsURI) |
protected NamespaceContext namespaceCtx
public NamespaceContextAdapter()
public NamespaceContextAdapter(NamespaceContext namespaceCtx)
public java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI in interface NamespaceContextpublic java.lang.String getPrefix(java.lang.String nsURI)
getPrefix in interface NamespaceContextpublic java.util.Iterator getPrefixes(java.lang.String nsURI)
getPrefixes in interface NamespaceContext