ch.qos.cal10n
Interface IMessageConveyor

All Known Implementing Classes:
MessageConveyor

public interface IMessageConveyor

Retrieve a message by its code as specified by an enum.

The strategy in retrieving messages may vary from implementation to implementation.

Author:
Ceki Gülcü

Method Summary
<E extends Enum<?>>
String
getMessage(E e, Object... args)
          Retrieve a message by its code as specified by an enum.
 

Method Detail

getMessage

<E extends Enum<?>> String getMessage(E e,
                                      Object... args)
Retrieve a message by its code as specified by an enum.

Note that any further arguments passed in 'args' will be interpolated using the translated message. The interpolation will be done according to conventions of MessageFormat.

Type Parameters:
E - an enum type
E -
Parameters:
e - an enum instance
args - optional arguments
e -
args -
Returns:


Copyright © 2009 QOS.ch. All Rights Reserved.