|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.registry.infomodel Interface LocalizedString
public interface LocalizedString
此接口用作将 String 与其 Locale 关联的简单包装器接口。InternationalString 接口中需要该接口,其中保留了 LocalizedString 实例所组成的 Collection。每个 LocalizedString 实例都有一个 Locale 和一个 String 实例。
See also | javax.xml.registry.infomodel.InternationalString |
This interface is used as a simple wrapper interface that associates a String with its Locale. The interface is needed in the InternationalString interface where a Collection of LocalizedString instances are kept. Each LocalizedString instance has a Locale and a String instance.
- Author:
- Farrukh S. Najmi
- See Also:
InternationalString
Field Summary | |
---|---|
static String |
DEFAULT_CHARSET_NAME
The default name returned by getCharsetName if no other name has explicitly been set. |
Method Summary | |
---|---|
String |
getCharsetName()
Gets the canonical name for the charset for this object. |
Locale |
getLocale()
Get the Locale for this object. |
String |
getValue()
Get the String value for this object. |
void |
setCharsetName(String charsetName)
Set the canonical name for the charset for this object. |
void |
setLocale(Locale locale)
Set the Locale for this object. |
void |
setValue(String value)
Set the String value for the specified object. |
Field Detail |
---|
英文文档:
DEFAULT_CHARSET_NAME
static final String DEFAULT_CHARSET_NAME
- The default name returned by getCharsetName if no other
name has explicitly been set.
- See Also:
- Constant Field Values
Method Detail |
---|
public String
getCharsetName() throws JAXRException
获取此对象字符集的规范名称。在没有定义字符集名称时,必须返回默认字符集。
- 功能级别:0
return | 此对象使用的字符集的字符集名称 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
See also | DEFAULT_CHARSET_NAME |
getCharsetName
String getCharsetName() throws JAXRException
- Gets the canonical name for the charset for this object.
Must return the default charset when there is no charset name defined.
- Capability Level: 0
- Returns:
- the character set name for the character set used by this object
- Throws:
JAXRException
- If the JAXR provider encounters an internal error- See Also:
DEFAULT_CHARSET_NAME
public java.util.Locale
getLocale() throws JAXRException
获取此对象的 Locale。如果没有定义 Locale,则必须返回默认 Locale。
- 功能级别:0
return | 此对象使用的 Locale |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
See also | getDefault() |
getLocale
Locale getLocale() throws JAXRException
- Get the Locale for this object.
Must return the default Locale when no Locale has been defined.
- Capability Level: 0
- Returns:
- the Locale used by this object
- Throws:
JAXRException
- If the JAXR provider encounters an internal error- See Also:
Locale.getDefault()
public String
getValue() throws JAXRException
获取此对象的 String 值。
- 功能级别:0
return | 此对象定义的值 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getValue
String getValue() throws JAXRException
- Get the String value for this object.
- Capability Level: 0
- Returns:
- the value defined by this object
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setCharsetName(String charsetName) throws JAXRException
设置此对象字符集的规范名称。
- 功能级别:0
charsetName | 此对象使用的字符集的字符集名称 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setCharsetName
void setCharsetName(String charsetName) throws JAXRException
- Set the canonical name for the charset for this object.
- Capability Level: 0
- Parameters:
charsetName
- the character set name for the character set used by this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setLocale(java.util.Locale locale) throws JAXRException
设置此对象的 Locale。
- 功能级别:0
locale | 此对象使用的 Locale |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setLocale
void setLocale(Locale locale) throws JAXRException
- Set the Locale for this object.
- Capability Level: 0
- Parameters:
locale
- the Locale used by this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setValue(String value) throws JAXRException
设置指定对象的 String 值。
- 功能级别:0
value | 此对象定义的值 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setValue
void setValue(String value) throws JAXRException
- Set the String value for the specified object.
- Capability Level: 0
- Parameters:
value
- the value defined by this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!