public static class MessageFormat.Field
extends Format.Field
| java.lang.Object | |||
| java.text.AttributedCharacterIterator.Attribute | |||
| java.text.Format.Field | |||
| java.text.MessageFormat.Field | |||
定义从 MessageFormat.formatToCharacterIterator返回的 AttributedCharacterIterator中用作属性键的 MessageFormat.formatToCharacterIterator 。
Fields |
|
|---|---|
public static final MessageFormat.Field |
ARGUMENT 常量标识从传递到 |
Inherited fields |
|---|
java.text.AttributedCharacterIterator.Attribute
|
Protected constructors |
|
|---|---|
MessageFormat.Field(String name) 用指定名称创建一个字段。 |
|
Protected methods |
|
|---|---|
Object |
readResolve() 将正在反序列化的实例解析为预定义的常量。 |
继承方法(Inherited methods) |
|
|---|---|
java.text.AttributedCharacterIterator.Attribute
|
|
java.lang.Object
|
|
MessageFormat.Field ARGUMENT
常量标识从传递到formatToCharacterIterator的参数生成的消息的一部分。 与该键关联的值将是一个Integer指示生成文本的参数arguments数组中的索引。
MessageFormat.Field (String name)
用指定名称创建一个字段。
| 参数(Parameters) | |
|---|---|
name |
String: Name of the attribute |
Object readResolve ()
将正在反序列化的实例解析为预定义的常量。
| 返回(Returns) | |
|---|---|
Object |
resolved MessageFormat.Field constant |
| 抛出异常(Throws) | |
|---|---|
InvalidObjectException |
if the constant could not be resolved. |