com.adobe.icc.dbforms.obj
Class ModuleAssignment

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

public final class ModuleAssignment
extends Object
implements Serializable, Comparable

POJO representation for a Data Module assignment to a Target Area.

TargetAreas may contain a list of ModuleAssignments that determines the data modules assigned to the Target Area. Each assignment in the List would have its own properties determining whether the associated DataModule is preSelected, editable or optional.

See Also:
TargetAreaAssignment, Serialized Form

Field Summary
static String dataModuleFieldName
           
 
Constructor Summary
ModuleAssignment()
          Default constructor
 
Method Summary
 int compareTo(ModuleAssignment ma)
          Compare based on the position of the data module (to sort them)
 DataModule getDataModule()
          Get the target DataModule for the assignment.
 String getExpression()
          Get the associated expression for the assignment.
 String getId()
          Get the unique identifier for the assignment.
 Double getIndentationLevel()
          The indentation level specified for the target module.
 Integer getPosition()
          Get the position of the assignment in the list of module assignments.
 boolean isEditable()
          Get whether the assignment is editable.
 boolean isOptional()
          Get whether the assignment is optional.
 boolean isPreSelected()
          Get whether the assignment is pre-selected.
 void setDataModule(DataModule dataModule)
          Sets the target DataModule for the assignment.
 void setEditable(boolean editable)
          Sets whether the assignment is editable.
 void setExpression(String expression)
          Sets the associated expression for the assignment.
 void setId(String id)
          Sets the unique identifier for the assignment.
 void setIndentationLevel(Double indentationLevel)
          Sets the indentation level for the target module (should always be positive).
 void setOptional(boolean optional)
          Sets whether the assignment is optional.
 void setPosition(Integer position)
          Sets the position of the assignment in the list of module assignments.
 void setPreSelected(boolean preSelected)
          Sets whether the assignment is pre-selected.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataModuleFieldName

public static final String dataModuleFieldName
See Also:
Constant Field Values
Constructor Detail

ModuleAssignment

public ModuleAssignment()
Default constructor

Method Detail

getId

public String getId()
Get the unique identifier for the assignment.

Returns:
The unique identifier for the assignment.

setId

public void setId(String id)
Sets the unique identifier for the assignment.

Parameters:
id - The unique identifier for the assignment.

getDataModule

public DataModule getDataModule()
Get the target DataModule for the assignment.

Returns:
The target DataModule for the assignment.

setDataModule

public void setDataModule(DataModule dataModule)
Sets the target DataModule for the assignment.

Parameters:
dataModule - The target DataModule for the assignment.

getPosition

public Integer getPosition()
Get the position of the assignment in the list of module assignments.

Returns:
The position of the assignment in the list of module assignments.

setPosition

public void setPosition(Integer position)
Sets the position of the assignment in the list of module assignments.

Parameters:
position - The position of the assignment in the list of module assignments.

isEditable

public boolean isEditable()
Get whether the assignment is editable.

Returns:
Whether the assignment is editable.

setEditable

public void setEditable(boolean editable)
Sets whether the assignment is editable.

Parameters:
editable - Whether the assignment is editable.

isPreSelected

public boolean isPreSelected()
Get whether the assignment is pre-selected.

Returns:
Whether the assignment is pre-selected.

setPreSelected

public void setPreSelected(boolean preSelected)
Sets whether the assignment is pre-selected.

Parameters:
preSelected - Whether the assignment is pre-selected.

isOptional

public boolean isOptional()
Get whether the assignment is optional.

Returns:
Whether the assignment is optional.

setOptional

public void setOptional(boolean optional)
Sets whether the assignment is optional.

Parameters:
optional - Whether the assignment is optional.

getExpression

public String getExpression()
Get the associated expression for the assignment.

Returns:
The associated expression for the assignment.

setExpression

public void setExpression(String expression)
Sets the associated expression for the assignment.

Parameters:
expression - The associated expression for the assignment.

getIndentationLevel

public Double getIndentationLevel()
The indentation level specified for the target module.

Returns:
the indentationLevel specified for the target module.

setIndentationLevel

public void setIndentationLevel(Double indentationLevel)
Sets the indentation level for the target module (should always be positive).

Parameters:
indentationLevel - the indentation level to set for the target module.
Throws:
ICCException - if the given indentation level is invalid.

compareTo

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

Specified by:
compareTo in interface Comparable


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