Package org.openhab.core.thing.firmware
Enum Class FirmwareStatus
- All Implemented Interfaces:
Serializable
,Comparable<FirmwareStatus>
,Constable
The
FirmwareStatus
enumeration defines all possible statuses for the Firmware
of a Thing
. The property Thing.PROPERTY_FIRMWARE_VERSION
must be set for a thing in order that its firmware status can
be determined.- Author:
- Thomas Höfer - Initial contribution
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe firmware status can not be determined and hence it is unknown.The firmware of the thing is up to date.There is a newer firmware of the thing available.There is a newer firmware of the thing available and the firmware update for the thing can be executed. -
Method Summary
Modifier and TypeMethodDescriptionstatic FirmwareStatus
Returns the enum constant of this class with the specified name.static FirmwareStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
The firmware status can not be determined and hence it is unknown. Either theThing.PROPERTY_FIRMWARE_VERSION
is not set for the thing or there is noFirmwareProvider
that provides a firmware for theThingTypeUID
of the thing. -
UP_TO_DATE
The firmware of the thing is up to date. -
UPDATE_AVAILABLE
There is a newer firmware of the thing available. However the thing is not in a state where its firmware can be updated, i.e. the operationFirmwareUpdateHandler.isUpdateExecutable()
returned false. -
UPDATE_EXECUTABLE
There is a newer firmware of the thing available and the firmware update for the thing can be executed.
-
-
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
-