|
Griffon 1.2.0 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
public interface MessageSource
Interface for resolving messages, with support for the parameterization and internationalization of such messages.
| Method Summary | |
|---|---|
String
|
getMessage(String key)
Try to resolve the message. |
String
|
getMessage(String key, Locale locale)
Try to resolve the message. |
String
|
getMessage(String key, Object[] args)
Try to resolve the message. |
String
|
getMessage(String key, Object[] args, Locale locale)
Try to resolve the message. |
String
|
getMessage(String key, List args)
Try to resolve the message. |
String
|
getMessage(String key, List args, Locale locale)
Try to resolve the message. |
String
|
getMessage(String key, String defaultMessage)
Try to resolve the message. |
String
|
getMessage(String key, String defaultMessage, Locale locale)
Try to resolve the message. |
String
|
getMessage(String key, Object[] args, String defaultMessage)
Try to resolve the message. |
String
|
getMessage(String key, Object[] args, String defaultMessage, Locale locale)
Try to resolve the message. |
String
|
getMessage(String key, List args, String defaultMessage)
Try to resolve the message. |
String
|
getMessage(String key, List args, String defaultMessage, Locale locale)
Try to resolve the message. |
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. |
| Method Detail |
|---|
public String getMessage(String key)
key - Key to lookup, such as 'log4j.appenders.console'
public String getMessage(String key, Locale locale)
key - Key to lookup, such as 'log4j.appenders.console'locale - Locale in which to lookup
public String getMessage(String key, Object[] 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 "{0}" within a
message, but this might differ between implementations), or null if none.
public String getMessage(String key, Object[] 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 "{0}" within a
message, but this might differ between implementations), or null if none.locale - Locale in which to lookup
public String getMessage(String key, List 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 "{0}" within a
message, but this might differ between implementations), or null if none.
public String getMessage(String key, List 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 "{0}" within a
message, but this might differ between implementations), or null if none.locale - Locale in which to lookup
public String getMessage(String key, String defaultMessage)
key - Key to lookup, such as 'log4j.appenders.console'defaultMessage - Message to return if the lookup fails
public String getMessage(String key, String defaultMessage, Locale locale)
key - Key to lookup, such as 'log4j.appenders.console'defaultMessage - Message to return if the lookup failslocale - Locale in which to lookup
public String getMessage(String key, Object[] 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 "{0}"
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, Object[] 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 "{0}"
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
public String getMessage(String key, List 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 "{0}"
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, List 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 "{0}"
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
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