public interface IMessageFormatter extends IComponent
Modifier and Type | Method and Description |
---|---|
String |
format(boolean isSystemMessage,
ResourceBundle resourceBundle,
String messageKey,
boolean notFoundPolicy)
Provides formatting services based upon the resourceBundle and messageKey
NB: sourceObject and isSystem are for errorHandling conditions like no resourceBundle is present
They aren't used to format the message
|
String |
format(boolean isSystemMessage,
ResourceBundle resourceBundle,
String messageKey,
Object[] args,
Locale locale,
boolean notFoundPolicy)
Provides formatting services based upon the resourceBundle and messageKey and arguments
NB: sourceObject and isSystem are for errorHandling conditions like no resourceBundle is present
They aren't used to format the message
|
String |
formatDate(boolean isSystemMessage,
ResourceBundle resourceBundle,
String messageKey,
Date date,
boolean notFoundPolicy)
Formats date using pattern from resource bundle.
|
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
String format(boolean isSystemMessage, ResourceBundle resourceBundle, String messageKey, boolean notFoundPolicy)
IMessageInfo.getNotFoundPolicy()
String format(boolean isSystemMessage, ResourceBundle resourceBundle, String messageKey, Object[] args, Locale locale, boolean notFoundPolicy)
IMessageInfo.getNotFoundPolicy()
String formatDate(boolean isSystemMessage, ResourceBundle resourceBundle, String messageKey, Date date, boolean notFoundPolicy)
IMessageInfo.getNotFoundPolicy()