Message source backed up by one or more ResourceBundle instances for simple i18n support.
Constructor and description |
---|
MessageSource
(String[] names) |
MessageSource
(String name) |
MessageSource
(Class[] types) |
MessageSource
(Class type) |
Type Params | Return Type | Name and description |
---|---|---|
|
String |
format(String code, Object[] args) Format a message (based on MessageFormat using the message from the resource bundles using the given code as a pattern and the given objects as arguments. |
|
String |
getMessage(String code) Get a raw message from the resource bundles using the given code. |
|
Object |
getProperty(String name) @see #getMessage(String) |
Methods inherited from class | Name |
---|---|
class GroovyObjectSupport |
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Format a message (based on MessageFormat using the message from the resource bundles using the given code as a pattern and the given objects as arguments.
Get a raw message from the resource bundles using the given code.
Copyright © 2003-2018 The Apache Software Foundation. All rights reserved.