Enum Class ChannelKind

java.lang.Object
java.lang.Enum<ChannelKind>
org.openhab.core.thing.type.ChannelKind
All Implemented Interfaces:
Serializable, Comparable<ChannelKind>, Constable

@NonNullByDefault public enum ChannelKind extends Enum<ChannelKind>
Kind of the channel.
Author:
Moritz Kammerer - Initial contribution
  • Enum Constant Details

    • STATE

      public static final ChannelKind STATE
      Channels which have a state.
    • TRIGGER

      public static final ChannelKind TRIGGER
      Channels which can be triggered.
  • Method Details

    • values

      public static ChannelKind[] 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

      public static ChannelKind 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.)
      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 name
      NullPointerException - if the argument is null
    • parse

      public static ChannelKind parse(@Nullable String input)
      Parses the input string into a ChannelKind.
      Parameters:
      input - the input string
      Returns:
      the parsed ChannelKind.
      Throws:
      IllegalArgumentException - if the input couldn't be parsed.