public class WorkflowRelationship extends WorkflowEntity
This class holds a relationship in the workflow
| Constructor and Description | 
|---|
| WorkflowRelationship(WorkflowNode predecessorNode,
                    WorkflowNode successorNode)Constructs a workflow relation | 
| Modifier and Type | Method and Description | 
|---|---|
| WorkflowEntity | copy()Copies the workflow entity | 
| java.lang.Object | getAction()Gets the action | 
| int | getHorizontalRelationship()Gets the horizontal relationship between the ends of the line | 
| java.lang.Object | getInstruction()Gets the instruction | 
| WorkflowNode | getPredecessorNode()Gets the predecessor workflow node | 
| WorkflowNode | getSuccessorNode()Gets the successor workflow node | 
| int | getVerticalRelationship()Gets the vertical relationship between the ends of the line | 
| Workflow | getWorkflow()Gets the workflow | 
| boolean | isNegative()Gets the negative flag for the relationship | 
| void | restoreFrom(WorkflowEntity entity)Restores the workflow entity | 
| void | setAction(java.lang.Object action)Sets the action | 
| void | setInstruction(java.lang.Object instruction)Sets the instruction | 
| void | setNegative(boolean isNegative)Sets the negative flag for the relationship | 
| void | setWorkflow(Workflow workflow)Sets the workflow | 
| java.lang.String | toString()Returns the string representation of the relationship | 
hasPropertiespublic WorkflowRelationship(WorkflowNode predecessorNode, WorkflowNode successorNode)
predecessorNode - The predecessor nodesuccessorNode - The successor nodepublic Workflow getWorkflow()
public void setWorkflow(Workflow workflow)
workflow - The workflowpublic WorkflowNode getPredecessorNode()
public WorkflowNode getSuccessorNode()
public java.lang.Object getAction()
public void setAction(java.lang.Object action)
action - The actionpublic java.lang.Object getInstruction()
public void setInstruction(java.lang.Object instruction)
instruction - The instructionpublic void setNegative(boolean isNegative)
isNegative - The flag statepublic boolean isNegative()
public int getHorizontalRelationship()
public int getVerticalRelationship()
public WorkflowEntity copy()
copy in class WorkflowEntitypublic void restoreFrom(WorkflowEntity entity)
restoreFrom in class WorkflowEntityentity - The item to restore frompublic java.lang.String toString()
toString in class java.lang.Object