public class EvaluationResult extends Object
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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. |
MatchResult |
getMatchResult() |
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
|
void |
setMatchResult(MatchResult matchResult) |
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 informationpublic MatchResult getMatchResult()
public void setMatchResult(MatchResult matchResult)
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 valueEvaluationResult
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 valueCopyright © 2024 WSO2. All rights reserved.