|
|||||||||
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(java.util.Collection localizedStrings)
Adds many LocalizedStrings to this object. |
LocalizedString |
getLocalizedString(java.util.Locale locale,
java.lang.String charsetName)
Get the LocalizedString for the specified Locale and charsetName |
java.util.Collection |
getLocalizedStrings()
Returns the LocalizedStrings associated with this object. |
java.lang.String |
getValue()
Get the String value for the Locale returned by Locale.getDefault(). |
java.lang.String |
getValue(java.util.Locale locale)
Get the String value for the specified Locale. |
void |
removeLocalizedString(LocalizedString localizedString)
Removes a LocalizedString from this object. |
void |
removeLocalizedStrings(java.util.Collection localizedStrings)
Removes specified LocalizedStrings to this object. |
void |
setValue(java.util.Locale locale,
java.lang.String value)
Set the String value for the specified Locale. |
void |
setValue(java.lang.String value)
Set the String value for the Locale returned by Locale.getDefault(). |
Method Detail |
---|
java.lang.String getValue() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorjava.lang.String getValue(java.util.Locale locale) throws JAXRException
locale
- The Locale for the desired value
JAXRException
- If the JAXR provider encounters an internal errorvoid setValue(java.lang.String value) throws JAXRException
value
- the String value for the Locale returned by Locale.getDefault()
JAXRException
- If the JAXR provider encounters an internal errorvoid setValue(java.util.Locale locale, java.lang.String value) throws JAXRException
locale
- The locale for this value being setvalue
- The value being set
JAXRException
- If the JAXR provider encounters an internal errorvoid addLocalizedString(LocalizedString localizedString) throws JAXRException
localizedString
- the LocalizedString being added to this object
JAXRException
- If the JAXR provider encounters an internal errorvoid addLocalizedStrings(java.util.Collection localizedStrings) throws JAXRException
localizedStrings
- the Collection of LocalizedStrings being added to this object
JAXRException
- If the JAXR provider encounters an internal errorvoid removeLocalizedString(LocalizedString localizedString) throws JAXRException
localizedString
- the LocalizedString being removed from this object
JAXRException
- If the JAXR provider encounters an internal errorvoid removeLocalizedStrings(java.util.Collection localizedStrings) throws JAXRException
localizedStrings
- the Collection of LocalizedStrings being removed from this object
JAXRException
- If the JAXR provider encounters an internal errorLocalizedString getLocalizedString(java.util.Locale locale, java.lang.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 errorjava.util.Collection getLocalizedStrings() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorLocalizedString
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34