public class CmsJsonMessageContainer extends java.lang.Object implements I_CmsMessageContainer
This message container will accept an Object which may either be a simple string (in which case this string will always be returned as the message), or a JSONObject which has locale strings as keys and the corresponding message strings as values.
| Constructor and Description |
|---|
CmsJsonMessageContainer(java.lang.Object jsonValue)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
key(java.util.Locale locale)
Gets the real message for the given locale.
|
public CmsJsonMessageContainer(java.lang.Object jsonValue)
jsonValue - the JSON value containing the message(s).public java.lang.String key(java.util.Locale locale)
I_CmsMessageContainerkey in interface I_CmsMessageContainerlocale - the localeI_CmsMessageContainer.key(java.util.Locale)