Package wt.rule.algorithm
Class StringEqualsTest
java.lang.Object
wt.rule.algorithm.StringEqualsTest
- All Implemented Interfaces:
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
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptioncalculate(Object[] args, WTContainerRef container) Execute the algorithm using the specified arguments.
-
Method Details
-
calculate
Execute the algorithm using the specified arguments. Return the result.
Supported API: true- Specified by:
calculatein interfaceRuleAlgorithm- Parameters:
args- the arguments for the algorithmcontainer- the container to use for object lookups- Returns:
- Object
- Throws:
WTException
-