com.cafesoft.cams.attr
Interface Evaluatable

All Known Subinterfaces:
AttributeDesignator, AttributeValue
All Known Implementing Classes:
AbstractAttributeValue, BagAttributeValue, BooleanAttributeValue, StandardAttributeDesignator, StringAttributeValue

public interface Evaluatable

Evaluateable defines a generic interface that is implemented by all objects that can be evaluated to an AttributeValue or a bag of AttributeValues.


Method Summary
 EvaluationResult evaluate(EvaluationContext evalContext)
          Evaluates the object using the given context, and either returns an error or a resulting value.
 boolean evaluatesToBag()
          Indicates whether evaluation will return a bag or a single value.
 URI getType()
          Get the type of this object.
 

Method Detail

evaluate

EvaluationResult evaluate(EvaluationContext evalContext)
Evaluates the object using the given context, and either returns an error or a resulting value.

Parameters:
evalContext - the representation of the request
Returns:
the evaluation result

getType

URI getType()
Get the type of this object. This may be the data type of an Attribute or the return type of an AttributeDesignator, etc.

Returns:
the type of data represented by this object

evaluatesToBag

boolean evaluatesToBag()
Indicates whether evaluation will return a bag or a single value.

Returns:
true if evaluation will return a bag, false otherwise


Generated on 10:38:35 AM April 14, 2011, © 1996-2010 Cafésoft LLC. All rights reserved.