|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.rule.init.InitRuleEvalServiceFwd
This provides APIs for evaluating INIT
rules.
Supported API: false
Extendable: false
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 |
static final boolean SERVER
private static final String FC_RESOURCE
private static final String CLASSNAME
Constructor Detail |
public InitRuleEvalServiceFwd()
Method Detail |
private static Manager getManager() throws WTException
WTException
public AttributeValues getAttributeValues(Rule rule) throws WTException
getAttributeValues
in interface InitRuleEvalService
rule
-
WTException
public Object getValue(String id, Object object, WTContainerRef container) throws WTException
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:
Class
TypeIdentifier
String
specifying the name of the type
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.
getValue
in interface InitRuleEvalService
id
- the logical identifier of the attributeobject
- the object to use for attribute references or a type identifiercontainer
- the container to use for data lookups
WTException
public Object getValue(AlgoValue value, Object object, WTContainerRef container) throws WTException
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:
Class
TypeIdentifier
String
specifying the name of the type
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.
getValue
in interface InitRuleEvalService
value
- the value to be calculatedobject
- the object to use for attribute references or a type identifiercontainer
- the container to use for data lookups
WTException
public Object getValue(Attr attr, Object object) throws WTException
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:
Class
TypeIdentifier
String
specifying the name of the type
type identifier
is passed in, then the default value
for the attribute is returned. Otherwise, the value is obtained from
the object
.
getValue
in interface InitRuleEvalService
attr
- the attribute to getobject
- the object to get the value from or a type identifier
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |