org.globus.ogsa.impl.core.service
Class ServiceDataNameEvaluator

java.lang.Object
  extended byorg.globus.ogsa.impl.core.service.ServiceDataNameEvaluator
All Implemented Interfaces:
ExpressionEvaluator
Direct Known Subclasses:
ServiceDataNameDeleteEvaluator, ServiceDataXPathEvaluator

public class ServiceDataNameEvaluator
extends java.lang.Object
implements ExpressionEvaluator

Evaluator supporting service data by name lookups in a service data set


Constructor Summary
ServiceDataNameEvaluator()
           
 
Method Summary
 java.lang.Object evaluate(ExtensibilityType expression, ServiceDataSet serviceDataSet)
          Evaluates the expression over a service data set and returns the result.
protected  java.lang.Object evaluate(javax.xml.namespace.QName[] serviceDataNames, ServiceDataSet serviceDataSet)
           
 javax.xml.namespace.QName[] getExpressionNames()
          Gets the QNames (as defined in the XML Schema of the expression) of top level expression elements that this evaluator can handle.
 javax.xml.namespace.QName[] getSDNames(ExtensibilityType expression)
          The Set of ServiceData names this expression acts on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceDataNameEvaluator

public ServiceDataNameEvaluator()
Method Detail

getExpressionNames

public javax.xml.namespace.QName[] getExpressionNames()
Description copied from interface: ExpressionEvaluator
Gets the QNames (as defined in the XML Schema of the expression) of top level expression elements that this evaluator can handle.

Specified by:
getExpressionNames in interface ExpressionEvaluator
Returns:
array of qnames supported by this evaluator

evaluate

public java.lang.Object evaluate(ExtensibilityType expression,
                                 ServiceDataSet serviceDataSet)
                          throws FaultType
Description copied from interface: ExpressionEvaluator
Evaluates the expression over a service data set and returns the result.

Specified by:
evaluate in interface ExpressionEvaluator
Parameters:
expression - object passed by client representing query or subscription expression
serviceDataSet - service data set associated with service instance that is to evaluate the expression
Returns:
the result of the evaluation which depends on the expression. The result must be an xml serializable object in order to be passed back correctly to a rempote client. The easiest way of achieving this is to model it as a Bean, or simply return a DOM Element. If the result object returned is null an empty query result is returned or alternatively no notification is sent out.
Throws:
FaultType - if the evaluator failed to parse or validate the expression

evaluate

protected java.lang.Object evaluate(javax.xml.namespace.QName[] serviceDataNames,
                                    ServiceDataSet serviceDataSet)
                             throws FaultType
Throws:
FaultType

getSDNames

public javax.xml.namespace.QName[] getSDNames(ExtensibilityType expression)
                                       throws FaultType
The Set of ServiceData names this expression acts on.

Specified by:
getSDNames in interface ExpressionEvaluator
Returns:
Set of QNames of the ServiceData.
Throws:
FaultType


Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.