org.drools.ide.common.client.modeldriven
Interface FieldNature

All Known Implementing Classes:
ActionFieldFunction, ActionFieldValue, CallFieldValue

public interface FieldNature


Field Summary
static int TYPE_ENUM
          This is not used yet.
static int TYPE_FORMULA
          This is for a "formula" that calculates a value.
static int TYPE_LITERAL
          This may be string, or number, anything really.
static int TYPE_PREDICATE
          The fieldName and fieldBinding is not used in the case of a predicate.
static int TYPE_TEMPLATE
          This is for a field to be a placeholder for a template
static int TYPE_UNDEFINED
          This is used only when action is first created.
static int TYPE_VARIABLE
          This is when it is set to a valid previously bound variable.
 
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)
           
 

Field Detail

TYPE_UNDEFINED

static final int TYPE_UNDEFINED
This is used only when action is first created. This means that there is no value yet for the constraint.

See Also:
Constant Field Values

TYPE_LITERAL

static final int TYPE_LITERAL
This may be string, or number, anything really.

See Also:
Constant Field Values

TYPE_VARIABLE

static final int TYPE_VARIABLE
This is when it is set to a valid previously bound variable.

See Also:
Constant Field Values

TYPE_FORMULA

static final int TYPE_FORMULA
This is for a "formula" that calculates a value.

See Also:
Constant Field Values

TYPE_ENUM

static final int TYPE_ENUM
This is not used yet. ENUMs are not suitable for business rules until we can get data driven non code enums.

See Also:
Constant Field Values

TYPE_PREDICATE

static final int TYPE_PREDICATE
The fieldName and fieldBinding is not used in the case of a predicate.

See Also:
Constant Field Values

TYPE_TEMPLATE

static final int TYPE_TEMPLATE
This is for a field to be a placeholder for a template

See Also:
Constant Field Values
Method Detail

isFormula

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.


getField

String getField()

setField

void setField(String field)

getValue

String getValue()

setValue

void setValue(String value)

getNature

long getNature()

setNature

void setNature(long nature)

getType

String getType()

setType

void setType(String type)


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