Drools Workbench - Data Model API 6.2.0.CR3

org.drools.workbench.models.datamodel.rule
Class ActionFieldValue

java.lang.Object
  extended by org.drools.workbench.models.datamodel.rule.ActionFieldValue
All Implemented Interfaces:
FieldNature
Direct Known Subclasses:
ActionFieldFunction, ActionWorkItemFieldValue

public class ActionFieldValue
extends Object
implements FieldNature

Holds field and value for "action" parts of the rule.


Constructor Summary
ActionFieldValue()
           
ActionFieldValue(String field, String value, String type)
           
 
Method Summary
 boolean equals(Object o)
           
 String getField()
           
 int getNature()
           
 String getType()
           
 String getValue()
           
 int hashCode()
           
 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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionFieldValue

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

ActionFieldValue

public ActionFieldValue()
Method Detail

isFormula

public boolean isFormula()
Description copied from interface: FieldNature
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 FieldNature

getField

public String getField()
Specified by:
getField in interface FieldNature

setField

public void setField(String field)
Specified by:
setField in interface FieldNature

getValue

public String getValue()
Specified by:
getValue in interface FieldNature

setValue

public void setValue(String value)
Specified by:
setValue in interface FieldNature

getNature

public int getNature()
Specified by:
getNature in interface FieldNature

setNature

public void setNature(int nature)
Specified by:
setNature in interface FieldNature

getType

public String getType()
Specified by:
getType in interface FieldNature

setType

public void setType(String type)
Specified by:
setType in interface FieldNature

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Drools Workbench - Data Model API 6.2.0.CR3

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