jd.xml.xpath.tool
Class XPathNamespaces

java.lang.Object
  extended byjd.xml.xpath.tool.XPathNamespaces

public class XPathNamespaces
extends Object

XPathNamespaces is a helper to define the namespace context for a XPath expression.


Constructor Summary
XPathNamespaces()
           
 
Method Summary
 void clear()
          Clear the namespaces.
 void declare(String prefix, String namespaceUri)
          Declare a namespace.
 String getUri(String prefix)
          Get a uri for a prefix, null if no namespace for the prefix is declared.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathNamespaces

public XPathNamespaces()
Method Detail

declare

public void declare(String prefix,
                    String namespaceUri)
Declare a namespace.


clear

public void clear()
Clear the namespaces.


getUri

public String getUri(String prefix)
Get a uri for a prefix, null if no namespace for the prefix is declared.