com.sun.identity.policy
Class ResourceResult

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

public class ResourceResult
extends Object

Class that encapsulates a tree of resource names, with each node having an associated policy decision.


Field Summary
static String SELF_SCOPE
          Constant to indicate base (self) level scope for ResourceResult evaluation
static String STRICT_SUBTREE_SCOPE
          Constant to indicate strict subtree level scope for ResourceResult evaluation
static String SUBTREE_SCOPE
          Constant to indicate subtree level scope for ResourceResult evaluation
 
Method Summary
 PolicyDecision getPolicyDecision()
          Returns the policy decision associated with this resource result
 String getResourceName()
          Returns the resource name of this resource result
 Set getResourceResults()
          Returns the child resource results of this resource result
 String toString()
          Returns a string representation of this resource result
 String toXML()
          Returns an XML representation of this resource result
 

Field Detail

SUBTREE_SCOPE

public static final String SUBTREE_SCOPE
Constant to indicate subtree level scope for ResourceResult evaluation

See Also:
Constant Field Values

STRICT_SUBTREE_SCOPE

public static final String STRICT_SUBTREE_SCOPE
Constant to indicate strict subtree level scope for ResourceResult evaluation

See Also:
Constant Field Values

SELF_SCOPE

public static final String SELF_SCOPE
Constant to indicate base (self) level scope for ResourceResult evaluation

See Also:
Constant Field Values
Method Detail

getResourceName

public String getResourceName()
Returns the resource name of this resource result

Returns:
resource name of this resource result

getPolicyDecision

public PolicyDecision getPolicyDecision()
Returns the policy decision associated with this resource result

Returns:
policy decision associated with this resource result

getResourceResults

public Set getResourceResults()
Returns the child resource results of this resource result

Returns:
child resource results of this resource result

toString

public String toString()
Returns a string representation of this resource result

Overrides:
toString in class Object
Returns:
a string representation of this resource result

toXML

public String toXML()
Returns an XML representation of this resource result

Returns:
an XML representation of this resource result