net.sf.sfac.lang
Interface MultiLingualText

All Known Subinterfaces:
ValidationMessage
All Known Implementing Classes:
MultiLingualDirectText, MultiLingualException, MultiLingualRuntimeException, MultiLingualTextImpl, ValidationMessageImpl

public interface MultiLingualText

Interface for object holding a text translatable in several locales.

Author:
Olivier Berlanger

Method Summary
 String getText()
          Get the value of the text for the default locale.
 String getText(Locale loc)
          Get the value of the text for the specified locale.
 String getText(String localeId)
          Get the value of the text for the specified locale.
 

Method Detail

getText

String getText()
Get the value of the text for the default locale.

Returns:
the value of the text for the default locale.

getText

String getText(Locale loc)
Get the value of the text for the specified locale.
If a specific value for the given locale is not available, this method tries to find the most appropriate translation with the usual ResourceBundle mechanism.

Returns:
the value of the text for the specified locale.

getText

String getText(String localeId)
Get the value of the text for the specified locale.
If a specific value for the given locale is not available, this method tries to find the most appropriate translation with the usual ResourceBundle mechanism.

Parameters:
localeId - the ID of the locale (language_country_variant)
Returns:
the value of the text for the specified locale.


Copyright © 2012. All Rights Reserved.