|
SunTM's XACML Implementation for JavaTM | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xacml.MatchResult
This is used as the return value for the various target matching functions. It communicates that either the target matches the input request, the target doesn't match the 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 int |
NO_MATCH
An integer value indicating that the target doesn't match the request |
Constructor Summary | |
MatchResult(int result)
Constructor that creates a MatchResult with no Status |
|
MatchResult(int result,
Status status)
Constructor that creates a MatchResult , including Status
data |
Method Summary | |
int |
getResult()
Returns the applicable result |
Status |
getStatus()
Returns the status if there was an error, or null if no error occurred |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MATCH
public static final int NO_MATCH
public static final int INDETERMINATE
Constructor Detail |
public MatchResult(int result)
MatchResult
with no Status
result
- the applicable resultpublic MatchResult(int result, Status status) throws IllegalArgumentException
MatchResult
, including Status
data
result
- the applicable resultstatus
- the error information
IllegalArgumentException
- if the input result isn't a valid valueMethod Detail |
public int getResult()
public Status getStatus()
|
Sun's XACML Implementation Version 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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.