public interface ChannelId
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
channelIdUpperToCamel(java.lang.String name)
Converts a Channel-ID in UPPER_UNDERSCORE format (like from an
Enum )
to the preferred UPPER_CAMEL format. |
Doc |
doc()
Gets the Channel Doc for this ChannelId.
|
default java.lang.String |
id()
Gets the name in CamelCase.
|
java.lang.String |
name()
Gets the name in format
CaseFormat.UPPER_UNDERSCORE . |
static java.lang.String channelIdUpperToCamel(java.lang.String name)
Enum
)
to the preferred UPPER_CAMEL format.
Examples: converts "ACTIVE_POWER" to "ActivePower".
Special reserved Channel-IDs starting with "_" have a special handling: "_PROPERTY_ENABLED" is converted to "_PropertyEnabled".
name
- a Channel-ID in UPPER_UNDERSCORE formatjava.lang.String name()
CaseFormat.UPPER_UNDERSCORE
. This is
available by default for an Enum.
Names starting with underscore ("_") are reserved for internal usage.
default java.lang.String id()
Doc doc()