xpe
Class XPE

java.lang.Object
  |
  +--xpe.XPE

public class XPE
extends java.lang.Object

XPath Explorer

Author:
Alex Chaffee (alex@purpletech.com), Ian McFarland (ian@neo.com) helped with "generate XPath" function

Nested Class Summary
static class XPE.Namespace
           
 
Constructor Summary
XPE(java.lang.String documentURL, java.lang.String xpathExpression)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
static java.lang.String generateXPath(org.w3c.dom.Node node)
           
 boolean getBooleanValue()
           
 org.w3c.dom.Document getDocument()
           
 java.lang.String getExpandedXPath()
           
 java.util.List getMatches()
           
 java.lang.String getMatchesHTML()
           
 java.lang.String getMatchesText()
           
 java.util.Set getNamespaces()
           
 java.lang.Number getNumberValue()
           
 java.lang.String getSource()
           
 java.lang.String getStringValue()
           
 java.lang.String getURL()
           
 java.lang.String getXPath()
           
 void setDocument(java.lang.String url)
           
 void setDocumentAndXpath(java.lang.String url, java.lang.String xpath)
           
 void setXPath(java.lang.String xpathExpression)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XPE

public XPE(java.lang.String documentURL,
           java.lang.String xpathExpression)
    throws java.lang.Exception
Method Detail

getXPath

public java.lang.String getXPath()

getURL

public java.lang.String getURL()

getDocument

public org.w3c.dom.Document getDocument()
                                 throws java.lang.Exception
java.lang.Exception

getSource

public java.lang.String getSource()
                           throws java.lang.Exception
java.lang.Exception

getStringValue

public java.lang.String getStringValue()
                                throws java.lang.Exception
java.lang.Exception

getNumberValue

public java.lang.Number getNumberValue()
                                throws java.lang.Exception
java.lang.Exception

getBooleanValue

public boolean getBooleanValue()
                        throws java.lang.Exception
java.lang.Exception

setDocument

public void setDocument(java.lang.String url)
                 throws java.lang.Exception
java.lang.Exception

setDocumentAndXpath

public void setDocumentAndXpath(java.lang.String url,
                                java.lang.String xpath)
                         throws java.lang.Exception
java.lang.Exception

setXPath

public void setXPath(java.lang.String xpathExpression)
              throws java.lang.Exception
java.lang.Exception

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getNamespaces

public java.util.Set getNamespaces()
                            throws java.lang.Exception
java.lang.Exception

getExpandedXPath

public java.lang.String getExpandedXPath()

getMatches

public java.util.List getMatches()

getMatchesText

public java.lang.String getMatchesText()
                                throws java.lang.Exception
java.lang.Exception

getMatchesHTML

public java.lang.String getMatchesHTML()
                                throws java.lang.Exception
java.lang.Exception

generateXPath

public static java.lang.String generateXPath(org.w3c.dom.Node node)