wt.rule.algorithm
Class StringEqualsTest

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

public final class StringEqualsTest
extends Object
implements RuleAlgorithm

Given an attribute and value determine the equality. Force everything using toString() first before comparison. String to String comparison. If the length of the arguments passed is not two, throw exception.Converts using toString() if the parameters passed in is not String type. Force everything using toString() first.If 's return value is not the String type, the result is that one might not get the original intention value of the attribute, since the default or false value might be taken when the StringEqualsTest is false.

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