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.
构造器和说明 |
---|
CmsJsonMessageContainer(java.lang.Object jsonValue)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
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_CmsMessageContainer
key
在接口中 I_CmsMessageContainer
locale
- the localeI_CmsMessageContainer.key(java.util.Locale)