Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.text

Class AttributedCharacterIterator.Attribute

java.lang.Object
|
+--java.text.AttributedCharacterIterator.Attribute

All Implemented Interfaces:

Serializable


public static class AttributedCharacterIterator.Attribute

extends Object

implements Serializable

This class defines attribute keys that are used as text attributes.

Field Summary

static java.text.AttributedCharacterIterator.AttributeINPUT_METHOD_SEGMENT

This is the attribute for input method segments.
static java.text.AttributedCharacterIterator.AttributeLANGUAGE

This is the attribute for the language of the text.
static java.text.AttributedCharacterIterator.AttributeREADING

This is the attribute for the reading form of text.

Constructor Summary

Attribute(java.lang.String name)

This method initializes a new instance of this class with the specified name.

Method Summary

booleanequals(java.lang.Object obj)

This method tests this object for equality against the specified object.
java.lang.StringgetName()

This method returns the name of this attribute.
inthashCode()

This method returns a hash value for this object.
java.lang.ObjectreadResolve()

This method resolves an instance of AttributedCharacterIterator.Attribute that is being deserialized to one of the three pre-defined attribute constants.
java.lang.StringtoString()

This method returns a String representation of this object.

Field Details

INPUT_METHOD_SEGMENT

public static final AttributedCharacterIterator.Attribute INPUT_METHOD_SEGMENT

This is the attribute for input method segments. The value of attributes of this key type are instances of Annotation which wrapper a String.


LANGUAGE

public static final AttributedCharacterIterator.Attribute LANGUAGE

This is the attribute for the language of the text. The value of attributes of this key type are instances of Locale.


READING

public static final AttributedCharacterIterator.Attribute READING

This is the attribute for the reading form of text. This is used for storing pronunciation along with the written text for languages which need it. The value of attributes of this key type are instances of Annotation which wrappers a String.


Constructor Details

Attribute

protected Attribute(java.lang.String name)

This method initializes a new instance of this class with the specified name.

Parameters:


Method Details

equals

public final boolean equals(java.lang.Object obj)

This method tests this object for equality against the specified object. The two objects will be considered equal if and only if:

Parameters:

Returns:


getName

protected String getName()

This method returns the name of this attribute.

Returns:


hashCode

public final int hashCode()

This method returns a hash value for this object.

Returns:


readResolve

protected Object readResolve()

This method resolves an instance of AttributedCharacterIterator.Attribute that is being deserialized to one of the three pre-defined attribute constants. It does this by comparing the names of the attributes. The constant that the deserialized object resolves to is returned.

Returns:

Throws:


toString

public String toString()

This method returns a String representation of this object.

Returns: