Package org.jboss.as.pojo
Enum BeanState
- java.lang.Object
-
- java.lang.Enum<BeanState>
-
- org.jboss.as.pojo.BeanState
-
- All Implemented Interfaces:
Serializable,Comparable<BeanState>
public enum BeanState extends Enum<BeanState>
A MC bean state.- Author:
- David M. Lloyd, Ales Justin
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIGUREDCREATEDESCRIBEDINSTALLEDINSTANTIATEDNOT_INSTALLEDSTART
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAfter(BeanState state)Is this instance after state @param.booleanisBefore(BeanState state)Is this instance before state @param.BeanStatenext()Get the next state.static BeanStatevalueOf(String name)Returns the enum constant of this type with the specified name.static BeanState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_INSTALLED
public static final BeanState NOT_INSTALLED
-
DESCRIBED
public static final BeanState DESCRIBED
-
INSTANTIATED
public static final BeanState INSTANTIATED
-
CONFIGURED
public static final BeanState CONFIGURED
-
CREATE
public static final BeanState CREATE
-
START
public static final BeanState START
-
INSTALLED
public static final BeanState INSTALLED
-
-
Method Detail
-
values
public static BeanState[] 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 (BeanState c : BeanState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BeanState 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
-
next
public BeanState next()
Get the next state.- Returns:
- the next state
-
isBefore
public boolean isBefore(BeanState state)
Is this instance before state @param.- Parameters:
state- the state to check- Returns:
- true if before, false otherwise
-
isAfter
public boolean isAfter(BeanState state)
Is this instance after state @param.- Parameters:
state- the state to check- Returns:
- true if after, false otherwise
-
-