public interface Condition
Modifier and Type | Method and Description |
---|---|
void |
addElse(ConditionOrAction item)
Adds a condition or action to the list of conditions/actions which should be executed
when this condition is false.
|
void |
addWhen(ConditionOrAction item)
Adds a condition or action to the list of conditions/actions which should be executed
when this condition is true.
|
java.util.Iterator<ConditionOrAction> |
elseIterator()
The returned iterator can be used to get the actions/conditions which are executed
when this condition is false.
|
int |
elseSize()
Returns the number of action/conditions which should be executed
when this condition is false.
|
java.lang.String |
getId() |
boolean |
isAfterCondition() |
boolean |
isBeforeCondition() |
java.util.Iterator<ConditionOrAction> |
whenIterator()
The returned iterator can be used to get the actions/conditions which are executed
when this condition is true.
|
int |
whenSize()
Returns the number of action/conditions which should be executed
when this condition is true.
|
boolean isBeforeCondition()
boolean isAfterCondition()
void addWhen(ConditionOrAction item)
item
- Condition or Actionvoid addElse(ConditionOrAction item)
item
- Condition or Actionint whenSize()
int elseSize()
java.util.Iterator<ConditionOrAction> whenIterator()
java.util.Iterator
can be used to remove conditions or actions.java.util.Iterator<ConditionOrAction> elseIterator()
java.util.Iterator
can be used to remove conditions or actions.java.lang.String getId()