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

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

public class NodeNamespaceContext
extends Object
implements NamespacePrefixList, Serializable

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

See Also:
Serialized Form

Method Summary
 String[] getDeclaredPrefixes()
          Returns the list of currently defined namespace prefixes.
static NodeNamespaceContext getNamespaceContext(org.w3c.dom.Node pNode)
           
static String getNamespacePrefix(org.w3c.dom.Element el, String ns)
           
static String getNamespaceURI(org.w3c.dom.Element el, String pfx)
           
 String getNamespaceURI(String pPrefix)
           
 String getPrefix(String pNamespaceURI)
           
 Iterator getPrefixes(String pNamespaceURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNamespacePrefix

public static String getNamespacePrefix(org.w3c.dom.Element el,
                                        String ns)

getNamespaceURI

public static String getNamespaceURI(org.w3c.dom.Element el,
                                     String pfx)

getNamespaceContext

public static NodeNamespaceContext getNamespaceContext(org.w3c.dom.Node pNode)

getNamespaceURI

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

getPrefix

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

getPrefixes

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

getDeclaredPrefixes

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

Specified by:
getDeclaredPrefixes in interface NamespacePrefixList


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.