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()
LifeCyclegetDefaultInitialStateName in interface LifeCyclepublic Collection<String> getInitialStateNames()
LifeCyclegetInitialStateNames in interface LifeCyclepublic String getName()
LifeCyclepublic Collection<LifeCycleState> getStates()
LifeCyclepublic LifeCycleState getStateByName(String stateName)
LifeCyclegetStateByName in interface LifeCyclestateName - the state namepublic Collection<String> getAllowedStateTransitionsFrom(String stateName)
LifeCyclegetAllowedStateTransitionsFrom in interface LifeCyclestateName - the current state namepublic Collection<LifeCycleTransition> getTransitions()
LifeCyclegetTransitions in interface LifeCyclepublic LifeCycleTransition getTransitionByName(String transitionName)
LifeCyclegetTransitionByName in interface LifeCycletransitionName - the transition nameCopyright © 2019 Nuxeo. All rights reserved.