public class ConditionsSet extends java.lang.Object implements java.lang.Iterable<ConditionOrAction>
Modifier | Constructor and Description |
---|---|
protected |
ConditionsSet(boolean preCondition,
org.w3c.dom.Element task,
java.lang.String idnr,
java.lang.String lnr) |
Modifier and Type | Method and Description |
---|---|
void |
add(ConditionOrAction item)
Adds a new condition.
|
void |
checkAllowedCondition(ConditionOrAction ca)
This method checks if the passed
ConditionOrAction is allowed in a Pre/Post Condition tab (included sub conditions/actions). |
void |
clear()
Removes all conditions.
|
ConditionsSet |
copy()
Creates a deep copy of this object
|
java.util.Iterator<ConditionOrAction> |
iterator() |
int |
size() |
protected ConditionsSet(boolean preCondition, org.w3c.dom.Element task, java.lang.String idnr, java.lang.String lnr)
public void clear()
public java.util.Iterator<ConditionOrAction> iterator()
iterator
in interface java.lang.Iterable<ConditionOrAction>
public void add(ConditionOrAction item)
item
- Sub class of ConditionOrActionpublic int size()
public void checkAllowedCondition(ConditionOrAction ca) throws java.io.InvalidObjectException
ConditionOrAction
is allowed in a Pre/Post Condition tab (included sub conditions/actions).
If not, an InvalidObjectException
will be thrown.ca
- Condition or Actionjava.io.InvalidObjectException
- if the condition or action is not validpublic ConditionsSet copy()