public class CheckFileCondition extends ConditionOrAction implements Condition
| Constructor and Description |
|---|
CheckFileCondition()
Creates a new
CheckFileCondition. |
| 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.
|
UC4HostName |
getAgent()
Returns the name of the Agent.
|
int |
getDisplayMessageID() |
java.lang.String |
getFile()
Returns the name of the file.
|
java.lang.String |
getId() |
UC4ObjectName |
getLogin()
Returns the name of the Login object.
|
int |
getParameterMessageID() |
int |
getSkeletonMessageID() |
boolean |
isAction() |
boolean |
isAfterCondition() |
boolean |
isBeforeCondition() |
boolean |
isExists()
Returns the exists property.
|
boolean |
isIF() |
void |
setAgent(UC4HostName agent)
Sets the name of the Agent.
|
void |
setExists(boolean exists)
Sets the exists property.
|
void |
setFile(java.lang.String file)
Sets the name of the File.
|
void |
setLogin(UC4ObjectName login)
Sets the name of the Login object that is used to check if the file exists.
|
void |
setOwnHost()
Sets *OWN as host .
|
void |
setOwnLogin()
Sets *OWN as Login object name .
|
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, setParameterpublic void setAgent(UC4HostName agent)
agent - Agentpublic void setOwnHost()
public void setFile(java.lang.String file)
file - Filenamepublic void setExists(boolean exists)
exists - Existspublic UC4HostName getAgent()
null if *OWN is usedpublic java.lang.String getFile()
public boolean isExists()
public UC4ObjectName getLogin()
null if *OWN is usedpublic void setLogin(UC4ObjectName login)
login - Login object namepublic void setOwnLogin()
public boolean isBeforeCondition()
isBeforeCondition in interface ConditionisBeforeCondition in class ConditionOrActionpublic boolean isAfterCondition()
isAfterCondition in interface ConditionisAfterCondition in class ConditionOrActionpublic java.lang.String getId()
getId in interface ConditiongetId in class ConditionOrActionpublic void addWhen(ConditionOrAction item)
Conditionpublic void addElse(ConditionOrAction item)
Conditionpublic int whenSize()
Conditionpublic int elseSize()
Conditionpublic java.util.Iterator<ConditionOrAction> whenIterator()
Conditionjava.util.Iterator
can be used to remove conditions or actions.whenIterator in interface Conditionpublic java.util.Iterator<ConditionOrAction> elseIterator()
Conditionjava.util.Iterator
can be used to remove conditions or actions.elseIterator in interface Conditionpublic boolean isAction()
isAction in class ConditionOrActioncom.uc4.api.objects.Action or
false if the sub class is an instance of com.uc4.api.objects.Conditionpublic boolean isIF()
isIF in class ConditionOrActionpublic int getParameterMessageID()
getParameterMessageID in class ConditionOrActionpublic int getSkeletonMessageID()
getSkeletonMessageID in class ConditionOrActionpublic int getDisplayMessageID()
getDisplayMessageID in class ConditionOrAction