Class StatesImpl
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.model.StatesImpl
-
- All Implemented Interfaces:
Serializable
,States
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
Constructors Constructor Description StatesImpl()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addState(State state)
Add an state to the collectionState
createState()
Create an StateState
getState(String name)
Get the state definition with given nameState[]
getStates()
Get the states defined for this process modelIterator<State>
iterateState()
Iterate through the State objectsvoid
removeState(String strStateName)
Remove an state from the collection
-
-
-
Method Detail
-
addState
public void addState(State state)
Description copied from interface:States
Add an state to the collection
-
createState
public State createState()
Description copied from interface:States
Create an State- Specified by:
createState
in interfaceStates
- Returns:
- an object implementing State
-
getState
public State getState(String name)
Description copied from interface:States
Get the state definition with given name
-
getStates
public State[] getStates()
Description copied from interface:States
Get the 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 interfaceStates
- 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 interfaceStates
- Parameters:
strStateName
- the name of the state to be removed.- Throws:
WorkflowException
- when the state cannot be found
-
-