|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Utility interface for generating localized messages for internal OpenCms operations.
Every OpenCms core packages should provide one class implementing this interface.
This class should be called Messages and be a subclass of
. Moreover, the implementation
should contain a A_CmsMessageBundlepublic static I_CmsMessageBundle get() method, that returns
an instance of the class. Also the implementation should contain public static members
for all available localized keys.
| Method Summary | |
CmsMessageContainer |
container(String key)
Creates a message container for this package with the given arguments. |
CmsMessageContainer |
container(String key,
Object arg0)
Creates a message container for this package with the given arguments. |
CmsMessageContainer |
container(String key,
Object[] args)
Creates a message container for this package with the given arguments. |
CmsMessageContainer |
container(String key,
Object arg0,
Object arg1)
Creates a message container for this package with the given arguments. |
CmsMessageContainer |
container(String key,
Object arg0,
Object arg1,
Object arg2)
Creates a message container for this package with the given arguments. |
CmsMessages |
getBundle()
Returns the localized message bundle wrapped in this instance initialized with the OpenCms default locale. |
CmsMessages |
getBundle(Locale locale)
Returns the localized message bundle wrapped in this instance initialized with the provided locale. |
String |
getBundleName()
Returns the bundle name for this OpenCms package. |
String |
key(Locale locale,
String key,
Object[] args)
Returns the selected localized message from this bundle for the given locale. |
String |
key(String key)
Returns the selected localized message from this bundle for the OpenCms default locale. |
String |
key(String key,
Object arg0)
Returns the selected localized message from this bundle for the OpenCms default locale. |
String |
key(String key,
Object[] args)
Returns the selected localized message from this bundle for the OpenCms default locale. |
String |
key(String key,
Object arg0,
Object arg1)
Returns the selected localized message from this bundle for the OpenCms default locale. |
String |
key(String key,
Object arg0,
Object arg1,
Object arg2)
Returns the selected localized message from this bundle for the OpenCms default locale. |
| Method Detail |
public CmsMessageContainer container(String key)
Convenience method for a message with no arguments.
key - the message key to use
public CmsMessageContainer container(String key,
Object arg0)
Convenience method for a message with one argument.
key - the message key to usearg0 - the message argument
public CmsMessageContainer container(String key,
Object arg0,
Object arg1)
Convenience method for a message with two arguments.
key - the message key to usearg0 - the first message argumentarg1 - the second message argument
public CmsMessageContainer container(String key,
Object arg0,
Object arg1,
Object arg2)
Convenience method for a message with three arguments.
key - the message key to usearg0 - the first message argumentarg1 - the second message argumentarg2 - the third message argument
public CmsMessageContainer container(String key,
Object[] args)
key - the message key to useargs - the message arguments to use
public CmsMessages getBundle()
public CmsMessages getBundle(Locale locale)
locale - the locale to use
public String getBundleName()
public String key(Locale locale,
String key,
Object[] args)
locale - the locale to usekey - the message keyargs - the message arguments
public String key(String key)
Convenience method for messages without arguments.
key - the message key
public String key(String key,
Object arg0)
Convenience method for messages with one argument.
key - the message keyarg0 - the message argument
public String key(String key,
Object arg0,
Object arg1)
Convenience method for messages with two arguments.
key - the message keyarg0 - the first message argumentarg1 - the second message argument
public String key(String key,
Object arg0,
Object arg1,
Object arg2)
Convenience method for messages with three arguments.
key - the message keyarg0 - the first message argumentarg1 - the second message argumentarg2 - the third message argument
public String key(String key,
Object[] args)
key - the message keyargs - the message arguments
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||