|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.registry.uddi.infomodel.InternationalStringImpl
public class InternationalStringImpl
Implementation of JAXR InternationalString. "default locale" in comments below refers to the locale given by Locale.getDefault() at runtime. Class contains a java.util.HashMap that maps locales to LocalizedString instances. Unless specified for a given method, the behavior for null locales and values is the same as for null keys and objects in HashMap.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InternationalStringImpl()
public InternationalStringImpl(LocalizedString lString)
throws JAXRException
string - LocalizedString to store
JAXRException
public InternationalStringImpl(Locale locale,
String value)
locale - value - String value for given localepublic InternationalStringImpl(String value)
value - Store this value for the default locale| Method Detail |
|---|
public String getValue()
throws JAXRException
getValue in interface InternationalStringJAXRException - If the JAXR provider encounters an internal error
public String getValue(Locale locale)
throws JAXRException
getValue in interface InternationalStringlocale - The Locale for the desired value
JAXRException - If the JAXR provider encounters an internal error
public 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 error
public void setValue(Locale locale,
String string)
throws JAXRException
setValue in interface InternationalStringlocale - The locale for this value being setstring - The value being set
JAXRException - If the JAXR provider encounters an internal error
public void addLocalizedString(LocalizedString localizedString)
throws JAXRException
addLocalizedString in interface InternationalStringlocalizedString - the LocalizedString being added to this object
JAXRException - If the JAXR provider encounters an internal error
public void addLocalizedStrings(Collection strings)
throws JAXRException
addLocalizedStrings in interface InternationalStringstrings - the Collection of LocalizedStrings being added to this object
JAXRException - If the JAXR provider encounters an internal error
public void removeLocalizedString(LocalizedString lString)
throws JAXRException
removeLocalizedString in interface InternationalStringlString - the LocalizedString being removed from this object
JAXRException - If the JAXR provider encounters an internal error
public void removeLocalizedStrings(Collection lStrings)
throws JAXRException
removeLocalizedStrings in interface InternationalStringlStrings - the Collection of LocalizedStrings being removed from this object
JAXRException - If the JAXR provider encounters an internal error
public 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 LocalizedStrings
JAXRException - If the JAXR provider encounters an internal error
public Collection getLocalizedStrings()
throws JAXRException
getLocalizedStrings in interface InternationalStringJAXRException - If the JAXR provider encounters an internal errorLocalizedString
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||