|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.cams.attr.MatchResult
MatchResult communicates whether a given
AttributeMatch matches an input request, does not match
an input request, or the result is indeterminate.
| Field Summary | |
static int |
INDETERMINATE
An integer value indicating the the result is Indeterminate |
static int |
MATCH
An integer value indicating the the target matches the request |
static MatchResult |
MATCH_RESULT_MATCH
Standard MatchResult instance for a MATCH. |
static MatchResult |
MATCH_RESULT_NO_MATCH
Standard MatchResult instance for a NO_MATCH. |
static int |
NO_MATCH
An integer value indicating that the target doesn't match the request |
| Constructor Summary | |
MatchResult(int result)
Creates a MatchResult with no Status |
|
MatchResult(int result,
EvaluationStatus evalStatus)
Creates a MatchResult, including EvaluationStatus |
|
| Method Summary | |
EvaluationStatus |
getEvaluationStatus()
Returns the evaluation status if there was an error, or null if no error occurred |
int |
getResult()
Returns the applicable result |
String |
toString()
Return a String representation of this MatchResult. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int MATCH
public static final int NO_MATCH
public static final int INDETERMINATE
public static final MatchResult MATCH_RESULT_MATCH
public static final MatchResult MATCH_RESULT_NO_MATCH
| Constructor Detail |
public MatchResult(int result)
MatchResult with no Status
result - the match result as an integer value
public MatchResult(int result,
EvaluationStatus evalStatus)
throws IllegalArgumentException
MatchResult, including EvaluationStatus
result - the match result as an integer valueevalStatus - the error information
IllegalArgumentException - if the input result isn't a valid value| Method Detail |
public int getResult()
public EvaluationStatus getEvaluationStatus()
public String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||