com.silverpeas.workflow.engine.model
Class ActionsImpl

java.lang.Object
  extended by com.silverpeas.workflow.engine.model.ActionsImpl
All Implemented Interfaces:
Actions, Serializable

public class ActionsImpl
extends Object
implements Serializable, Actions

Class implementing the representation of the <actions> element of a Process Model.

See Also:
Serialized Form

Constructor Summary
ActionsImpl()
          Constructor
 
Method Summary
 void addAction(Action action)
          Add an action to the collection
 Action createAction()
          Create an Action
 Action getAction(String name)
          Get the action definition with given name
 Action[] getActions()
          Get the actions defined for this process model
 Iterator<Action> iterateAction()
          Iterate through the Action objects
 void removeAction(String strActionName)
          Remove an action from the collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionsImpl

public ActionsImpl()
Constructor

Method Detail

addAction

public void addAction(Action action)
Description copied from interface: Actions
Add an action to the collection

Specified by:
addAction in interface Actions
Parameters:
action - to be added

createAction

public Action createAction()
Description copied from interface: Actions
Create an Action

Specified by:
createAction in interface Actions
Returns:
an object implementing Action

getAction

public Action getAction(String name)
                 throws WorkflowException
Description copied from interface: Actions
Get the action definition with given name

Specified by:
getAction in interface Actions
Parameters:
name - action name
Returns:
wanted action definition
Throws:
WorkflowException

getActions

public Action[] getActions()
Description copied from interface: Actions
Get the actions defined for this process model

Specified by:
getActions in interface Actions
Returns:
actions defined for this process model

iterateAction

public Iterator<Action> iterateAction()
Description copied from interface: Actions
Iterate through the Action objects

Specified by:
iterateAction in interface Actions
Returns:
an iterator

removeAction

public void removeAction(String strActionName)
                  throws WorkflowException
Description copied from interface: Actions
Remove an action from the collection

Specified by:
removeAction in interface Actions
Parameters:
strActionName - the name of the action to be removed.
Throws:
WorkflowException - when the action cannot be found


Copyright © 2016 Silverpeas. All Rights Reserved.