org.openmuc.framework.dataaccess
Enum DeviceState
java.lang.Object
java.lang.Enum<DeviceState>
org.openmuc.framework.dataaccess.DeviceState
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<DeviceState>
public enum DeviceState
- extends java.lang.Enum<DeviceState>
Method Summary |
static DeviceState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DeviceState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
READING
public static final DeviceState READING
WRITING
public static final DeviceState WRITING
STARTING_TO_LISTEN
public static final DeviceState STARTING_TO_LISTEN
SCANNING_FOR_CHANNELS
public static final DeviceState SCANNING_FOR_CHANNELS
CONNECTED
public static final DeviceState CONNECTED
CONNECTING
public static final DeviceState CONNECTING
WAITING_FOR_CONNECTION_RETRY
public static final DeviceState WAITING_FOR_CONNECTION_RETRY
DISCONNECTING
public static final DeviceState DISCONNECTING
DRIVER_UNAVAILABLE
public static final DeviceState DRIVER_UNAVAILABLE
DISABLED
public static final DeviceState DISABLED
DELETED
public static final DeviceState DELETED
values
public static DeviceState[] 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 (DeviceState c : DeviceState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DeviceState valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null