com.novell.xml.dom
Class StringNamespaceContext

java.lang.Object
  extended bycom.novell.xml.dom.StringNamespaceContext
All Implemented Interfaces:
NamespaceContext
Direct Known Subclasses:
DOMQuery.StringNSContext

public class StringNamespaceContext
extends Object
implements NamespaceContext

Class implementing NamespaceContext for resolving namespaces in expression by specifying String pairs.


Method Summary
 ExpandedQName getExpandedName(String qName)
          Return the expanded name given the passed QName, given the current namespace context
 NamespaceName getNamespaceName(String prefix)
          Return the currently in-scope namespace URI for the passed prefix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNamespaceName

public NamespaceName getNamespaceName(String prefix)
Return the currently in-scope namespace URI for the passed prefix.

Specified by:
getNamespaceName in interface NamespaceContext
Parameters:
prefix - The QName prefix of interest
Returns:
The namespace name associated with the prefix for the passed prefix

getExpandedName

public ExpandedQName getExpandedName(String qName)
Return the expanded name given the passed QName, given the current namespace context

Specified by:
getExpandedName in interface NamespaceContext
Parameters:
qName - The QName to expand
Returns:
The expanded Name