org.jtestcase.core.digester
Interface XQueryParser

All Known Implementing Classes:
XQueryParserImpl_Jaxen

public interface XQueryParser

Interface of the XQueryParser used to retrieve the XML data for JTestCaseWizard. There are several possible implementations for this interface.

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

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. Gets a list of elements from the XML file with the use of a XPath expression
 

Method Detail

getElements

java.util.List getElements(java.lang.String fileName,
                           java.lang.String xpathexpr)
                           throws java.io.FileNotFoundException,
                                  XQueryException
Deprecated. Gets a list of elements from the XML file with the use of a XPath expression

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

getElements

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

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
org.jdom.JDOMException
java.io.FileNotFoundException