org.compass.core.xml.javax
Class XPathXmlXPathExpression

java.lang.Object
  extended by org.compass.core.xml.javax.XPathXmlXPathExpression
All Implemented Interfaces:
XmlXPathExpression

public class XPathXmlXPathExpression
extends Object
implements XmlXPathExpression

A java 5 implementation of XmlXPathExpression wrapping a XPathExpression.

Author:
kimchy

Constructor Summary
XPathXmlXPathExpression(XPathExpression xPathExpression)
           
 
Method Summary
 XmlObject[] select(XmlObject xmlObject)
          Executes the given compiled xpath expression against the given xml object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathXmlXPathExpression

public XPathXmlXPathExpression(XPathExpression xPathExpression)
Method Detail

select

public XmlObject[] select(XmlObject xmlObject)
                   throws Exception
Description copied from interface: XmlXPathExpression
Executes the given compiled xpath expression against the given xml object.

Specified by:
select in interface XmlXPathExpression
Parameters:
xmlObject - The xml object to execute the compiled xpath expression against
Returns:
A list of xml objects matching the given compiled xpath expression
Throws:
Exception


Copyright (c) 2004-2008 The Compass Project.