com.ibm.policy.manager
Interface Target


public interface Target

Target represents the object used to abstract a rule engine for the purpose of policy evaluation.

Use the PolicyManager interface to generate a Target consumable by Policy Manager.

Since:
6.0

Method Summary
 java.lang.Object get(java.lang.String key)
          Retrieve an attribute of the Target, for use in a Rule
 java.lang.String getCacheKey()
           
 java.lang.String getId()
          Retrieve a String that uniquely identifies this Target within the WebSphere cell.
 RuleContext getRuleContext()
          Retrieve the RuleContext for this Target
 java.util.Set keys()
          Retrieve a list of attributes which rules could access about this Target
 void put(java.lang.String name, java.lang.Object value)
          Set the value of an attribute in a Target.
 void remove(java.lang.String name)
          Remove an attribute from a Target
 void setContext(RuleContext ctx)
          Set the rule context for this Target
 

Method Detail

get

java.lang.Object get(java.lang.String key)
Retrieve an attribute of the Target, for use in a Rule

Parameters:
key - the name of the attribute
Returns:
an attribute of the Target, for use in a Rule

keys

java.util.Set keys()
Retrieve a list of attributes which rules could access about this Target

Returns:
an Enumeration of all of the attributes which rules could access about this Target

getId

java.lang.String getId()
Retrieve a String that uniquely identifies this Target within the WebSphere cell.

Returns:
a String which is uniquely identifies this Target within the WebSphere cell.

put

void put(java.lang.String name,
         java.lang.Object value)
Set the value of an attribute in a Target. For example, RuleContext

Parameters:
name - the name of the attribute
value - the new value of the attribute

remove

void remove(java.lang.String name)
Remove an attribute from a Target

Parameters:
name - the name of the attribute

setContext

void setContext(RuleContext ctx)
Set the rule context for this Target

Parameters:
ctx - RuleContext used to execute rule

getRuleContext

RuleContext getRuleContext()
Retrieve the RuleContext for this Target

Returns:
RuleContext used to execute rule

getCacheKey

java.lang.String getCacheKey()
Returns:
: Returns concatenated hashCode of values in HashMap of RuleContext