Class MessageSource
java.lang.Object
groovy.lang.GroovyObjectSupport
org.codehaus.groovy.tools.shell.util.MessageSource
- All Implemented Interfaces:
- GroovyObject
Message source backed up by one or more 
ResourceBundle
 instances for simple i18n support.- 
Constructor SummaryConstructorsConstructorDescriptionMessageSource(Class type) MessageSource(Class[] types) MessageSource(String name) MessageSource(String[] names) 
- 
Method SummaryModifier and TypeMethodDescriptionFormat a message (based onMessageFormat) using the message from the resource bundles using the given code as a pattern and the given objects as arguments.getMessage(String code) Get a raw message from the resource bundles using the given code.getProperty(String name) Retrieves a property value.Methods inherited from class groovy.lang.GroovyObjectSupportgetMetaClass, setMetaClassMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObjectinvokeMethod, setProperty
- 
Constructor Details- 
MessageSource
- 
MessageSource
- 
MessageSource
- 
MessageSource
 
- 
- 
Method Details- 
getMessageGet a raw message from the resource bundles using the given code.
- 
formatFormat a message (based onMessageFormat) using the message from the resource bundles using the given code as a pattern and the given objects as arguments.
- 
getPropertyDescription copied from interface:GroovyObjectRetrieves a property value.- Parameters:
- name- the name of the property of interest
- Returns:
- the given property
- See Also:
 
 
-