Nuxeo Enterprise Platform 5.4

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 java.lang.Object
implements LifeCycleState

Life cycle state implementation.

Author:
Julien Anguenot
See Also:
LifeCycleState

Constructor Summary
LifeCycleStateImpl(java.lang.String name, java.lang.String description, java.util.Collection<java.lang.String> allowedStateTransitions, boolean initial)
           
 
Method Summary
 java.util.Collection<java.lang.String> getAllowedStateTransitions()
          Returns the allowed state transitions.
 java.lang.String getDescription()
          Returns the life cycle state descriptions.
 java.lang.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(java.lang.String name,
                          java.lang.String description,
                          java.util.Collection<java.lang.String> allowedStateTransitions,
                          boolean initial)
Method Detail

getAllowedStateTransitions

public java.util.Collection<java.lang.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 java.lang.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 java.lang.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 Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.