|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.xml.registry.infomodel Interface InternationalString
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.
- 作者:
- Farrukh S. Najmi
- 另请参见:
LocalizedString
方法摘要 | |
---|---|
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(). |
方法详细信息 |
---|
getValue
String getValue() throws JAXRException
- Gets the String value for the Locale returned by Locale.getDefault().
- Capability Level: 0
- 返回:
- the String value for the Locale returned by Locale.getDefault()
- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
getValue
String getValue(Locale locale) throws JAXRException
- Gets the String value for the specified Locale. Return null if no locale specific
value is found for the specified locale.
- Capability Level: 0
- 参数:
locale
- The Locale for the desired value- 返回:
- the String value for the specified Locale
- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
setValue
void setValue(String value) throws JAXRException
- Sets the String value for the Locale returned by Locale.getDefault().
- Capability Level: 0
- 参数:
value
- the String value for the Locale returned by Locale.getDefault()- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
setValue
void setValue(Locale locale, String value) throws JAXRException
- Sets the String value for the specified Locale.
- Capability Level: 0
- 参数:
locale
- The locale for this value being setvalue
- The value being set- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
addLocalizedString
void addLocalizedString(LocalizedString localizedString) throws JAXRException
- Adds a LocalizedString to this object.
- Capability Level: 0
- 参数:
localizedString
- the LocalizedString being added to this object- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
addLocalizedStrings
void addLocalizedStrings(Collection localizedStrings) throws JAXRException
- Adds many LocalizedStrings to this object.
- Capability Level: 0
- 参数:
localizedStrings
- the Collection of LocalizedStrings being added to this object- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
removeLocalizedString
void removeLocalizedString(LocalizedString localizedString) throws JAXRException
- Removes a LocalizedString from this object.
- Capability Level: 0
- 参数:
localizedString
- the LocalizedString being removed from this object- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
removeLocalizedStrings
void removeLocalizedStrings(Collection localizedStrings) throws JAXRException
- Removes specified LocalizedStrings to this object.
- Capability Level: 0
- 参数:
localizedStrings
- the Collection of LocalizedStrings being removed from this object- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
getLocalizedString
LocalizedString getLocalizedString(Locale locale, String charsetName) throws JAXRException
- Gets the LocalizedString for the specified Locale and charsetName.
- Capability Level: 0
- 参数:
locale
- The loacle for the desired LocalizedStringscharsetName
- The character set name for the desired LocalizedStrings- 返回:
- the LocalizedString that matches specified locale and character set
- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error
getLocalizedStrings
Collection getLocalizedStrings() throws JAXRException
- Returns the LocalizedStrings associated with this object.
- Capability Level: 0
- 返回:
- Collection of LocalizedString instances. The Collection may be empty but not null.
- 抛出异常:
JAXRException
- If the JAXR provider encounters an internal error- 另请参见:
LocalizedString
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.