org.drools.ide.common.client.modeldriven.testing
Class FieldData

java.lang.Object
  extended by org.drools.ide.common.client.modeldriven.testing.FieldData
All Implemented Interfaces:
Serializable, PortableObject

public class FieldData
extends Object
implements PortableObject

See Also:
Serialized Form

Field Summary
 List<FieldData> collectionFieldList
           
 String collectionType
           
static int TYPE_COLLECTION
           
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_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.
 
Constructor Summary
FieldData()
           
FieldData(String name, String value)
           
 
Method Summary
 String getName()
           
 long getNature()
           
 String getValue()
           
 void setName(String name)
           
 void setNature(long nature)
           
 void setNature(long l, String collectionType)
           
 void setValue(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_UNDEFINED

public 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

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

See Also:
Constant Field Values

TYPE_VARIABLE

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

See Also:
Constant Field Values

TYPE_FORMULA

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

See Also:
Constant Field Values

TYPE_ENUM

public 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

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

See Also:
Constant Field Values

TYPE_COLLECTION

public static final int TYPE_COLLECTION
See Also:
Constant Field Values

collectionFieldList

public List<FieldData> collectionFieldList

collectionType

public String collectionType
Constructor Detail

FieldData

public FieldData()

FieldData

public FieldData(String name,
                 String value)
Method Detail

getNature

public long getNature()

setNature

public void setNature(long l,
                      String collectionType)

setName

public void setName(String name)

getName

public String getName()

setValue

public void setValue(String value)

getValue

public String getValue()

setNature

public void setNature(long nature)


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