wt.rule.init
Interface InitRuleEvalService

All Known Implementing Classes:
InitRuleEvalServiceFwd, StandardInitRuleEvalService

public interface InitRuleEvalService

This provides APIs for evaluating INIT rules.

Supported API: false

Extendable: false


Method Summary
 AttributeValues getAttributeValues(Rule rule)
          Return the attribute values specification that results from parsing the rule.
 Object getValue(AlgoValue value, Object object, WTContainerRef container)
          Calculate the value using the specified algorithm and arguments.
 Object getValue(Attr attr, Object object)
          Get the value of the specified attribute from the specified object.
 Object getValue(String id, Object object, WTContainerRef container)
          Calculate the value for the attribute with the specified id for the specified object and container.
 

Method Detail

getAttributeValues

public AttributeValues getAttributeValues(Rule rule)
                                   throws WTException
Return the attribute values specification that results from parsing the rule.

Supported API: false

Parameters:
rule -
Returns:
AttributeValues
Throws:
WTException

getValue

public Object getValue(String id,
                       Object object,
                       WTContainerRef container)
                throws WTException
Calculate the value for the attribute with the specified id for the specified object and container.

The object argument may be a type identifier or a normal object. A type identifier is one of the following:

If a type identifier is passed in, then the attribute value is calculated using default values for any attributes referenced by the INIT rule. Otherwise, attribute values from the object are used.

Supported API: false

Parameters:
id - the logical identifier of the attribute
object - the object to use for attribute references or a type identifier
container - the container to use for data lookups
Returns:
Object
Throws:
WTException

getValue

public Object getValue(AlgoValue value,
                       Object object,
                       WTContainerRef container)
                throws WTException
Calculate the value using the specified algorithm and arguments.

The object argument may be a type identifier or a normal object. A type identifier is one of the following:

If a type identifier is passed in, then the attribute value is calculated using default values for any attributes referenced while computing the attribute value. Otherwise, attribute values from the object are used.

Supported API: false

Parameters:
value - the value to be calculated
object - the object to use for attribute references or a type identifier
container - the container to use for data lookups
Returns:
Object
Throws:
WTException

getValue

public Object getValue(Attr attr,
                       Object object)
                throws WTException
Get the value of the specified attribute from the specified object.

The object argument may be a type identifier or a normal object. A type identifier is one of the following:

If a type identifier is passed in, then the default value for the attribute is returned. Otherwise, the value is obtained from the object.

Supported API: false

Parameters:
attr - the attribute to get
object - the object to get the value from or a type identifier
Returns:
Object
Throws:
WTException