org.drools.ide.common.client.modeldriven.brl
Class ActionFieldValue

java.lang.Object
  extended by org.drools.ide.common.client.modeldriven.brl.ActionFieldValue
All Implemented Interfaces:
Serializable, PortableObject, FieldNature
Direct Known Subclasses:
ActionFieldFunction

public class ActionFieldValue
extends Object
implements PortableObject, FieldNature

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

See Also:
Serialized Form

Field Summary
 String field
           
 long nature
           
 String type
          This is the datatype archectype (eg String, Numeric etc).
 String value
           
 
Fields inherited from interface org.drools.ide.common.client.modeldriven.FieldNature
TYPE_ENUM, TYPE_FORMULA, TYPE_LITERAL, TYPE_PREDICATE, TYPE_TEMPLATE, TYPE_UNDEFINED, TYPE_VARIABLE
 
Constructor Summary
ActionFieldValue()
           
ActionFieldValue(String field, String value, String type)
           
 
Method Summary
 String getField()
           
 long getNature()
           
 String getType()
           
 String getValue()
           
 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(long 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 long nature

type

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

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 long getNature()
Specified by:
getNature in interface FieldNature

setNature

public void setNature(long 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


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