|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface InternationalString
This interface represents a String that has been internationalized into several Locales. This interface is used as a replacement for the String type whenever a String attribute needs to be I18N capable. An instance of the InternationalString interface composes within it a Collection of LocalizedString instances, where each String is specific to a particular Locale. The InternationalString interface provides set/get methods for adding or getting locale specific String values for the InternationalString instance.
LocalizedString| Method Summary | |
|---|---|
void |
addLocalizedString(LocalizedString localizedString)
Adds a LocalizedString to this object. |
void |
addLocalizedStrings(Collection localizedStrings)
Adds many LocalizedStrings to this object. |
LocalizedString |
getLocalizedString(Locale locale,
String charsetName)
Gets the LocalizedString for the specified Locale and charsetName. |
Collection |
getLocalizedStrings()
Returns the LocalizedStrings associated with this object. |
String |
getValue()
Gets the String value for the Locale returned by Locale.getDefault(). |
String |
getValue(Locale locale)
Gets the String value for the specified Locale. |
void |
removeLocalizedString(LocalizedString localizedString)
Removes a LocalizedString from this object. |
void |
removeLocalizedStrings(Collection localizedStrings)
Removes specified LocalizedStrings to this object. |
void |
setValue(Locale locale,
String value)
Sets the String value for the specified Locale. |
void |
setValue(String value)
Sets the String value for the Locale returned by Locale.getDefault(). |
| Method Detail |
|---|
String getValue()
throws JAXRException
JAXRException - If the JAXR provider encounters an internal error
String getValue(Locale locale)
throws JAXRException
locale - The Locale for the desired value
JAXRException - If the JAXR provider encounters an internal error
void setValue(String value)
throws JAXRException
value - the String value for the Locale returned by Locale.getDefault()
JAXRException - If the JAXR provider encounters an internal error
void setValue(Locale locale,
String value)
throws JAXRException
locale - The locale for this value being setvalue - The value being set
JAXRException - If the JAXR provider encounters an internal error
void addLocalizedString(LocalizedString localizedString)
throws JAXRException
localizedString - the LocalizedString being added to this object
JAXRException - If the JAXR provider encounters an internal error
void addLocalizedStrings(Collection localizedStrings)
throws JAXRException
localizedStrings - the Collection of LocalizedStrings being added to this object
JAXRException - If the JAXR provider encounters an internal error
void removeLocalizedString(LocalizedString localizedString)
throws JAXRException
localizedString - the LocalizedString being removed from this object
JAXRException - If the JAXR provider encounters an internal error
void removeLocalizedStrings(Collection localizedStrings)
throws JAXRException
localizedStrings - the Collection of LocalizedStrings being removed from this object
JAXRException - If the JAXR provider encounters an internal error
LocalizedString getLocalizedString(Locale locale,
String charsetName)
throws JAXRException
locale - The loacle for the desired LocalizedStringscharsetName - The character set name for the desired LocalizedStrings
JAXRException - If the JAXR provider encounters an internal error
Collection getLocalizedStrings()
throws JAXRException
JAXRException - If the JAXR provider encounters an internal errorLocalizedString
|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved.