|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cafesoft.cams.attr.AbstractAttributeValue
public abstract class AbstractAttributeValue
AbstractAttributeValue is an abstract base class for all
attribute data types.
To provide a new type, extend this class and implement the
equals(Object) and hashCode methods from
Object, which are used for equality checking.
| Constructor Summary | |
|---|---|
protected |
AbstractAttributeValue(URI type)
Constructor that takes the specific attribute type. |
| Method Summary | |
|---|---|
abstract String |
encode()
Encodes the value in a form suitable for including in XML data like a request or an obligation. |
EvaluationResult |
evaluate(EvaluationContext evalContext)
Implements the required interface from Evaluatable. |
boolean |
evaluatesToBag()
Returns whether or not this value is actually a bag of values. |
URI |
getType()
Returns the type of this attribute value. |
boolean |
isBag()
Returns whether or not this value is actually a bag of values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractAttributeValue(URI type)
type - the attribute's type| Method Detail |
|---|
public URI getType()
getType in interface AttributeValuegetType in interface Evaluatablepublic final boolean evaluatesToBag()
NOTE: This is a required interface from Evaluatable,
but the more appropriate isBag method is used by
AttributeValues, so this method is declared as final
and calls the isBag method for this value.
evaluatesToBag in interface Evaluatablepublic boolean isBag()
false. Typically, only the
BagAttribute should ever override this to return
true.
isBag in interface AttributeValuepublic EvaluationResult evaluate(EvaluationContext evalContext)
Evaluatable.
Since there is nothing to evaluate in an attribute value, the default
result is just this instance. Override this method if you want
special behavior, like a dynamic value.
evaluate in interface EvaluatableevalContext - the representation of the request
public abstract String encode()
encode in interface AttributeValueString form of the value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||