Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.xacml
Class MatchResult  view MatchResult download MatchResult.java

java.lang.Object
  extended bycom.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
           
 
Constructor Summary
MatchResult(int result)
          Constructor that creates a MatchResult with no Status
MatchResult(int result, com.sun.xacml.ctx.Status status)
          Constructor that creates a MatchResult, including Status data
 
Method Summary
 int getResult()
          Returns the applicable result
 com.sun.xacml.ctx.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

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
Constructor Detail

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

Method Detail

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