Package org.jvnet.basicjaxb.i18n
Interface Reportable
- All Known Subinterfaces:
ItemObjectLocator,ObjectLocator,PropertyObjectLocator,RootObjectLocator
- All Known Implementing Classes:
AbstractObjectLocator,DefaultItemObjectLocator,DefaultPropertyObjectLocator,DefaultRootObjectLocator
public interface Reportable
Reportable object.
- Author:
- Aleksei Valikov
-
Method Summary
Modifier and TypeMethodDescriptionReturns the message.getMessage(ResourceBundle bundle) Formats the message using given resource bundle.Returns message code.Object[]Returns parameters used to format the message.
-
Method Details
-
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
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.
-