public class ActionList extends 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.
|
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.
|
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 IndexOutOfBoundsException
index
- the action indexIndexOutOfBoundsException
public AnnotatedAction getAnnotated(int index) throws IndexOutOfBoundsException
IndexOutOfBoundsException
public Iterator iterator()
public Action[] toArray()
public AnnotatedAction[] toAnnotatedArray()
public void execute(RequestContext context)
context
- the action execution request context