Class ConfigStatusMessage
java.lang.Object
org.openhab.core.config.core.status.ConfigStatusMessage
The
ConfigStatusMessage
is a domain object for a configuration status message. It contains the name
of the configuration parameter, the ConfigStatusMessage.Type
information, the internationalized message and
an optional status code.
The framework will take care of setting the corresponding internationalized message. For this purpose there must be
an i18n properties file inside the bundle of the ConfigStatusProvider
that has a message declared for the
messageKey
. The actual message key is built by
ConfigStatusMessage.Builder.withMessageKeySuffix(String)
in the manner that the given message key suffix is
appended to config-status.config-status-message-type.
. As a result depending on the type of the message
the final constructed message keys are:
- config-status.information.any-suffix
- config-status.warning.any-suffix
- config-status.error.any-suffix
- config-status.pending.any-suffix
- Author:
- Thomas Höfer - Initial contribution, Chris Jackson - Add withMessageKey and remove message from other methods
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The builder for aConfigStatusMessage
object.static enum
TheConfigStatusMessage.Type
defines an enumeration of all supported types for a configuration status message. -
Field Summary
Modifier and TypeFieldDescriptionfinal @Nullable String
The corresponding internationalized status message.final String
The name of the configuration parameter.final @Nullable Integer
The optional status code of the configuration status message; to be used if there are additional information to be provided.final ConfigStatusMessage.Type
TheConfigStatusMessage.Type
of the configuration status message. -
Method Summary
-
Field Details
-
parameterName
The name of the configuration parameter. -
type
TheConfigStatusMessage.Type
of the configuration status message. -
message
The corresponding internationalized status message. -
statusCode
The optional status code of the configuration status message; to be used if there are additional information to be provided.
-
-
Method Details