Enum LifeCycleStatus
- java.lang.Object
-
- java.lang.Enum<LifeCycleStatus>
-
- org.gatein.pc.portlet.container.managed.LifeCycleStatus
-
- All Implemented Interfaces:
Serializable,Comparable<LifeCycleStatus>
public enum LifeCycleStatus extends Enum<LifeCycleStatus>
- Version:
- $Revision: 630 $
- Author:
- Julien Viet
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATEDINITIALIZEDSTARTED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LifeCycleStatusgetDemotion()LifeCycleStatusgetPromotion()intgetStage()static LifeCycleStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static LifeCycleStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIALIZED
public static final LifeCycleStatus INITIALIZED
-
CREATED
public static final LifeCycleStatus CREATED
-
STARTED
public static final LifeCycleStatus STARTED
-
-
Method Detail
-
values
public static LifeCycleStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LifeCycleStatus c : LifeCycleStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LifeCycleStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getStage
public int getStage()
-
getPromotion
public LifeCycleStatus getPromotion()
-
getDemotion
public LifeCycleStatus getDemotion()
-
-