com.ibm.websphere.i18n.localizabletext
Interface Localizable

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
LocalizableText, LocalizableTextL, LocalizableTextLTZ, LocalizableTextTZ

public interface Localizable
extends java.io.Serializable

The Localizable interface is used as a common class for its child interfaces. The child interfaces contain format methods with various combinations of Locale and TimeZone arguments. They are intended to allow users to write their own implementations for the LocalizableTextFormatter argument array.

Child Interfaces:
LocalizableText format()
LocalizableTextL format(Locale)
LocalizableTextTZ format(TimeZone)
LocalizableTextLTZ format(Locale, TimeZone)

User implementations of these child interfaces are intended to be used in the argument[] of LocalizableTextFormatter. When LocalizableTextFormatter.format() is called, these child interface format methods will in turn be called. They will be passed the desired Locale and TimeZone by the LocalizableTextFormatter. Each child's format method returns a String that will be used in the LocalizableTextFormatter argument[] at the same index where the child was.

See LocalizableTextFormatter for how the argument arrays are processed.

See LocalizableTextDateTimeArgument for an example of an implementation of LocalizableTextLTZ.

See Also:
LocalizableText, LocalizableTextL, LocalizableTextTZ, LocalizableTextLTZ, LocalizableTextFormatter, LocalizableTextDateTimeArgument