public class InternationalStringImpl extends java.lang.Object implements InternationalString
InternationalString
.Constructor and Description |
---|
InternationalStringImpl(javax.xml.registry.infomodel.InternationalString jaxrInternationalString)
Constructs a new object.
|
Modifier and Type | Method and Description |
---|---|
void |
addLocalizedString(LocalizedString localizedString)
Adds a LocalizedString to this object.
|
void |
addLocalizedStrings(java.util.Collection<LocalizedString> localizedStrings)
Adds many LocalizedStrings to this object.
|
javax.xml.registry.infomodel.InternationalString |
getJaxrInternationalString()
Gets the the javax.xml.registry.infomodel.InternationalString instance
wrapped by this object.
|
LocalizedString |
getLocalizedString(java.util.Locale locale,
java.lang.String charsetName)
Gets the LocalizedString for the specified Locale and charsetName.
|
java.util.Collection<LocalizedString> |
getLocalizedStrings()
Returns the LocalizedStrings associated with this object.
|
java.lang.String |
getValue()
Gets the String value for the default locale and the default charset.
|
java.lang.String |
getValue(java.util.Locale locale)
Gets the String value for the specified Locale and the default charset.
|
void |
removeLocalizedString(LocalizedString localizedString)
Removes a LocalizedString from this object.
|
void |
removeLocalizedStrings(java.util.Collection<LocalizedString> localizedStrings)
Removes specified LocalizedStrings to this object.
|
void |
setValue(java.util.Locale locale,
java.lang.String value)
Sets the String value for the specified Locale.
|
void |
setValue(java.lang.String value)
Sets the String value for the default locale.
|
public InternationalStringImpl(javax.xml.registry.infomodel.InternationalString jaxrInternationalString)
jaxrInternationalString
- the JAXR internatonal string.public void addLocalizedString(LocalizedString localizedString) throws CSAppFrameworkException
InternationalString
addLocalizedString
in interface InternationalString
localizedString
- the LocalizedString to this object.CSAppFrameworkException
- if an internal error occurs on adding localized string.public void addLocalizedStrings(java.util.Collection<LocalizedString> localizedStrings) throws CSAppFrameworkException
InternationalString
addLocalizedStrings
in interface InternationalString
localizedStrings
- the collction of LocalizedStrings to this object.CSAppFrameworkException
- if an internal error occurs on adding localized strings.public LocalizedString getLocalizedString(java.util.Locale locale, java.lang.String charsetName) throws CSAppFrameworkException
InternationalString
getLocalizedString
in interface InternationalString
locale
- the current locale.CSAppFrameworkException
- if an internal error occurs on getting localized string.public java.util.Collection<LocalizedString> getLocalizedStrings() throws CSAppFrameworkException
InternationalString
getLocalizedStrings
in interface InternationalString
CSAppFrameworkException
- if an internal error occurs on getting localized strings.public java.lang.String getValue() throws CSAppFrameworkException
InternationalString
getValue
in interface InternationalString
CSAppFrameworkException
- if an internal error occurs.public java.lang.String getValue(java.util.Locale locale) throws CSAppFrameworkException
InternationalString
getValue
in interface InternationalString
locale
- the current locale.CSAppFrameworkException
- if an internal error occurs.public void removeLocalizedString(LocalizedString localizedString) throws CSAppFrameworkException
InternationalString
removeLocalizedString
in interface InternationalString
localizedString
- the LocalizedString from this object.CSAppFrameworkException
- if an internal error occurs on removing the localized string.public void removeLocalizedStrings(java.util.Collection<LocalizedString> localizedStrings) throws CSAppFrameworkException
InternationalString
removeLocalizedStrings
in interface InternationalString
localizedStrings
- the collection localized strings from this object.CSAppFrameworkException
- if an internal error occurs on removing the localized strings.public void setValue(java.util.Locale locale, java.lang.String value) throws CSAppFrameworkException
InternationalString
setValue
in interface InternationalString
locale
- the current locale.value
- the String value for the specified Locale.CSAppFrameworkException
- if an internal error occurs.public void setValue(java.lang.String value) throws CSAppFrameworkException
InternationalString
setValue
in interface InternationalString
value
- the String value for the default locale.CSAppFrameworkException
- if an internal error occurs.public javax.xml.registry.infomodel.InternationalString getJaxrInternationalString()