public class And extends WorkflowElement
relatedSentence
Constructor and Description |
---|
And(WorkflowElement parent,
Sentence s)
Standard constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addOption(Sequence op)
Adds new path to the and-node.
|
boolean |
equals(java.lang.Object obj) |
void |
exportWf2Xml(javax.xml.stream.XMLStreamWriter writer)
Writes and-node and all sequences to output-format
|
Sequence |
getNextSequence()
returns and deletes next sequence
|
int |
getOptionCount() |
int |
hashCode() |
addRelSentence, getId, getParentElement, getResName, reset, setParentElement, setResName
public And(WorkflowElement parent, Sentence s)
parent
- The parent elements
- The sentence of which the AND was extractedpublic void addOption(Sequence op)
op
- sequence to add to and nodepublic Sequence getNextSequence() throws java.util.EmptyStackException
java.util.EmptyStackException
public int getOptionCount()
public void exportWf2Xml(javax.xml.stream.XMLStreamWriter writer)
exportWf2Xml
in class WorkflowElement
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