com.cafesoft.cams.attr
Interface Evaluatable

All Known Subinterfaces:
AttributeDesignator, AttributeValue
All Known Implementing Classes:
AbstractAttributeValue, StandardAttributeDesignator

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

public 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

public 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

public 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 5:16:42 PM May 12, 2008, © 1996-2005 Cafésoft LLC. All rights reserved.