|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.i18n.A_CmsMessageBundle
public abstract class A_CmsMessageBundle
Convenience base class to access the localized messages of an OpenCms package.
| Constructor Summary | |
|---|---|
A_CmsMessageBundle()
|
|
| 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 message,
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. |
static I_CmsMessageBundle[] |
getOpenCmsMessageBundles()
Returns an array of all messages bundles used by the OpenCms core. |
String |
key(Locale locale,
String key)
Returns the selected localized message from this bundle for the OpenCms default locale. |
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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.opencms.i18n.I_CmsMessageBundle |
|---|
getBundleName |
| Constructor Detail |
|---|
public A_CmsMessageBundle()
| Method Detail |
|---|
public static I_CmsMessageBundle[] getOpenCmsMessageBundles()
public CmsMessageContainer container(String key)
I_CmsMessageBundleConvenience method for a message with no arguments.
container in interface I_CmsMessageBundlekey - the message key to use
I_CmsMessageBundle.container(java.lang.String)
public CmsMessageContainer container(String key,
Object arg0)
I_CmsMessageBundleConvenience method for a message with one argument.
container in interface I_CmsMessageBundlekey - the message key to usearg0 - the message argument
I_CmsMessageBundle.container(java.lang.String, java.lang.Object)
public CmsMessageContainer container(String key,
Object arg0,
Object arg1)
I_CmsMessageBundleConvenience method for a message with two arguments.
container in interface I_CmsMessageBundlekey - the message key to usearg0 - the first message argumentarg1 - the second message argument
I_CmsMessageBundle.container(java.lang.String, java.lang.Object, java.lang.Object)
public CmsMessageContainer container(String key,
Object arg0,
Object arg1,
Object arg2)
I_CmsMessageBundleConvenience method for a message with three arguments.
container in interface I_CmsMessageBundlekey - the message key to usearg0 - the first message argumentarg1 - the second message argumentarg2 - the third message argument
I_CmsMessageBundle.container(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object)
public CmsMessageContainer container(String message,
Object[] args)
I_CmsMessageBundle
container in interface I_CmsMessageBundlemessage - the message key to useargs - the message arguments to use
I_CmsMessageBundle.container(java.lang.String, java.lang.Object[])public CmsMessages getBundle()
I_CmsMessageBundle
getBundle in interface I_CmsMessageBundleI_CmsMessageBundle.getBundle()public CmsMessages getBundle(Locale locale)
I_CmsMessageBundle
getBundle in interface I_CmsMessageBundlelocale - the locale to use
I_CmsMessageBundle.getBundle(java.util.Locale)
public String key(Locale locale,
String key)
I_CmsMessageBundleConvenience method for messages without argument.
key in interface I_CmsMessageBundlelocale - the locale to usekey - the message key
I_CmsMessageBundle.key(java.util.Locale, java.lang.String)
public String key(Locale locale,
String key,
Object[] args)
I_CmsMessageBundle
key in interface I_CmsMessageBundlelocale - the locale to usekey - the message keyargs - the message arguments
I_CmsMessageBundle.key(java.util.Locale, java.lang.String, java.lang.Object[])public String key(String key)
I_CmsMessageBundleConvenience method for messages without arguments.
key in interface I_CmsMessageBundlekey - the message key
I_CmsMessageBundle.key(java.lang.String)
public String key(String key,
Object arg0)
I_CmsMessageBundleConvenience method for messages with one argument.
key in interface I_CmsMessageBundlekey - the message keyarg0 - the message argument
I_CmsMessageBundle.key(java.lang.String, java.lang.Object)
public String key(String key,
Object arg0,
Object arg1)
I_CmsMessageBundleConvenience method for messages with two arguments.
key in interface I_CmsMessageBundlekey - the message keyarg0 - the first message argumentarg1 - the second message argument
I_CmsMessageBundle.key(java.lang.String, java.lang.Object, java.lang.Object)
public String key(String key,
Object arg0,
Object arg1,
Object arg2)
I_CmsMessageBundleConvenience method for messages with three arguments.
key in interface I_CmsMessageBundlekey - the message keyarg0 - the first message argumentarg1 - the second message argumentarg2 - the third message argument
I_CmsMessageBundle.key(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object)
public String key(String key,
Object[] args)
I_CmsMessageBundle
key in interface I_CmsMessageBundlekey - the message keyargs - the message arguments
I_CmsMessageBundle.key(java.lang.String, java.lang.Object[])public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||