Class ActionList
java.lang.Object
org.springframework.webflow.engine.ActionList
An ordered, typed list of actions, mainly for use internally by flow artifacts that can execute groups of actions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add an action to this list.boolean
Add a collection of actions to this list.boolean
Tests if the action is in this list.void
execute
(RequestContext context) Executes the actions contained within this action list.get
(int index) Returns the action in this list at the provided index.getAnnotated
(int index) Returns the action in this list at the provided index, exposing it as an annotated action.iterator()
Returns an iterator over this action list.boolean
Remove the action instance from this list.int
size()
Returns the size of this action list.Returns the list of actions in this list as a typed annotated action array.Action[]
toArray()
Convert this list to a typed action array.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ActionList
public ActionList()
-
-
Method Details
-
add
Add an action to this list.- Parameters:
action
- the action to add- Returns:
- true if this list's contents changed as a result of the add operation
-
addAll
Add a collection of actions to this list.- Parameters:
actions
- the actions to add- Returns:
- true if this list's contents changed as a result of the add operation
-
contains
Tests if the action is in this list.- Parameters:
action
- the action- Returns:
- true if the action is contained in this list, false otherwise
-
remove
Remove the action instance from this list.- Parameters:
action
- the action to add- Returns:
- true if this list's contents changed as a result of the remove operation
-
size
public int size()Returns the size of this action list.- Returns:
- the action list size.
-
get
Returns the action in this list at the provided index.- Parameters:
index
- the action index- Returns:
- the action the action
- Throws:
IndexOutOfBoundsException
-
getAnnotated
Returns the action in this list at the provided index, exposing it as an annotated action. This allows clients to access specific properties about a target action instance if they exist.- Returns:
- the action, as an annotated action
- Throws:
IndexOutOfBoundsException
-
iterator
Returns an iterator over this action list. -
toArray
Convert this list to a typed action array.- Returns:
- the action list, as a typed array
-
toAnnotatedArray
Returns the list of actions in this list as a typed annotated action array. This is a convenience method allowing clients to access properties about an action if they exist.- Returns:
- the annotated action list, as a typed array
-
execute
Executes the actions contained within this action list. Simply iterates over each action and calls execute. Action result events are ignored.- Parameters:
context
- the action execution request context
-
toString
-