public class LifeCycleImpl extends Object implements LifeCycle
LifeCycle
Constructor and Description |
---|
LifeCycleImpl(String name,
String defaultInitialStateName,
Collection<String> initialStateNames,
Collection<LifeCycleState> states,
Collection<LifeCycleTransition> transitions) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getAllowedStateTransitionsFrom(String stateName)
Gets the allowed state transitions from a given state.
|
String |
getDefaultInitialStateName()
Returns the default initial state name.
|
Collection<String> |
getInitialStateNames()
Returns the list of allowed initial state names.
|
String |
getName()
Gets the life cycle name.
|
LifeCycleState |
getStateByName(String stateName)
Returns a life cycle state instance given its name.
|
Collection<LifeCycleState> |
getStates()
Returns the list of life cycle state instances.
|
LifeCycleTransition |
getTransitionByName(String transitionName)
Returns a life cycle transition instance given its name.
|
Collection<LifeCycleTransition> |
getTransitions()
Returns a list of life cycle transition instances.
|
public LifeCycleImpl(String name, String defaultInitialStateName, Collection<String> initialStateNames, Collection<LifeCycleState> states, Collection<LifeCycleTransition> transitions)
public String getDefaultInitialStateName()
LifeCycle
getDefaultInitialStateName
in interface LifeCycle
public Collection<String> getInitialStateNames()
LifeCycle
getInitialStateNames
in interface LifeCycle
public String getName()
LifeCycle
public Collection<LifeCycleState> getStates()
LifeCycle
public LifeCycleState getStateByName(String stateName)
LifeCycle
getStateByName
in interface LifeCycle
stateName
- the state namepublic Collection<String> getAllowedStateTransitionsFrom(String stateName)
LifeCycle
getAllowedStateTransitionsFrom
in interface LifeCycle
stateName
- the current state namepublic Collection<LifeCycleTransition> getTransitions()
LifeCycle
getTransitions
in interface LifeCycle
public LifeCycleTransition getTransitionByName(String transitionName)
LifeCycle
getTransitionByName
in interface LifeCycle
transitionName
- the transition nameCopyright © 2018 Nuxeo. All rights reserved.