org.apache.muse.ws.resource.properties.query
Interface QueryExpression
- All Known Implementing Classes:
- XPathQueryExpression
public interface QueryExpression
QueryExpression describes components that can evaluate an XML document
based on a specific query language. An example of such a query language
is XPath 1.0. Evaluation of a query expression on an XML document should
result in a set of DOM Nodes no matter what language is used.
- Author:
- Dan Jemiolo (danj)
getDialect
String getDialect()
- Returns:
- The URI that defines the query language for this expression.
evaluate
Node[] evaluate(Element wsrpDoc,
String query)
throws InvalidQueryExpressionFault,
QueryEvaluationErrorFault
- Parameters:
wsrpDoc
- A resource's WSRP document.query
- A query expression in the language described by getDialect().
- Returns:
- An array of nodes from the given document that match the
query expression. The array may be empty.
- Throws:
InvalidQueryExpressionFault
QueryEvaluationErrorFault
Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.