public class ConditionsSet extends Object implements Iterable<ConditionOrAction>
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
|
Iterator<ConditionOrAction> |
iterator() |
int |
size() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public void clear()
public Iterator<ConditionOrAction> iterator()
iterator
in interface Iterable<ConditionOrAction>
public void add(ConditionOrAction item)
item
- Sub class of ConditionOrActionpublic int size()
public void checkAllowedCondition(ConditionOrAction ca) throws InvalidObjectException
ConditionOrAction
is allowed in a Pre/Post Condition tab (included sub conditions/actions).
If not, an InvalidObjectException
will be thrown.ca
- Condition or ActionInvalidObjectException
- if the condition or action is not validpublic ConditionsSet copy()
Copyright © 2021. All rights reserved.