public interface MessageService
| Modifier and Type | Method and Description |
|---|---|
String |
getAttributeMessage(String reference,
AttributeModel attributeModel,
String propertyName,
Locale locale)
Retrieves a message that is used to override an attribute model setting
|
String |
getEntityMessage(String reference,
String propertyName,
Locale locale)
Retrieves a message that is used to override an entity model setting
|
<E extends Enum<?>> |
getEnumMessage(Class<E> enumClass,
E value,
Locale locale)
Retrieves a message that is used as the human-readable definition of an enum
|
String |
getMessage(String key,
Locale locale)
Retrieves a simple message - returns a warning if no such message can be found
|
String |
getMessage(String key,
Locale locale,
Object... args)
Retrieves a simple parameterized message - returns a warning if no such message can be found
|
String |
getMessageNoDefault(String key,
Locale locale)
Retrieves a message - does NOT fall back to a default version if the message is not found.
|
String |
getMessageNoDefault(String key,
Locale locale,
Object... args)
Retrieves a message - does NOT fall back to a default version if the message is not found.
|
String getAttributeMessage(String reference, AttributeModel attributeModel, String propertyName, Locale locale)
reference - the entity modelattributeModel - the attribute modelpropertyName - the name of the propertylocale - the localeString getEntityMessage(String reference, String propertyName, Locale locale)
reference - the entity classpropertyName - the name of the property<E extends Enum<?>> String getEnumMessage(Class<E> enumClass, E value, Locale locale)
enumClass - the class of the enumvalue - the enum valueString getMessage(String key, Locale locale)
key - the key of the messageString getMessage(String key, Locale locale, Object... args)
key - the key of the messageargs - the arguments. These are referred to using {0}, {1} etcString getMessageNoDefault(String key, Locale locale)
key - the key of the messagenull if no such message can be
foundCopyright © 2019 Open Circle Solutions. All rights reserved.