public class ActionList
extends java.lang.Object
Constructor and Description |
---|
ActionList() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Action action)
Add an action to this list.
|
boolean |
addAll(Action[] actions)
Add a collection of actions to this list.
|
boolean |
contains(Action action)
Tests if the action is in this list.
|
void |
execute(RequestContext context)
Executes the actions contained within this action list.
|
Action |
get(int index)
Returns the action in this list at the provided index.
|
AnnotatedAction |
getAnnotated(int index)
Returns the action in this list at the provided index, exposing it as an annotated action.
|
java.util.Iterator |
iterator()
Returns an iterator over this action list.
|
boolean |
remove(Action action)
Remove the action instance from this list.
|
int |
size()
Returns the size of this action list.
|
AnnotatedAction[] |
toAnnotatedArray()
Returns the list of actions in this list as a typed annotated action array.
|
Action[] |
toArray()
Convert this list to a typed action array.
|
java.lang.String |
toString() |
public boolean add(Action action)
action
- the action to addpublic boolean addAll(Action[] actions)
actions
- the actions to addpublic boolean contains(Action action)
action
- the actionpublic boolean remove(Action action)
action
- the action to addpublic int size()
public Action get(int index) throws java.lang.IndexOutOfBoundsException
index
- the action indexjava.lang.IndexOutOfBoundsException
public AnnotatedAction getAnnotated(int index) throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsException
public java.util.Iterator iterator()
public Action[] toArray()
public AnnotatedAction[] toAnnotatedArray()
public void execute(RequestContext context)
context
- the action execution request contextpublic java.lang.String toString()
toString
in class java.lang.Object