LocalizedString (Java EE 5)

Java EE API


javax.xml.registry.infomodel Interface LocalizedString


public interface LocalizedString


此接口用作将 String 与其 Locale 关联的简单包装器接口。InternationalString 接口中需要该接口,其中保留了 LocalizedString 实例所组成的 Collection。每个 LocalizedString 实例都有一个 Locale 和一个 String 实例。
英文文档:

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
 
Method Summary
 String
 Locale
 String
 void
 void
 void
 

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 此对象使用的字符集的字符集名称
ThrowsJAXRException: 如果 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
ThrowsJAXRException: 如果 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 此对象定义的值
ThrowsJAXRException: 如果 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 此对象使用的字符集的字符集名称
ThrowsJAXRException: 如果 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
ThrowsJAXRException: 如果 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 此对象定义的值
ThrowsJAXRException: 如果 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


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!