com.adobe.icc.dbforms.obj
Class CDMAssignment

java.lang.Object
  extended by com.adobe.icc.dbforms.obj.CDMAssignment
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class CDMAssignment
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

Assignment POJO for Condition Modules.

Each expression of a Condition has an associated CDMAssignment, which contains the expression and the associated DataModule selected if the expression evaluates to true.

See Also:
Serialized Form

Nested Class Summary
static class CDMAssignment.AssignmentType
          Enum for determining the assignment type (whether this is the Default case for the condition or not).
 
Constructor Summary
CDMAssignment()
           
 
Method Summary
 int compareTo(CDMAssignment ma)
          Compare based on the position of the data module (to sort them)
 CDMAssignment.AssignmentType getAssignmentType()
          Get the assignmentType for this Condition Assignment.
 java.lang.String getExpression()
          Get the expression for this Condition Assignment.
 java.lang.String getID()
          Get the unique identifier for this Condition Assignment.
 java.lang.Integer getPosition()
          Get the assignment's position for this Condition Assignment.
 DataModule getTarget()
          Get the target data module for this Condition Assignment.
 void setAssignmentType(CDMAssignment.AssignmentType assignmentType)
          Sets the assignmentType for this Condition Assignment.
 void setExpression(java.lang.String expression)
          Sets the expression for this Condition Assignment.
 void setID(java.lang.String iD)
          Sets the unique identifier for this Condition Assignment.
 void setPosition(java.lang.Integer position)
          Sets the assignment's position for this Condition Assignment.
 void setTarget(DataModule target)
          Sets the target data module for this Condition Assignment.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDMAssignment

public CDMAssignment()
Method Detail

getExpression

public java.lang.String getExpression()
Get the expression for this Condition Assignment.

Returns:
The expression for this Condition Assignment.

setExpression

public void setExpression(java.lang.String expression)
Sets the expression for this Condition Assignment.

Parameters:
expression - The expression for this Condition Assignment.

getAssignmentType

public CDMAssignment.AssignmentType getAssignmentType()
Get the assignmentType for this Condition Assignment. One of DEFAULT or NON_DEFAULT

Returns:
The assignment type for this Condition Assignment.
See Also:
CDMAssignment.AssignmentType

setAssignmentType

public void setAssignmentType(CDMAssignment.AssignmentType assignmentType)
Sets the assignmentType for this Condition Assignment. One of DEFAULT or NON_DEFAULT

Parameters:
assignmentType - The assignment type for this Condition Assignment.
See Also:
CDMAssignment.AssignmentType

getPosition

public java.lang.Integer getPosition()
Get the assignment's position for this Condition Assignment.

Returns:
The assignment's position for this Condition Assignment.

setPosition

public void setPosition(java.lang.Integer position)
Sets the assignment's position for this Condition Assignment.

Parameters:
position - The assignment's position for this Condition Assignment.

getTarget

public DataModule getTarget()
Get the target data module for this Condition Assignment.

Parameters:
position - The target data module for this Condition Assignment.

setTarget

public void setTarget(DataModule target)
Sets the target data module for this Condition Assignment.

Parameters:
target - The target data module for this Condition Assignment.

setID

public void setID(java.lang.String iD)
Sets the unique identifier for this Condition Assignment.

Parameters:
The - unique identifier for this Condition Assignment.

getID

public java.lang.String getID()
Get the unique identifier for this Condition Assignment.

Returns:
The unique identifier for this Condition Assignment.

compareTo

public int compareTo(CDMAssignment ma)
Compare based on the position of the data module (to sort them)

Specified by:
compareTo in interface java.lang.Comparable


[an error occurred while processing this directive] [an error occurred while processing this directive]