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 TransformerRequestedtransformer - The transformer.public void setArguments(java.util.Properties arguments)
throws java.lang.Exception
setArguments in interface PropertiesRequestedarguments - the property mapjava.lang.Exceptionpublic int execute(AbstractRule rule) throws RuleMethodException
execute in interface RulePostMethodexecute in interface RulePreMethodrule - the rule that own this method.RuleMethodException