public class NamespaceContextAdapter extends 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 |
---|---|
String |
getNamespaceURI(String prefix) |
String |
getPrefix(String nsURI) |
Iterator |
getPrefixes(String nsURI) |
protected NamespaceContext namespaceCtx
public NamespaceContextAdapter()
public NamespaceContextAdapter(NamespaceContext namespaceCtx)
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface NamespaceContext
public String getPrefix(String nsURI)
getPrefix
in interface NamespaceContext
public Iterator getPrefixes(String nsURI)
getPrefixes
in interface NamespaceContext