Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.lifecycle.impl
Class LifeCycleStateImpl

java.lang.Object
  extended by org.nuxeo.ecm.core.lifecycle.impl.LifeCycleStateImpl
All Implemented Interfaces:
LifeCycleState

public class LifeCycleStateImpl
extends Object
implements LifeCycleState

Life cycle state implementation.

Author:
Julien Anguenot
See Also:
LifeCycleState

Constructor Summary
LifeCycleStateImpl(String name, String description, Collection<String> allowedStateTransitions, boolean initial)
           
 
Method Summary
 Collection<String> getAllowedStateTransitions()
          Returns the allowed state transitions.
 String getDescription()
          Returns the life cycle state descriptions.
 String getName()
          Returns the life cycle state name.
 boolean isInitial()
          Returns true if state is a valid initial state
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifeCycleStateImpl

public LifeCycleStateImpl(String name,
                          String description,
                          Collection<String> allowedStateTransitions,
                          boolean initial)
Method Detail

getAllowedStateTransitions

public Collection<String> getAllowedStateTransitions()
Description copied from interface: LifeCycleState
Returns the allowed state transitions.

Specified by:
getAllowedStateTransitions in interface LifeCycleState
Returns:
a collection of string representing the allowed state transitions

getDescription

public String getDescription()
Description copied from interface: LifeCycleState
Returns the life cycle state descriptions.

Specified by:
getDescription in interface LifeCycleState
Returns:
the life cycle state description

getName

public String getName()
Description copied from interface: LifeCycleState
Returns the life cycle state name.

Specified by:
getName in interface LifeCycleState
Returns:
the life cycle state name as a string

isInitial

public boolean isInitial()
Description copied from interface: LifeCycleState
Returns true if state is a valid initial state

Specified by:
isInitial in interface LifeCycleState

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.