Skip to content

Most visited

Recently visited

navigation
Added in API level 1

MessageFormat.Field

public static class MessageFormat.Field
extends Format.Field

java.lang.Object
   ↳ java.text.AttributedCharacterIterator.Attribute
     ↳ java.text.Format.Field
       ↳ java.text.MessageFormat.Field


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

Summary

Fields

public static final MessageFormat.Field ARGUMENT

Constant identifying a portion of a message that was generated from an argument passed into formatToCharacterIterator.

Inherited fields

From class java.text.AttributedCharacterIterator.Attribute

Protected constructors

MessageFormat.Field(String name)

Creates a Field with the specified name.

Protected methods

Object readResolve()

Resolves instances being deserialized to the predefined constants.

Inherited methods

From class java.text.AttributedCharacterIterator.Attribute
From class java.lang.Object

Fields

ARGUMENT

Added in API level 1
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.

Protected constructors

MessageFormat.Field

Added in API level 1
MessageFormat.Field (String name)

Creates a Field with the specified name.

Parameters
name String: Name of the attribute

Protected methods

readResolve

Added in API level 1
Object readResolve ()

Resolves instances being deserialized to the predefined constants.

Returns
Object resolved MessageFormat.Field constant
Throws
InvalidObjectException if the constant could not be resolved.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.