java.text
Class MessageFormat.Field

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.text.AttributedCharacterIterator.Attribute sample code for java.text.AttributedCharacterIterator.Attribute definition code for java.text.AttributedCharacterIterator.Attribute 
      extended by java.text.Format.Field sample code for java.text.Format.Field definition code for java.text.Format.Field 
          extended by java.text.MessageFormat.Field
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable
Enclosing class:
MessageFormat sample code for java.text.MessageFormat definition code for java.text.MessageFormat

public static class MessageFormat.Field
extends Format.Field sample code for java.text.Format.Field definition code for java.text.Format.Field

Defines constants that are used as attribute keys in the AttributedCharacterIterator returned from MessageFormat.formatToCharacterIterator.

Since:
1.4
See Also:
Serialized Form

Field Summary
static MessageFormat.Field sample code for java.text.MessageFormat.Field definition code for java.text.MessageFormat.Field ARGUMENT sample code for java.text.MessageFormat.Field.ARGUMENT definition code for java.text.MessageFormat.Field.ARGUMENT
          Constant identifying a portion of a message that was generated from an argument passed into formatToCharacterIterator.
 
Fields inherited from class java.text.AttributedCharacterIterator.Attribute sample code for java.text.AttributedCharacterIterator.Attribute definition code for java.text.AttributedCharacterIterator.Attribute
INPUT_METHOD_SEGMENT sample code for java.text.AttributedCharacterIterator.Attribute.INPUT_METHOD_SEGMENT definition code for java.text.AttributedCharacterIterator.Attribute.INPUT_METHOD_SEGMENT , LANGUAGE sample code for java.text.AttributedCharacterIterator.Attribute.LANGUAGE definition code for java.text.AttributedCharacterIterator.Attribute.LANGUAGE , READING sample code for java.text.AttributedCharacterIterator.Attribute.READING definition code for java.text.AttributedCharacterIterator.Attribute.READING
 
Constructor Summary
protected MessageFormat.Field sample code for java.text.MessageFormat.Field.MessageFormat.Field(java.lang.String) definition code for java.text.MessageFormat.Field.MessageFormat.Field(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Creates a Field with the specified name.
 
Method Summary
protected  Object sample code for java.lang.Object definition code for java.lang.Object readResolve sample code for java.text.MessageFormat.Field.readResolve() definition code for java.text.MessageFormat.Field.readResolve() ()
          Resolves instances being deserialized to the predefined constants.
 
Methods inherited from class java.text.AttributedCharacterIterator.Attribute sample code for java.text.AttributedCharacterIterator.Attribute definition code for java.text.AttributedCharacterIterator.Attribute
equals sample code for java.text.AttributedCharacterIterator.Attribute.equals(java.lang.Object) definition code for java.text.AttributedCharacterIterator.Attribute.equals(java.lang.Object) , getName sample code for java.text.AttributedCharacterIterator.Attribute.getName() definition code for java.text.AttributedCharacterIterator.Attribute.getName() , hashCode sample code for java.text.AttributedCharacterIterator.Attribute.hashCode() definition code for java.text.AttributedCharacterIterator.Attribute.hashCode() , toString sample code for java.text.AttributedCharacterIterator.Attribute.toString() definition code for java.text.AttributedCharacterIterator.Attribute.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

ARGUMENT sample code for java.text.MessageFormat.Field.ARGUMENT

public static final MessageFormat.Field sample code for java.text.MessageFormat.Field definition code for java.text.MessageFormat.Field  ARGUMENT
Constant identifying a portion of a message that was generated from an argument passed into formatToCharacterIterator. The value associated with the key will be an Integer indicating the index in the arguments array of the argument from which the text was generated.

Constructor Detail

MessageFormat.Field sample code for java.text.MessageFormat.Field(java.lang.String) definition code for java.text.MessageFormat.Field(java.lang.String)

protected MessageFormat.Field(String sample code for java.lang.String definition code for java.lang.String  name)
Creates a Field with the specified name.

Parameters:
name - Name of the attribute
Method Detail

readResolve sample code for java.text.MessageFormat.Field.readResolve() definition code for java.text.MessageFormat.Field.readResolve()

protected Object sample code for java.lang.Object definition code for java.lang.Object  readResolve()
                      throws InvalidObjectException sample code for java.io.InvalidObjectException definition code for java.io.InvalidObjectException 
Resolves instances being deserialized to the predefined constants.

Overrides:
readResolve sample code for java.text.AttributedCharacterIterator.Attribute.readResolve() definition code for java.text.AttributedCharacterIterator.Attribute.readResolve() in class AttributedCharacterIterator.Attribute sample code for java.text.AttributedCharacterIterator.Attribute definition code for java.text.AttributedCharacterIterator.Attribute
Returns:
resolved MessageFormat.Field constant
Throws:
InvalidObjectException sample code for java.io.InvalidObjectException definition code for java.io.InvalidObjectException - if the constant could not be resolved.