wt.rule.algorithm
Class EnumTypeConstant

java.lang.Object
  extended by wt.rule.algorithm.EnumTypeConstant
All Implemented Interfaces:
RuleAlgorithm

public class EnumTypeConstant
extends Object
implements RuleAlgorithm

An algorithm that takes the fully qualified name of a concrete EnumeratedType class and an internal value for an instance of that type and returns an instance of that type.

Supported API: true

Extendable: false


Method Summary
 Object calculate(Object[] args, WTContainerRef container)
          Execute the algorithm using the specified arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

calculate

public Object calculate(Object[] args,
                        WTContainerRef container)
                 throws WTException
Execute the algorithm using the specified arguments. Return the result.

Supported API: true

Specified by:
calculate in interface RuleAlgorithm
Parameters:
args - the arguments for the algorithm
container - the container to use for object lookups
Returns:
Object
Throws:
WTException