org.jtestcase.core.digester
Class XQueryParserImpl_Jaxen

java.lang.Object
  extended by org.jtestcase.core.digester.XQueryParserImpl_Jaxen
All Implemented Interfaces:
XQueryParser

public class XQueryParserImpl_Jaxen
extends java.lang.Object
implements XQueryParser

Implementation of the XQueryParser with the use of JDOM and Jaxen.

Author:
Fausto Lelli $Id: XQueryParserImpl_Jaxen.java,v 1.5 2005/10/25 14:42:23 faustothegrey Exp $

Constructor Summary
XQueryParserImpl_Jaxen()
           
 
Method Summary
 java.util.List getElements(org.jdom.Document doc, java.lang.String xpathexpr)
          Gets a list of elements from the XML file with the use of a XPath expression
 java.util.List getElements(java.lang.String fileName, java.lang.String xpathexpr)
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XQueryParserImpl_Jaxen

public XQueryParserImpl_Jaxen()
Method Detail

getElements

public java.util.List getElements(java.lang.String fileName,
                                  java.lang.String xpathexpr)
                           throws java.io.FileNotFoundException,
                                  XQueryException
Deprecated. 

Specified by:
getElements in interface XQueryParser
Parameters:
fileName - name of the XML file
xpathexpr - the XPath expression
Returns:
list of elements
Throws:
XQueryException - in case of any errors during the processing
java.io.FileNotFoundException
See Also:
XQueryParser.getElements(String, String)

getElements

public java.util.List getElements(org.jdom.Document doc,
                                  java.lang.String xpathexpr)
                           throws java.io.FileNotFoundException,
                                  XQueryException,
                                  org.jdom.JDOMException
Description copied from interface: XQueryParser
Gets a list of elements from the XML file with the use of a XPath expression

Specified by:
getElements in interface XQueryParser
xpathexpr - the XPath expression
Returns:
list of elements
Throws:
XQueryException - in case of any errors during the processing
org.jdom.JDOMException
java.io.FileNotFoundException
See Also:
XQueryParser