Package ej.kf
Enum Feature.State
- java.lang.Object
-
- java.lang.Enum<Feature.State>
-
- ej.kf.Feature.State
-
- All Implemented Interfaces:
Serializable,Comparable<Feature.State>
- Enclosing class:
- Feature
public static enum Feature.State extends Enum<Feature.State>
A Feature state.- See Also:
Feature.getState()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTALLEDA Feature in theINSTALLEDstate has been successfully linked to the Kernel and is not running.STARTEDA Feature in theSTARTEDstate has been started and is running.STOPPEDA Feature in theSTOPPEDstate has been stopped and all its threads are terminated.UNINSTALLEDA Feature in theUNINSTALLEDstate has been unlinked from the Kernel.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Feature.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static Feature.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTALLED
public static final Feature.State INSTALLED
A Feature in theINSTALLEDstate has been successfully linked to the Kernel and is not running. There are no references from the Kernel to objects owned by this Feature.
-
STARTED
public static final Feature.State STARTED
A Feature in theSTARTEDstate has been started and is running.
-
STOPPED
public static final Feature.State STOPPED
A Feature in theSTOPPEDstate has been stopped and all its threads are terminated. There are remaining references from the Kernel to objects owned by this Feature.
-
UNINSTALLED
public static final Feature.State UNINSTALLED
A Feature in theUNINSTALLEDstate has been unlinked from the Kernel. All Feature methods exceptFeature.getState()throw anIllegalStateException
-
-
Method Detail
-
values
public static Feature.State[] 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 (Feature.State c : Feature.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Feature.State 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
-
-