public class UserDefinedCondition extends ConditionOrAction implements Condition
Constructor and Description |
---|
UserDefinedCondition()
Creates a new
UserDefinedCondition . |
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.
|
int |
getDisplayMessageID() |
java.lang.String |
getId() |
java.lang.String |
getOperator() |
int |
getParameterMessageID() |
int |
getSkeletonMessageID() |
java.lang.String |
getValue1() |
java.lang.String |
getValue2() |
boolean |
isAction() |
boolean |
isAfterCondition() |
boolean |
isBeforeCondition() |
boolean |
isIF() |
void |
setOperator(java.lang.String operator)
Sets the operator, one of "<", "<=", "=", ">", ">=", "<>" .
|
void |
setValue1(java.lang.String value1)
Sets the first value of this user defined condition.
|
void |
setValue2(java.lang.String value2)
Sets the second value of this user defined condition.
|
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.
|
copy, createActionFromId, createConditionFromId, equals, getParameter, getPromptName, getScriptName, hashCode, isActive, isOnce, isParameterAltView, setActive, setOnce, setParameter
public UserDefinedCondition()
UserDefinedCondition
.public void setValue1(java.lang.String value1)
value1
- First valuepublic void setOperator(java.lang.String operator)
operator
- Operatorpublic void setValue2(java.lang.String value2)
value2
- Second valuepublic java.lang.String getValue1()
public java.lang.String getOperator()
public java.lang.String getValue2()
public boolean isBeforeCondition()
isBeforeCondition
in interface Condition
isBeforeCondition
in class ConditionOrAction
public boolean isAfterCondition()
isAfterCondition
in interface Condition
isAfterCondition
in class ConditionOrAction
public java.lang.String getId()
getId
in interface Condition
getId
in class ConditionOrAction
public void addWhen(ConditionOrAction item)
Condition
public void addElse(ConditionOrAction item)
Condition
public int whenSize()
Condition
public int elseSize()
Condition
public java.util.Iterator<ConditionOrAction> whenIterator()
Condition
java.util.Iterator
can be used to remove conditions or actions.whenIterator
in interface Condition
public java.util.Iterator<ConditionOrAction> elseIterator()
Condition
java.util.Iterator
can be used to remove conditions or actions.elseIterator
in interface Condition
public boolean isAction()
isAction
in class ConditionOrAction
com.uc4.api.objects.Action
or
false if the sub class is an instance of com.uc4.api.objects.Condition
public boolean isIF()
isIF
in class ConditionOrAction
public int getParameterMessageID()
getParameterMessageID
in class ConditionOrAction
public int getSkeletonMessageID()
getSkeletonMessageID
in class ConditionOrAction
public int getDisplayMessageID()
getDisplayMessageID
in class ConditionOrAction