org.apache.ws.util.xml.impl
Class DomNamespaceContext

java.lang.Object
  extended byorg.apache.ws.util.xml.impl.DomNamespaceContext
All Implemented Interfaces:
NamespaceContext

public class DomNamespaceContext
extends java.lang.Object
implements NamespaceContext

A namespace context based on a DOM Node.


Constructor Summary
DomNamespaceContext(org.w3c.dom.Node context)
           
 
Method Summary
 org.w3c.dom.Node getContextNode()
           
 java.lang.String getNamespaceURI(java.lang.String prefix)
          Snarfed from Xalan's org.apache.xml.utils.PrefixResolverDefault class.
 java.lang.String getPrefix(java.lang.String namespaceURI)
          Get prefix bound to Namespace URI in the current scope.
 java.util.Iterator getPrefixes(java.lang.String namespaceURI)
          Get all prefixes bound to a Namespace URI in the current scope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomNamespaceContext

public DomNamespaceContext(org.w3c.dom.Node context)
Method Detail

getNamespaceURI

public java.lang.String getNamespaceURI(java.lang.String prefix)
Snarfed from Xalan's org.apache.xml.utils.PrefixResolverDefault class.

Specified by:
getNamespaceURI in interface NamespaceContext
Parameters:
prefix - the prefix to resolve
Returns:

getPrefix

public java.lang.String getPrefix(java.lang.String namespaceURI)
Description copied from interface: NamespaceContext
Get prefix bound to Namespace URI in the current scope.

Specified by:
getPrefix in interface NamespaceContext
Parameters:
namespaceURI -
Returns:

getPrefixes

public java.util.Iterator getPrefixes(java.lang.String namespaceURI)
Description copied from interface: NamespaceContext
Get all prefixes bound to a Namespace URI in the current scope.

Specified by:
getPrefixes in interface NamespaceContext
Parameters:
namespaceURI -
Returns:

getContextNode

public org.w3c.dom.Node getContextNode()


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