Joda System API

org.joda.property.path
Class XPath

java.lang.Object
  |
  +--org.joda.property.path.XPath
All Implemented Interfaces:
java.io.Serializable

public class XPath
extends java.lang.Object
implements java.io.Serializable

Jaxen XPath implementation.

Author:
Stephen Colebourne
See Also:
Serialized Form

Constructor Summary
XPath(java.lang.String xpathExpr)
          Create a new parsed xpath object from the given string
 
Method Summary
 org.jaxen.BaseXPath getJAXENXPath()
          Gets the JAXEN Xpath handler.
 java.util.List selectNodes(Bean bean)
           
 java.lang.Object selectSingleNode(Bean bean)
           
 java.lang.String toString()
          Gets the XPath as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XPath

public XPath(java.lang.String xpathExpr)
      throws org.jaxen.JaxenException
Create a new parsed xpath object from the given string

Parameters:
xpathExpr - the xpath string to parse
Method Detail

selectNodes

public java.util.List selectNodes(Bean bean)
                           throws org.jaxen.JaxenException
org.jaxen.JaxenException
See Also:
BaseXPath.selectNodes(Object)

selectSingleNode

public java.lang.Object selectSingleNode(Bean bean)
                                  throws org.jaxen.JaxenException
org.jaxen.JaxenException
See Also:
BaseXPath.selectSingleNode(Object)

getJAXENXPath

public org.jaxen.BaseXPath getJAXENXPath()
Gets the JAXEN Xpath handler.

Returns:
Returns a BaseXPath

toString

public java.lang.String toString()
Gets the XPath as a string

Overrides:
toString in class java.lang.Object
Returns:
XPath string

Joda System API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.