|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
griffon.plugins.i18n.MessageSourcegriffon.plugins.i18n.ExtendedMessageSource
public interface ExtendedMessageSource extends MessageSource
Interface for resolving messages, with support for the parameterization and internationalization of such messages. This interface extends MessageSource with support of named arguments.
| Method Summary | |
|---|---|
String
|
getMessage(String key, Map args)
Try to resolve the message. |
String
|
getMessage(String key, Map args, Locale locale)
Try to resolve the message. |
String
|
getMessage(String key, Map args, String defaultMessage)
Try to resolve the message. |
String
|
getMessage(String key, Map args, String defaultMessage, Locale locale)
Try to resolve the message. |
| Methods inherited from interface MessageSource | |
|---|---|
| getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage |
| Method Detail |
|---|
public String getMessage(String key, Map args)
key - Key to lookup, such as 'log4j.appenders.console'args - Arguments that will be filled in for params within the message (params look like "{key}" within a message, but this might differ between implementations), or null if none.
public String getMessage(String key, Map args, Locale locale)
key - Key to lookup, such as 'log4j.appenders.console'args - Arguments that will be filled in for params within the message (params look like "{key}" within a message, but this might differ between implementations), or null if none.locale - Locale in which to lookup
public String getMessage(String key, Map args, String defaultMessage)
key - Key to lookup, such as 'log4j.appenders.console'args - Arguments that will be filled in for params within the message (params look like "{key}" within a message, but this might differ between implementations), or null if none.defaultMessage - Message to return if the lookup fails
public String getMessage(String key, Map args, String defaultMessage, Locale locale)
key - Key to lookup, such as 'log4j.appenders.console'args - Arguments that will be filled in for params within the message (params look like "{key}" within a message, but this might differ between implementations), or null if none.defaultMessage - Message to return if the lookup failslocale - Locale in which to lookup
Groovy Documentation