Class CheckFileCondition

    • Constructor Detail

      • CheckFileCondition

        public CheckFileCondition()
        Creates a new CheckFileCondition.
    • 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 null if *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 null if *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 .
      • addWhen

        public void addWhen​(ConditionOrAction item)
        Description copied from interface: Condition
        Adds a condition or action to the list of conditions/actions which should be executed when this condition is true.
        Specified by:
        addWhen in interface Condition
        Parameters:
        item - Condition or Action
      • addElse

        public void addElse​(ConditionOrAction item)
        Description copied from interface: Condition
        Adds a condition or action to the list of conditions/actions which should be executed when this condition is false.
        Specified by:
        addElse in interface Condition
        Parameters:
        item - Condition or Action
      • whenSize

        public int whenSize()
        Description copied from interface: Condition
        Returns the number of action/conditions which should be executed when this condition is true.
        Specified by:
        whenSize in interface Condition
        Returns:
        Number of conditions/actions
      • elseSize

        public int elseSize()
        Description copied from interface: Condition
        Returns the number of action/conditions which should be executed when this condition is false.
        Specified by:
        elseSize in interface Condition
        Returns:
        Number of conditions/actions
      • whenIterator

        public java.util.Iterator<ConditionOrAction> whenIterator()
        Description copied from interface: Condition
        The returned iterator can be used to get the actions/conditions which are executed when this condition is true. The remove() method of the java.util.Iterator can be used to remove conditions or actions.
        Specified by:
        whenIterator in interface Condition
        Returns:
        Iterator
      • elseIterator

        public java.util.Iterator<ConditionOrAction> elseIterator()
        Description copied from interface: Condition
        The returned iterator can be used to get the actions/conditions which are executed when this condition is false. The remove() method of the java.util.Iterator can be used to remove conditions or actions.
        Specified by:
        elseIterator in interface Condition
        Returns:
        Iterator
      • isAction

        public boolean isAction()
        Specified by:
        isAction in class ConditionOrAction
        Returns:
        true if the sub class is an instance of com.uc4.api.objects.Action or false if the sub class is an instance of com.uc4.api.objects.Condition
      • isIF

        public boolean isIF()
        Specified by:
        isIF in class ConditionOrAction
        Returns:
        true if the action/condition is allowed in the condition of an IF workflow