org.apache.muse.ws.resource.properties.query.impl
Class XPathQueryExpression

java.lang.Object
  extended by 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)

Constructor Summary
XPathQueryExpression()
           
 
Method Summary
 Node[] evaluate(Element wsrpDoc, String query)
           
 String getDialect()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathQueryExpression

public XPathQueryExpression()
Method Detail

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.