org.nuiton.i18n.format
Interface I18nMessageFormatter

All Known Implementing Classes:
MessageFormatI18nMessageFormatter, StringFormatI18nMessageFormatter

public interface I18nMessageFormatter

Contract to format a i18n message.

Created: 05/05/11

$Id: I18nMessageFormatter.java 1928 2011-05-13 09:59:47Z tchemit $

Since:
2.4
Author:
fdesbois , tchemit
See Also:
StringFormatI18nMessageFormatter, MessageFormatI18nMessageFormatter

Method Summary
 String format(Locale locale, String message, Object... args)
          Format a given message with locale and optinal args.
 

Method Detail

format

String format(Locale locale,
              String message,
              Object... args)
Format a given message with locale and optinal args.

The main purpose is to replace placeholders in message with args value.

This may depend on locale for date purpose for example.

Parameters:
locale - locale to use for formatting (number, date, ...)
message - message to format (that contains placeholders)
args - object array to use in formatting the message
Returns:
the formatted message


Copyright © 2004-2011 CodeLutin. All Rights Reserved.