com.sun.identity.policy
Class ResourceMatch

java.lang.Object
  extended by com.sun.identity.policy.ResourceMatch

public class ResourceMatch
extends Object

The class ResourceMatch defines the results of a resource match with respect to Policy.


Field Summary
static ResourceMatch EXACT_MATCH
          The EXACT_MATCH specifies the resources are exactly the same.
static ResourceMatch NO_MATCH
          The NO_MATCH specifies the resources do not match
static ResourceMatch SUB_RESOURCE_MATCH
          The SUB_RESOURCE_MATCH specifies the provided resource is a sub resource.
static ResourceMatch SUPER_RESOURCE_MATCH
          The SUPER_RESOURCE_MATCH specifies the provided resource is more specific than this resource
static ResourceMatch WILDCARD_MATCH
          The WILDCARD_MATCH specifies the resources are wildcard match
 
Method Summary
 boolean equals(Object resourceMatch)
          Method to check if two resource match objects are equal.
 String toString()
          Method to get string representation of the resource match.
 

Field Detail

EXACT_MATCH

public static final ResourceMatch EXACT_MATCH
The EXACT_MATCH specifies the resources are exactly the same.


WILDCARD_MATCH

public static final ResourceMatch WILDCARD_MATCH
The WILDCARD_MATCH specifies the resources are wildcard match


SUB_RESOURCE_MATCH

public static final ResourceMatch SUB_RESOURCE_MATCH
The SUB_RESOURCE_MATCH specifies the provided resource is a sub resource.


SUPER_RESOURCE_MATCH

public static final ResourceMatch SUPER_RESOURCE_MATCH
The SUPER_RESOURCE_MATCH specifies the provided resource is more specific than this resource


NO_MATCH

public static final ResourceMatch NO_MATCH
The NO_MATCH specifies the resources do not match

Method Detail

toString

public String toString()
Method to get string representation of the resource match.

Overrides:
toString in class Object
Returns:
string representation of the resource match.

equals

public boolean equals(Object resourceMatch)
Method to check if two resource match objects are equal.

Overrides:
equals in class Object
Parameters:
resourceMatch - object to which this object will be compared with
Returns:
true if the resources match; false otherwise;