org.apache.ws.commons.schema.utils
Class NodeNamespaceContext

java.lang.Object
  extended by org.apache.ws.commons.schema.utils.NodeNamespaceContext
All Implemented Interfaces:
javax.xml.namespace.NamespaceContext, NamespacePrefixList

public class NodeNamespaceContext
extends java.lang.Object
implements NamespacePrefixList

Implementation of NamespaceContext, which is based on a DOM node.


Constructor Summary
NodeNamespaceContext(org.w3c.dom.Node pNode)
          Creates a new instance with the given nodes context.
 
Method Summary
 java.lang.String[] getDeclaredPrefixes()
          Returns the list of currently defined namespace prefixes.
 java.lang.String getNamespaceURI(java.lang.String pPrefix)
           
 java.lang.String getPrefix(java.lang.String pNamespaceURI)
           
 java.util.Iterator getPrefixes(java.lang.String pNamespaceURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeNamespaceContext

public NodeNamespaceContext(org.w3c.dom.Node pNode)
Creates a new instance with the given nodes context.

Method Detail

getNamespaceURI

public java.lang.String getNamespaceURI(java.lang.String pPrefix)
Specified by:
getNamespaceURI in interface javax.xml.namespace.NamespaceContext

getPrefix

public java.lang.String getPrefix(java.lang.String pNamespaceURI)
Specified by:
getPrefix in interface javax.xml.namespace.NamespaceContext

getPrefixes

public java.util.Iterator getPrefixes(java.lang.String pNamespaceURI)
Specified by:
getPrefixes in interface javax.xml.namespace.NamespaceContext

getDeclaredPrefixes

public java.lang.String[] getDeclaredPrefixes()
Description copied from interface: NamespacePrefixList
Returns the list of currently defined namespace prefixes.

Specified by:
getDeclaredPrefixes in interface NamespacePrefixList


Copyright © 2004-2009 Apache Software Foundation. All Rights Reserved.