Package com.uc4.api.objects
Class CheckFileCondition
- java.lang.Object
-
- com.uc4.api.objects.ConditionOrAction
-
- com.uc4.api.objects.CheckFileCondition
-
- All Implemented Interfaces:
Condition
public class CheckFileCondition extends ConditionOrAction implements Condition
Checks if a file exists. Note: No stability check.
-
-
Constructor Summary
Constructors Constructor Description CheckFileCondition()Creates a newCheckFileCondition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElse(ConditionOrAction item)Adds a condition or action to the list of conditions/actions which should be executed when this condition is false.voidaddWhen(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.intelseSize()Returns the number of action/conditions which should be executed when this condition is false.UC4HostNamegetAgent()Returns the name of the Agent.intgetDisplayMessageID()java.lang.StringgetFile()Returns the name of the file.java.lang.StringgetId()UC4ObjectNamegetLogin()Returns the name of the Login object.intgetParameterMessageID()intgetSkeletonMessageID()booleanisAction()booleanisAfterCondition()booleanisBeforeCondition()booleanisExists()Returns the exists property.booleanisIF()voidsetAgent(UC4HostName agent)Sets the name of the Agent.voidsetExists(boolean exists)Sets the exists property.voidsetFile(java.lang.String file)Sets the name of the File.voidsetLogin(UC4ObjectName login)Sets the name of the Login object that is used to check if the file exists.voidsetOwnHost()Sets *OWN as host .voidsetOwnLogin()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.intwhenSize()Returns the number of action/conditions which should be executed when this condition is true.-
Methods inherited from class com.uc4.api.objects.ConditionOrAction
copy, createActionFromId, createConditionFromId, equals, getParameter, getPromptName, getScriptName, hashCode, isActive, isOnce, isParameterAltView, setActive, setOnce, setParameter
-
-
-
-
Method Detail
-
setAgent
public void setAgent(UC4HostName agent)
Sets the name of the Agent.- Parameters:
agent- Agent
-
setOwnHost
public void setOwnHost()
Sets *OWN as host .
-
setFile
public void setFile(java.lang.String file)
Sets the name of the File.- Parameters:
file- Filename
-
setExists
public void setExists(boolean exists)
Sets the exists property.- Parameters:
exists- Exists
-
getAgent
public UC4HostName getAgent()
Returns the name of the Agent.- Returns:
- Agent or
nullif *OWN is used
-
getFile
public java.lang.String getFile()
Returns the name of the file.- Returns:
- filename
-
isExists
public boolean isExists()
Returns the exists property.- Returns:
- Exists
-
getLogin
public UC4ObjectName getLogin()
Returns the name of the Login object.- Returns:
- Login or
nullif *OWN is used
-
setLogin
public void setLogin(UC4ObjectName login)
Sets the name of the Login object that is used to check if the file exists.- Parameters:
login- Login object name
-
setOwnLogin
public void setOwnLogin()
Sets *OWN as Login object name .
-
isBeforeCondition
public boolean isBeforeCondition()
- Specified by:
isBeforeConditionin interfaceCondition- Specified by:
isBeforeConditionin classConditionOrAction- Returns:
- true if the action/condition is allowed on the "Pre-Condition" tab
-
isAfterCondition
public boolean isAfterCondition()
- Specified by:
isAfterConditionin interfaceCondition- Specified by:
isAfterConditionin classConditionOrAction- Returns:
- true if the action/condition is allowed on the "Post-Condition" tab
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceCondition- Specified by:
getIdin classConditionOrAction- Returns:
- ID of the condition or action
-
addWhen
public void addWhen(ConditionOrAction item)
Description copied from interface:ConditionAdds a condition or action to the list of conditions/actions which should be executed when this condition is true.
-
addElse
public void addElse(ConditionOrAction item)
Description copied from interface:ConditionAdds a condition or action to the list of conditions/actions which should be executed when this condition is false.
-
whenSize
public int whenSize()
Description copied from interface:ConditionReturns the number of action/conditions which should be executed when this condition is true.
-
elseSize
public int elseSize()
Description copied from interface:ConditionReturns the number of action/conditions which should be executed when this condition is false.
-
whenIterator
public java.util.Iterator<ConditionOrAction> whenIterator()
Description copied from interface:ConditionThe returned iterator can be used to get the actions/conditions which are executed when this condition is true. The remove() method of thejava.util.Iteratorcan be used to remove conditions or actions.- Specified by:
whenIteratorin interfaceCondition- Returns:
- Iterator
-
elseIterator
public java.util.Iterator<ConditionOrAction> elseIterator()
Description copied from interface:ConditionThe returned iterator can be used to get the actions/conditions which are executed when this condition is false. The remove() method of thejava.util.Iteratorcan be used to remove conditions or actions.- Specified by:
elseIteratorin interfaceCondition- Returns:
- Iterator
-
isAction
public boolean isAction()
- Specified by:
isActionin classConditionOrAction- Returns:
- true if the sub class is an instance of
com.uc4.api.objects.Actionor false if the sub class is an instance ofcom.uc4.api.objects.Condition
-
isIF
public boolean isIF()
- Specified by:
isIFin classConditionOrAction- Returns:
- true if the action/condition is allowed in the condition of an IF workflow
-
getParameterMessageID
public int getParameterMessageID()
- Specified by:
getParameterMessageIDin classConditionOrAction- Returns:
- Message number of the parameter message
-
getSkeletonMessageID
public int getSkeletonMessageID()
- Specified by:
getSkeletonMessageIDin classConditionOrAction- Returns:
- Message number of this condition or action
-
getDisplayMessageID
public int getDisplayMessageID()
- Specified by:
getDisplayMessageIDin classConditionOrAction- Returns:
- Message number for displaying this condition
-
-