public class MomaMethods extends java.lang.Object implements RulePreMethod, RulePostMethod
The object is able to consume the following properties:
Property Keyword | Datatype | Default | Description |
---|---|---|---|
METHOD | String | empty | The name of the method to be invoked. |
Constructor and Description |
---|
MomaMethods() |
Modifier and Type | Method and Description |
---|---|
int |
execute(AbstractRule rule)
Execute the the method.
|
void |
setArguments(java.util.Properties arguments)
Set the arguments.
|
void |
setTransformer(Transformer transformer)
Set the transformer instance.
|
public void setTransformer(Transformer transformer)
setTransformer
in interface TransformerRequested
transformer
- The transformer.public void setArguments(java.util.Properties arguments) throws java.lang.Exception
setArguments
in interface PropertiesRequested
arguments
- the property mapjava.lang.Exception
public int execute(AbstractRule rule) throws RuleMethodException
execute
in interface RulePostMethod
execute
in interface RulePreMethod
rule
- the rule that own this method.RuleMethodException