org.jvnet.jaxb2_commons.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
 String getMessage()
          Returns the message.
 String getMessage(ResourceBundle bundle)
          Formats the message using given resource bundle.
 String getMessageCode()
          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.


Copyright © 2005-2012. All Rights Reserved.