Class CallFieldValue
- java.lang.Object
-
- org.drools.workbench.models.testscenarios.shared.CallFieldValue
-
- All Implemented Interfaces:
org.drools.workbench.models.datamodel.rule.FieldNature
public class CallFieldValue extends Object implements org.drools.workbench.models.datamodel.rule.FieldNature
Holds field and value for "action" parts of the rule.
-
-
Constructor Summary
Constructors Constructor Description CallFieldValue()CallFieldValue(String field, String value, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetField()intgetNature()StringgetType()StringgetValue()booleanhasValue()booleanisFormula()This will return true if the value is really a "formula" - in the sense of like an excel spreadsheet.voidsetField(String field)voidsetNature(int nature)voidsetType(String type)voidsetValue(String value)
-
-
-
Method Detail
-
isFormula
public boolean isFormula()
This will return true if the value is really a "formula" - in the sense of like an excel spreadsheet. If it IS a formula, then the value should never be turned into a string, always left as-is.- Specified by:
isFormulain interfaceorg.drools.workbench.models.datamodel.rule.FieldNature
-
getField
public String getField()
- Specified by:
getFieldin interfaceorg.drools.workbench.models.datamodel.rule.FieldNature
-
setField
public void setField(String field)
- Specified by:
setFieldin interfaceorg.drools.workbench.models.datamodel.rule.FieldNature
-
getValue
public String getValue()
- Specified by:
getValuein interfaceorg.drools.workbench.models.datamodel.rule.FieldNature
-
setValue
public void setValue(String value)
- Specified by:
setValuein interfaceorg.drools.workbench.models.datamodel.rule.FieldNature
-
getNature
public int getNature()
- Specified by:
getNaturein interfaceorg.drools.workbench.models.datamodel.rule.FieldNature
-
setNature
public void setNature(int nature)
- Specified by:
setNaturein interfaceorg.drools.workbench.models.datamodel.rule.FieldNature
-
getType
public String getType()
- Specified by:
getTypein interfaceorg.drools.workbench.models.datamodel.rule.FieldNature
-
setType
public void setType(String type)
- Specified by:
setTypein interfaceorg.drools.workbench.models.datamodel.rule.FieldNature
-
hasValue
public boolean hasValue()
-
-