|
SunTM's XACML Implementation for JavaTM | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.xacml.cond.EvaluationResult
This is used in cases where a normal result is some AttributeValue, but if an attribute couldn't be resolved (or some other problem occurred), then a Status object needs to be returned instead. This is used instead of throwing an exception for performance, but mainly because failure to resolve an attribute is not an error case for the code, merely for the evaluation, and represents normal operation. Separate exception types will be added later to represent errors in pdp operation.
Constructor Summary | |
EvaluationResult(AttributeValue value)
Constructor that creates an EvaluationResult containing
a single AttributeValue |
|
EvaluationResult(Status status)
Constructor that creates an EvaluationResult of
Indeterminate, including Status data. |
Method Summary | |
AttributeValue |
getAttributeValue()
Returns the attribute value, or null if there was an error |
static EvaluationResult |
getFalseInstance()
Returns an EvaluationResult that represents
a false value. |
static EvaluationResult |
getInstance(boolean value)
Returns an EvaluationResult that represents
the boolean value provided. |
Status |
getStatus()
Returns the status if there was an error, or null it no error occurred |
static EvaluationResult |
getTrueInstance()
Returns an EvaluationResult that represents
a true value. |
boolean |
indeterminate()
Returns true if the result was indeterminate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EvaluationResult(AttributeValue value)
EvaluationResult
containing
a single AttributeValue
value
- the attribute valuepublic EvaluationResult(Status status)
EvaluationResult
of
Indeterminate, including Status data.
status
- the error informationMethod Detail |
public boolean indeterminate()
public AttributeValue getAttributeValue()
public Status getStatus()
public static EvaluationResult getInstance(boolean value)
EvaluationResult
that represents
the boolean value provided.
value
- a boolean representing the desired value
EvaluationResult
representing the
appropriate valuepublic static EvaluationResult getFalseInstance()
EvaluationResult
that represents
a false value.
EvaluationResult
representing a
false valuepublic static EvaluationResult getTrueInstance()
EvaluationResult
that represents
a true value.
EvaluationResult
representing a
true value
|
Sun's XACML Implementation Version 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun, Sun Microsystems, the Sun Logo, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.