org.apache.muse.ws.resource.properties.query.impl
Class XPathQueryExpression
java.lang.Object
org.apache.muse.ws.resource.properties.query.impl.XPathQueryExpression
- All Implemented Interfaces:
- QueryExpression
public class XPathQueryExpression
- extends Object
- implements QueryExpression
XPathQueryExpression is an implementation of query evaluations using XPath 1.0.
- Author:
- Dan Jemiolo (danj)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPathQueryExpression
public XPathQueryExpression()
evaluate
public Node[] evaluate(Element wsrpDoc,
String query)
throws QueryEvaluationErrorFault
- Specified by:
evaluate
in interface QueryExpression
- 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:
QueryEvaluationErrorFault
getDialect
public String getDialect()
- Specified by:
getDialect
in interface QueryExpression
- Returns:
- The URI that defines the query language for this expression.
Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.