Enum Class FirmwareStatus

All Implemented Interfaces:
Serializable, Comparable<FirmwareStatus>, Constable

@NonNullByDefault public enum FirmwareStatus extends Enum<FirmwareStatus>
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.
Thomas Höfer - Initial contribution
  • Enum Constant Details


      public static final FirmwareStatus UNKNOWN
      The firmware status can not be determined and hence it is unknown. Either the Thing.PROPERTY_FIRMWARE_VERSION is not set for the thing or there is no FirmwareProvider that provides a firmware for the ThingTypeUID of the thing.
    • UP_TO_DATE

      public static final FirmwareStatus UP_TO_DATE
      The firmware of the thing is up to date.

      public static final FirmwareStatus 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 operation FirmwareUpdateHandler.isUpdateExecutable() returned false.

      public static final FirmwareStatus UPDATE_EXECUTABLE
      There is a newer firmware of the thing available and the firmware update for the thing can be executed.
  • Method Details

    • values

      public static FirmwareStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FirmwareStatus valueOf(String name)
      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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null