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)
Method Summary |
org.w3c.dom.Node[] |
evaluate(org.w3c.dom.Element wsrpDoc,
java.lang.String query)
|
java.lang.String |
getDialect()
|
getDialect
public java.lang.String getDialect()
- Returns:
- The URI that defines the query language for this expression.
evaluate
public org.w3c.dom.Node[] evaluate(org.w3c.dom.Element wsrpDoc,
java.lang.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