Drools Workbench - Test Scenarios Model 6.1.0.Beta4

org.drools.workbench.models.testscenarios.shared
Class CallFieldValue

java.lang.Object
  extended by 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.


Field Summary
 String field
           
 int nature
           
 String type
          This is the datatype archectype (eg String, Numeric etc).
 String value
           
 
Constructor Summary
CallFieldValue()
           
CallFieldValue(String field, String value, String type)
           
 
Method Summary
 String getField()
           
 int getNature()
           
 String getType()
           
 String getValue()
           
 boolean hasValue()
           
 boolean isFormula()
          This will return true if the value is really a "formula" - in the sense of like an excel spreadsheet.
 void setField(String field)
           
 void setNature(int nature)
           
 void setType(String type)
           
 void setValue(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

field

public String field

value

public String value

nature

public int nature

type

public String type
This is the datatype archectype (eg String, Numeric etc).

Constructor Detail

CallFieldValue

public CallFieldValue(String field,
                      String value,
                      String type)

CallFieldValue

public CallFieldValue()
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:
isFormula in interface org.drools.workbench.models.datamodel.rule.FieldNature

getField

public String getField()
Specified by:
getField in interface org.drools.workbench.models.datamodel.rule.FieldNature

setField

public void setField(String field)
Specified by:
setField in interface org.drools.workbench.models.datamodel.rule.FieldNature

getValue

public String getValue()
Specified by:
getValue in interface org.drools.workbench.models.datamodel.rule.FieldNature

setValue

public void setValue(String value)
Specified by:
setValue in interface org.drools.workbench.models.datamodel.rule.FieldNature

getNature

public int getNature()
Specified by:
getNature in interface org.drools.workbench.models.datamodel.rule.FieldNature

setNature

public void setNature(int nature)
Specified by:
setNature in interface org.drools.workbench.models.datamodel.rule.FieldNature

getType

public String getType()
Specified by:
getType in interface org.drools.workbench.models.datamodel.rule.FieldNature

setType

public void setType(String type)
Specified by:
setType in interface org.drools.workbench.models.datamodel.rule.FieldNature

hasValue

public boolean hasValue()

Drools Workbench - Test Scenarios Model 6.1.0.Beta4

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.