Class StepList

    • Constructor Detail

      • StepList

        public StepList​(Step mainStep)
        A Sub-Scenario—a list of Steps in a Scenario. Can be nested, i.e., other StepLists can constitute a StepList. It is a composite of Components.
        Parameters:
        mainStep - a main step representing this sub-scenario
        See Also:
        Component, Step, Scenario
      • StepList

        public StepList​(String mainStepText)
        A Sub-Scenario—a list of Steps in a Scenario. Can be nested, i.e., other StepLists can constitute a StepList. It is a composite of Components.
        Parameters:
        mainStepText - a text from which new main Step will be created
        See Also:
        mainStep, Component, Step, Scenario
    • Method Detail

      • withNoMain

        public static StepList withNoMain()
        Deprecated.
      • getChildren

        public ArrayList<Component> getChildren()
        Get all the items in the StepList.
        Returns:
        ArrayList of Components: items in the list
        See Also:
        Component
      • add

        public void add​(Component item)
        Add an item to the StepList.
        Specified by:
        add in interface StepCollection
        Parameters:
        item - Component to be added
        See Also:
        Component
      • remove

        public void remove​(Component item)
        Remove an item from the StepList.
        Specified by:
        remove in interface StepCollection
        Parameters:
        item - Component to be removed.
        See Also:
        Component
      • getMainStep

        public Step getMainStep()
        Access the main Step of the StepList.
        Returns:
        the main step
        See Also:
        Step
      • setMainStep

        public void setMainStep​(Step step)
        Deprecated.
        main step will be final and set by constructor
        Parameters:
        step - a new main step