wt.rule.algorithm
Interface RuleAlgorithm

All Known Implementing Classes:
BooleanBranch, EnumTypeConstant, FolderPathAttributeAlgorithm, LifeCycleTemplateAttributeAlgorithm, NumberGenerator, OrganizationAttributeAlgorithm, StringConstant, TeamTemplateAttributeAlgorithm, VersionInfoGenerator, ViewAttributeAlgorithm

public interface RuleAlgorithm

An algorithm that can be used to compute a value based on a set of String arguments.

Supported API: false

Extendable: false


Method Summary
 Object calculate(Object[] args, WTContainerRef container)
          Execute the algorithm using the specified arguments.
 void validateArgs(String[] args)
          Validate the arguments.
 

Method Detail

calculate

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

Supported API: false

Parameters:
args - the arguments for the algorithm
container - the container to use for object lookups
Returns:
Object
Throws:
WTException

validateArgs

public void validateArgs(String[] args)
                  throws InvalidAlgorithmArgumentException
Validate the arguments. Throw an InvalidAlgorithmArgumentException if any of the arguments are invalid.

Supported API: false

Parameters:
args - the string args from the XML
Throws:
InvalidAlgorithmArgumentException