wt.rule.init
Class InitRuleEvalServiceFwd

java.lang.Object
  extended bywt.rule.init.InitRuleEvalServiceFwd
All Implemented Interfaces:
InitRuleEvalService, RemoteAccess, Serializable

public class InitRuleEvalServiceFwd
extends Object
implements RemoteAccess, InitRuleEvalService, Serializable

This provides APIs for evaluating INIT rules.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String FC_RESOURCE
           
(package private) static boolean SERVER
           
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Constructor Summary
InitRuleEvalServiceFwd()
           
 
Method Summary
 AttributeValues getAttributeValues(Rule rule)
          Return the attribute values specification that results from parsing the rule.
private static Manager getManager()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER

static final boolean SERVER

FC_RESOURCE

private static final String FC_RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

InitRuleEvalServiceFwd

public InitRuleEvalServiceFwd()
Method Detail

getManager

private static Manager getManager()
                           throws WTException
Returns:
Manager
Throws:
WTException

getAttributeValues

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

Supported API: false

Specified by:
getAttributeValues in interface InitRuleEvalService
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

Specified by:
getValue in interface InitRuleEvalService
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

Specified by:
getValue in interface InitRuleEvalService
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

Specified by:
getValue in interface InitRuleEvalService
Parameters:
attr - the attribute to get
object - the object to get the value from or a type identifier
Returns:
Object
Throws:
WTException