public class Sequence extends WorkflowElement
relatedSentence
Constructor and Description |
---|
Sequence(WorkflowElement parent,
Sentence s)
Initializes the list with sequence elements
|
Modifier and Type | Method and Description |
---|---|
void |
addWfElement(WorkflowElement wfe)
Adds a workflow element at the end of the list.
|
boolean |
equals(java.lang.Object obj) |
void |
exportWf2Xml(javax.xml.stream.XMLStreamWriter writer)
Writes all workflowelements of the sequence to output-format.
|
void |
exportWf2Xml(javax.xml.stream.XMLStreamWriter writer,
java.lang.String cond)
Writes all workflowelements of the sequence to output-format.
|
java.util.LinkedList<WorkflowElement> |
getAllElements()
Returns the linkedList of workflow elements of the sequence.
|
WorkflowElement |
getElementAt(int pos)
Get Element which is at position "pos" in the sequence
|
WorkflowElement |
getLast()
Gets the last element of the list without removing it.
|
int |
hashCode() |
int |
indexOf(WorkflowElement elem)
Returns the index of the workflow element in the sequence
|
WorkflowElement |
popLast()
Retrieves and removes the last workflowelement from the list.
|
void |
putAllElements(java.util.LinkedList<WorkflowElement> elem) |
void |
putElementAt(WorkflowElement elem,
int pos)
Puts Element elem at position pos in the sequence
|
void |
removeWfe(WorkflowElement wfe)
Remove element wfe from sequence
|
addRelSentence, getId, getParentElement, getResName, reset, setParentElement, setResName
public Sequence(WorkflowElement parent, Sentence s)
public void addWfElement(WorkflowElement wfe)
workflowElement
- public WorkflowElement getElementAt(int pos)
pos
- position of elementpublic java.util.LinkedList<WorkflowElement> getAllElements()
public void putAllElements(java.util.LinkedList<WorkflowElement> elem)
public void putElementAt(WorkflowElement elem, int pos)
elem
- pos
- public int indexOf(WorkflowElement elem)
elem
- public WorkflowElement popLast()
public WorkflowElement getLast()
public void removeWfe(WorkflowElement wfe)
public void exportWf2Xml(javax.xml.stream.XMLStreamWriter writer)
exportWf2Xml
in class WorkflowElement
writer
- stream-writer that is used to write outpublic void exportWf2Xml(javax.xml.stream.XMLStreamWriter writer, java.lang.String cond)
writer
- stream-writer that is used to write outpublic int hashCode()
hashCode
in class WorkflowElement
public boolean equals(java.lang.Object obj)
equals
in class WorkflowElement