Package org.openhab.core.util
Enum Class LightModel.LightCapabilities
- All Implemented Interfaces:
Serializable,Comparable<LightModel.LightCapabilities>,Constable
- Enclosing class:
LightModel
Enum for the capabilities of different types of lights
Different brands of light support different capabilities. Some only support on-off, some support brightness, some support color temperature, and some support full color. This enum defines the different combinations of capabilities that a light may support.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionon-off with brightnesson-off with brightness and color temperatureon-off with brightness and coloron-off with brightness, color and color temperatureon-off only -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanstatic LightModel.LightCapabilitiesReturns the enum constant of this class with the specified name.static LightModel.LightCapabilities[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ON_OFF
on-off only -
BRIGHTNESS
on-off with brightness -
BRIGHTNESS_WITH_COLOR_TEMPERATURE
on-off with brightness and color temperature -
COLOR
on-off with brightness and color -
COLOR_WITH_COLOR_TEMPERATURE
on-off with brightness, color and color temperature
-
-
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
-
supportsBrightness
public boolean supportsBrightness() -
supportsColor
public boolean supportsColor() -
supportsColorTemperature
public boolean supportsColorTemperature()
-