Package com.iizix.device
Enum Class DeviceParameter.State
- All Implemented Interfaces:
Serializable
,Comparable<DeviceParameter.State>
,Constable
- Enclosing class:
- DeviceParameter
The states for this DeviceParameter instance.
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionDecryption failed for the parameter, see the server log for more information.Encryption failed for the parameter, see the server log for more information.Not present on client: request for parameter failed as it was not present on the client.Server is requesting the parameter from the client.Server is setting or removing the parameter from the client.Success: client has replied with the parameter and its value, or the value has been removed if theDeviceParameter.getValue()
returnsnull
.Unavailable: not possible to retrieve any device parameters.Method Summary
Modifier and TypeMethodDescriptionstatic DeviceParameter.State
Returns the enum constant of this class with the specified name.static DeviceParameter.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
REQUEST
Server is requesting the parameter from the client.SET
Server is setting or removing the parameter from the client. If the value is null, the parameter is removed, otherwise it is set.SUCCESS
Success: client has replied with the parameter and its value, or the value has been removed if theDeviceParameter.getValue()
returnsnull
.NOT_FOUND
Not present on client: request for parameter failed as it was not present on the client.ENCRYPT_ERROR
Encryption failed for the parameter, see the server log for more information.DECRYPT_ERROR
Decryption failed for the parameter, see the server log for more information. This could be due to tampering with the data on the client side, or that the server key could not be found.UNAVAILABLE
Unavailable: not possible to retrieve any device parameters.
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null