Class ActionCallMethod
- java.lang.Object
-
- org.drools.workbench.models.datamodel.rule.ActionFieldList
-
- org.drools.workbench.models.datamodel.rule.ActionSetField
-
- org.drools.workbench.models.datamodel.rule.ActionCallMethod
-
- All Implemented Interfaces:
IAction
public class ActionCallMethod extends ActionSetField
For modifying a field on a bound LHS variable or a global. Modify here means that users can call methods that modify the object. If setting a field on a fact bound variable, this will NOT notify the engine of any changes (unless done outside of the engine).
-
-
Field Summary
Fields Modifier and Type Field Description static intTYPE_DEFINEDThe function has been choosenstatic intTYPE_UNDEFINED
-
Constructor Summary
Constructors Constructor Description ActionCallMethod()ActionCallMethod(String itemText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFieldValue(ActionFieldValue val)booleanequals(Object o)ActionFieldFunctiongetFieldValue(int i)StringgetMethodName()intgetState()inthashCode()voidsetMethodName(String methodName)voidsetState(int state)-
Methods inherited from class org.drools.workbench.models.datamodel.rule.ActionSetField
getVariable, setVariable
-
Methods inherited from class org.drools.workbench.models.datamodel.rule.ActionFieldList
getFieldValues, removeField, setFieldValues
-
-
-
-
Field Detail
-
TYPE_UNDEFINED
public static final int TYPE_UNDEFINED
- See Also:
- Constant Field Values
-
TYPE_DEFINED
public static final int TYPE_DEFINED
The function has been choosen- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ActionCallMethod
public ActionCallMethod(String itemText)
-
ActionCallMethod
public ActionCallMethod()
-
-
Method Detail
-
getState
public int getState()
-
getMethodName
public String getMethodName()
-
setState
public void setState(int state)
-
setMethodName
public void setMethodName(String methodName)
-
getFieldValue
public ActionFieldFunction getFieldValue(int i)
-
addFieldValue
public void addFieldValue(ActionFieldValue val)
- Overrides:
addFieldValuein classActionFieldList
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classActionSetField
-
hashCode
public int hashCode()
- Overrides:
hashCodein classActionSetField
-
-