public class InternationalStringImpl extends Object implements InternationalString, Serializable
| Constructor and Description |
|---|
InternationalStringImpl()
Default constructor creates empty hash map for
holding LocalizedStrings.
|
InternationalStringImpl(Locale locale,
String value)
Utility constructor used with given locale and string.
|
InternationalStringImpl(LocalizedString lString)
Utility constructor used with a given LocalizedString.
|
InternationalStringImpl(String value)
Utility constructor used to set a string value for the
default locale.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLocalizedString(LocalizedString localizedString)
Adds given localized string to collection.
|
void |
addLocalizedStrings(Collection strings)
Adds localized strings to the collection.
|
LocalizedString |
getLocalizedString(Locale locale,
String charsetName)
Gets the localized string for the given locale, if one exists.
|
Collection |
getLocalizedStrings()
Get the localized strings contained in this international
string.
|
String |
getValue()
Returns the string value for default locale
|
String |
getValue(Locale locale)
Returns the string value for the given locale.
|
void |
removeLocalizedString(LocalizedString lString)
Removes given localized string.
|
void |
removeLocalizedStrings(Collection lStrings)
Removes localized strings from the international string
if they are present.
|
void |
setValue(Locale locale,
String string)
Sets the string value for the specified locale
|
void |
setValue(String string)
Sets string value for default locale
|
public InternationalStringImpl()
public InternationalStringImpl(LocalizedString lString) throws JAXRException
string - LocalizedString to storeJAXRExceptionpublic InternationalStringImpl(Locale locale, String value)
locale - value - String value for given localepublic InternationalStringImpl(String value)
value - Store this value for the default localepublic String getValue() throws JAXRException
getValue in interface InternationalStringJAXRException - If the JAXR provider encounters an internal errorpublic String getValue(Locale locale) throws JAXRException
getValue in interface InternationalStringlocale - The Locale for the desired valueJAXRException - If the JAXR provider encounters an internal errorpublic void setValue(String string) throws JAXRException
setValue in interface InternationalStringstring - the String value for the Locale returned by Locale.getDefault()JAXRException - If the JAXR provider encounters an internal errorpublic void setValue(Locale locale, String string) throws JAXRException
setValue in interface InternationalStringlocale - The locale for this value being setstring - The value being setJAXRException - If the JAXR provider encounters an internal errorpublic void addLocalizedString(LocalizedString localizedString) throws JAXRException
addLocalizedString in interface InternationalStringlocalizedString - the LocalizedString being added to this objectJAXRException - If the JAXR provider encounters an internal errorpublic void addLocalizedStrings(Collection strings) throws JAXRException
addLocalizedStrings in interface InternationalStringstrings - the Collection of LocalizedStrings being added to this objectJAXRException - If the JAXR provider encounters an internal errorpublic void removeLocalizedString(LocalizedString lString) throws JAXRException
removeLocalizedString in interface InternationalStringlString - the LocalizedString being removed from this objectJAXRException - If the JAXR provider encounters an internal errorpublic void removeLocalizedStrings(Collection lStrings) throws JAXRException
removeLocalizedStrings in interface InternationalStringlStrings - the Collection of LocalizedStrings being removed from this objectJAXRException - If the JAXR provider encounters an internal errorpublic LocalizedString getLocalizedString(Locale locale, String charsetName) throws JAXRException
getLocalizedString in interface InternationalStringlocale - The loacle for the desired LocalizedStringscharsetName - The character set name for the desired LocalizedStringsJAXRException - If the JAXR provider encounters an internal errorpublic Collection getLocalizedStrings() throws JAXRException
getLocalizedStrings in interface InternationalStringJAXRException - If the JAXR provider encounters an internal errorLocalizedStringCopyright © 2005–2017 Oracle Corporation. All rights reserved.