java命名空间javax.imageio.metadata类iiometadataformatimpl的类成员方法:
getattributedescription定义及介绍
本文导语:
getattributedescription
public string getattributedescription(string elementname,
string attrname,
locale locale)
返回包含指定属性的描述的 string,或者 null。如果可能,应将描述本地化为提...
getattributedescription
public string getattributedescription(string elementname,
string attrname,
locale locale)
- 返回包含指定属性的描述的
string,或者 null。如果可能,应将描述本地化为提供的 locale。
默认实现利用在 resourcebundle.getbundle 的注释中描述的应变机制,首先使用由 setresourcebasename 设置的当前资源基本名称以及所提供的 locale 查找 resourcebundle。如果找到 resourcebundle,则将后跟 "/" 字符再后跟属性名 (elementname + "/" + attrname) 的元素名称用作其 getstring 方法的键,并返回结果。如果未找到 resourcebundle 或者不存在这样的键,则返回 null。
如果 locale 为 null,则使用 locale.getlocale 返回的当前默认 locale。
- 指定者:
- 接口
iiometadataformat 中的 getattributedescription
- 参数:
elementname - 元素的名称。attrname - 属性的名称。locale - 尝试进行本地化的 locale,或者为 null。
- 返回:
- 属性描述。
- 抛出:
illegalargumentexception - 如果 elementname 为 null 或者不是此格式的合法元素名称。
illegalargumentexception - 如果 attrname 为 null 或者不是此元素的合法属性名称。- 另请参见:
setresourcebasename(java.lang.string)