| 
 | Groovy 1.7.0 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgroovy.lang.GroovyObjectSupport
org.codehaus.groovy.tools.shell.util.MessageSource
class MessageSource extends GroovyObjectSupport
Message source backed up by one or more ResourceBundle instances for simple i18n support.
| Constructor Summary | |
| MessageSource(String[] names) | |
| MessageSource(String name) | |
| MessageSource(Class[] types) | |
| MessageSource(Class type) | |
| Method Summary | |
|---|---|
| String | format(String code, Object[] args)Format a message (based on { 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)
 | 
| Methods inherited from class GroovyObjectSupport | |
|---|---|
| getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty | 
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll | 
| Constructor Detail | 
|---|
public MessageSource(String[] names)
public MessageSource(String name)
public MessageSource(Class[] types)
public MessageSource(Class type)
| Method Detail | 
|---|
public String format(String code, Object[] args)
public String getMessage(String code)
public Object getProperty(String name)
Copyright © 2003-2009 The Codehaus. All rights reserved.