javanet.staxutils
Class NamespaceContextAdapter
java.lang.Object
javanet.staxutils.NamespaceContextAdapter
- All Implemented Interfaces:
- NamespaceContext
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.
- Version:
- $Revision: 1.1 $
- Author:
- Christian Niles
Method Summary |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
|
java.lang.String |
getPrefix(java.lang.String nsURI)
|
java.util.Iterator |
getPrefixes(java.lang.String nsURI)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
namespaceCtx
protected NamespaceContext namespaceCtx
- The wrapped context.
NamespaceContextAdapter
public NamespaceContextAdapter()
NamespaceContextAdapter
public NamespaceContextAdapter(NamespaceContext namespaceCtx)
getNamespaceURI
public java.lang.String getNamespaceURI(java.lang.String prefix)
- Specified by:
getNamespaceURI
in interface NamespaceContext
getPrefix
public java.lang.String getPrefix(java.lang.String nsURI)
- Specified by:
getPrefix
in interface NamespaceContext
getPrefixes
public java.util.Iterator getPrefixes(java.lang.String nsURI)
- Specified by:
getPrefixes
in interface NamespaceContext