- java.lang.Object
-
- java.text.AttributedCharacterIterator.Attribute
-
- java.text.Format.Field
-
- java.text.MessageFormat.Field
-
- All Implemented Interfaces:
-
Serializable
- Enclosing class:
- MessageFormat
public static class MessageFormat.Field extends Format.Field
定义从MessageFormat.formatToCharacterIterator返回的AttributedCharacterIterator中用作属性键的MessageFormat.formatToCharacterIterator。- 从以下版本开始:
- 1.4
- 另请参见:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field 描述 static MessageFormat.FieldARGUMENT常量标识从传入formatToCharacterIterator的参数生成的消息的一部分。-
Fields inherited from class java.text.AttributedCharacterIterator.Attribute
INPUT_METHOD_SEGMENT, LANGUAGE, READING
-
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 protected ObjectreadResolve()解析反序列化为预定义常量的实例。-
Methods inherited from class java.text.AttributedCharacterIterator.Attribute
equals, getName, hashCode, toString
-
-
-
-
字段详细信息
-
ARGUMENT
public static final MessageFormat.Field ARGUMENT
常量标识从传入formatToCharacterIterator的参数生成的消息的一部分。 与该密钥相关联的值将是一个Integer表示arguments数组中生成文本的参数的索引。
-
-
构造方法详细信息
-
Field
protected Field(String name)
用指定的名称创建一个字段。- 参数
-
name- 属性名称
-
-
方法详细信息
-
readResolve
protected Object readResolve() throws InvalidObjectException
解析反序列化为预定义常量的实例。- 重写:
-
readResolve在AttributedCharacterIterator.Attribute - 结果
- 解决MessageFormat.Field常量
- 异常
-
InvalidObjectException- 如果常数无法解决。
-
-