com.silverpeas.workflow.engine.model
Class StatesImpl

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

public class StatesImpl
extends Object
implements Serializable, States

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

See Also:
Serialized Form

Constructor Summary
StatesImpl()
          Constructor
 
Method Summary
 void addState(State state)
          Add an state to the collection
 State createState()
          Create an State
 State getState(String name)
          Get the state definition with given name
 State[] getStates()
          Get the states defined for this process model
 Iterator<State> iterateState()
          Iterate through the State objects
 void removeState(String strStateName)
          Remove an state from the collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatesImpl

public StatesImpl()
Constructor

Method Detail

addState

public void addState(State state)
Description copied from interface: States
Add an state to the collection

Specified by:
addState in interface States
Parameters:
state - to be added

createState

public State createState()
Description copied from interface: States
Create an State

Specified by:
createState in interface States
Returns:
an object implementing State

getState

public State getState(String name)
Description copied from interface: States
Get the state definition with given name

Specified by:
getState in interface States
Parameters:
name - state name
Returns:
wanted state definition

getStates

public State[] getStates()
Description copied from interface: States
Get the states defined for this process model

Specified by:
getStates in interface States
Returns:
states defined for this process model

iterateState

public Iterator<State> iterateState()
Description copied from interface: States
Iterate through the State objects

Specified by:
iterateState in interface States
Returns:
an iterator

removeState

public void removeState(String strStateName)
                 throws WorkflowException
Description copied from interface: States
Remove an state from the collection

Specified by:
removeState in interface States
Parameters:
strStateName - the name of the state to be removed.
Throws:
WorkflowException - when the state cannot be found


Copyright © 2016 Silverpeas. All Rights Reserved.