Package java.text

Class MessageFormat.Field

All Implemented Interfaces:
Serializable
Enclosing class:
MessageFormat

public static class MessageFormat.Field
extends Format.Field
The instances of this inner class are used as attribute keys in AttributedCharacterIterator that the MessageFormat.formatToCharacterIterator(Object) method returns.

There is no public constructor in this class, the only instances are the constants defined here.

See Also:
Serialized Form
  • Field Details

    • ARGUMENT

      public static final MessageFormat.Field ARGUMENT
      This constant stands for the message argument.
  • Constructor Details

    • Field

      protected Field​(String fieldName)
      Constructs a new instance of MessageFormat.Field with the given field name.
      Parameters:
      fieldName - the field name.