public class NumberGenerator
extends Object
implements RuleAlgorithm
<AttrValue id="number" algorithm="ext.sulis.NumberGenerator">
<Arg>{TASK:/ext/testNumber.xml}</Arg>
</AttrValue>
Constructor and Description |
---|
NumberGenerator() |
Modifier and Type | Method and Description |
---|---|
Object |
calculate(Object[] args,
WTContainerRef container)
replace special markup for autogenerated number
|
static void |
main(String[] args)
allow command line test for rules.
|
void |
validateArgs(String[] as)
not implemented so far.
|
public static final int MAJOR
public static final int MINOR
public Object calculate(Object[] args, WTContainerRef container) throws WTException
calculate
in interface RuleAlgorithm
args
- input array from rule.container
- for obj.WTException
public void validateArgs(String[] as) throws InvalidAlgorithmArgumentException
as
- input argsInvalidAlgorithmArgumentException
public static void main(String[] args) throws Exception
args
- Exception