Package org.openhab.core.config.core
Class ConfigDescription
java.lang.Object
org.openhab.core.config.core.ConfigDescription
- All Implemented Interfaces:
Identifiable<URI>
The
ConfigDescription
class contains a description for a concrete
configuration of e.g. a Thing
, a Bridge
or other specific
configurable services. This class does not contain the configuration
data itself and is usually used for data validation of the concrete
configuration or for supporting user interfaces.
The ConfigDescriptionParameterGroup
provides a method to group parameters to allow the UI to better display
the parameter information. This can be left blank for small devices where there are only a few parameters, however
devices with larger numbers of parameters can set the group member in the ConfigDescriptionParameter
and then
provide group information as part of the ConfigDescription
class.
The description is stored within the ConfigDescriptionRegistry
under the given URI. The URI has to follow the
syntax '<scheme>:<token>[:<token>]'
(e.g. "binding:hue:bridge"
).
Hint: This class is immutable.
- Author:
- Michael Grammling - Initial contribution, Dennis Nobel - Initial contribution, Chris Jackson - Added parameter groups, Thomas Höfer - Added convenient operation to get config description parameters in a map
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of configuration parameter groups associated with the parameters.Returns the correspondingConfigDescriptionParameter
s.getUID()
Returns the URI of this description within theConfigDescriptionRegistry
.Returns a map representation of theConfigDescriptionParameter
s.toString()
-
Method Details
-
getUID
Returns the URI of this description within theConfigDescriptionRegistry
. The URI follows the syntax'<scheme>:<token>[:<token>]'
(e.g."binding:hue:bridge"
).- Specified by:
getUID
in interfaceIdentifiable<URI>
- Returns:
- the URI of this description
-
getParameters
Returns the correspondingConfigDescriptionParameter
s.The returned list is immutable.
- Returns:
- the corresponding configuration description parameters (could be empty)
-
toParametersMap
Returns a map representation of theConfigDescriptionParameter
s. The map will use the name of the parameter as key and the parameter as value.- Returns:
- the unmodifiable map of configuration description parameters which uses the name as key and the parameter as value (could be empty)
-
getParameterGroups
Returns the list of configuration parameter groups associated with the parameters.The returned list is immutable.
- Returns:
- the list of parameter groups parameter (could be empty)
-
toString
-