public abstract class ConditionOrAction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
PAR0 |
protected static java.lang.String |
PAR1 |
protected static java.lang.String |
PAR2 |
protected static java.lang.String |
PAR3 |
protected java.util.Set<com.uc4.api.objects.ConditionOrAction.Param> |
params |
Constructor and Description |
---|
ConditionOrAction() |
Modifier and Type | Method and Description |
---|---|
ConditionOrAction |
copy()
Creates a deep copy of this object
|
static Action |
createActionFromId(java.lang.String id)
Creates an action according to the id.
|
static Condition |
createConditionFromId(java.lang.String id)
Creates a condition according to the id.
|
boolean |
equals(java.lang.Object obj) |
abstract int |
getDisplayMessageID() |
abstract java.lang.String |
getId() |
java.lang.String |
getParameter(java.lang.String name)
Internal use only: Returns the value or message number of the specified parameter.
|
abstract int |
getParameterMessageID() |
java.lang.String |
getPromptName() |
java.lang.String |
getScriptName() |
abstract int |
getSkeletonMessageID() |
int |
hashCode() |
abstract boolean |
isAction() |
boolean |
isActive() |
abstract boolean |
isAfterCondition() |
abstract boolean |
isBeforeCondition() |
abstract boolean |
isIF() |
boolean |
isOnce() |
boolean |
isParameterAltView(java.lang.String name)
Returns
true if the alternative view is enabled for the specified parameter
If the parameter was not found false is returned. |
void |
setActive(boolean active)
Activates or deactivates a condition.
|
void |
setOnce(boolean once) |
void |
setParameter(java.lang.String name,
java.lang.String value,
java.lang.String type)
Internal use only: Sets a condition parameter using the variable name and message number.
|
protected static final java.lang.String PAR0
protected static final java.lang.String PAR1
protected static final java.lang.String PAR2
protected static final java.lang.String PAR3
protected java.util.Set<com.uc4.api.objects.ConditionOrAction.Param> params
public abstract java.lang.String getId()
public abstract boolean isAction()
com.uc4.api.objects.Action
or
false if the sub class is an instance of com.uc4.api.objects.Condition
public abstract boolean isBeforeCondition()
public abstract boolean isAfterCondition()
public abstract boolean isIF()
public abstract int getParameterMessageID()
public abstract int getSkeletonMessageID()
public abstract int getDisplayMessageID()
public static Condition createConditionFromId(java.lang.String id)
id
- ID of the Conditionpublic static Action createActionFromId(java.lang.String id)
id
- ID of the Actionpublic java.lang.String getParameter(java.lang.String name)
name
- Name of the script variable: XC_P01, XC_P02, XC_P03, XC_P04null
public boolean isParameterAltView(java.lang.String name)
true
if the alternative view is enabled for the specified parameter
If the parameter was not found false
is returned.name
- Parameter namepublic void setParameter(java.lang.String name, java.lang.String value, java.lang.String type)
name
- Name of the script variable: XC_P01, XC_P02, XC_P03, XC_P04value
- Value or a message number; example: "##911006"type
- Parameter type:
public java.lang.String getPromptName()
public java.lang.String getScriptName()
public boolean isOnce()
public void setOnce(boolean once)
once
- true if this condition should run oncepublic boolean isActive()
public void setActive(boolean active)
active
- true if the condition should be active, false if the condition should be inactivepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public ConditionOrAction copy()