Package org.jvnet.jaxb2_commons.i18n
Interface Reportable
-
- All Known Subinterfaces:
ItemObjectLocator,ObjectLocator,PropertyObjectLocator,RootObjectLocator
- All Known Implementing Classes:
AbstractObjectLocator,DefaultItemObjectLocator,DefaultPropertyObjectLocator,DefaultRootObjectLocator
public interface ReportableReportable object.- Author:
- Aleksei Valikov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetMessage()Returns the message.StringgetMessage(ResourceBundle bundle)Formats the message using given resource bundle.StringgetMessageCode()Returns message code.Object[]getMessageParameters()Returns parameters used to format the message.
-
-
-
Method Detail
-
getMessageCode
String getMessageCode()
Returns message code. This code will be used to locate message resource.- Returns:
- String code that uniquely identifies this problem. May be used to reference messages.
-
getMessageParameters
Object[] getMessageParameters()
Returns parameters used to format the message.- Returns:
- Array of parameters used to format problem message.
-
getMessage
String getMessage(ResourceBundle bundle)
Formats the message using given resource bundle.- Parameters:
bundle- bundle to use resources from.- Returns:
- Formatted message.
-
getMessage
String getMessage()
Returns the message.- Returns:
- The message.
-
-