java.lang.Object
com.sun.xacml.MatchResult
- public class MatchResult
- extends java.lang.Object
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.
- Since:
- 1.0
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 |
private int |
result
|
private com.sun.xacml.ctx.Status |
status
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MATCH
public static final int MATCH
- An integer value indicating the the target matches the request
- See Also:
- Constant Field Values
NO_MATCH
public static final int NO_MATCH
- An integer value indicating that the target doesn't match the request
- See Also:
- Constant Field Values
INDETERMINATE
public static final int INDETERMINATE
- An integer value indicating the the result is Indeterminate
- See Also:
- Constant Field Values
result
private int result
status
private com.sun.xacml.ctx.Status status
MatchResult
public MatchResult(int result)
- Constructor that creates a
MatchResult
with no Status
MatchResult
public MatchResult(int result,
com.sun.xacml.ctx.Status status)
throws java.lang.IllegalArgumentException
- Constructor that creates a
MatchResult
, including Status
data
getResult
public int getResult()
- Returns the applicable result
getStatus
public com.sun.xacml.ctx.Status getStatus()
- Returns the status if there was an error, or null if no error occurred