java.text
Class AttributedCharacterIterator.Attribute
java.lang.Object
|
+--java.text.AttributedCharacterIterator.Attribute
All Implemented Interfaces:
Serializable
public static class
AttributedCharacterIterator.Attributeextends
Objectimplements
Serializable This class defines attribute keys that are used as text attributes.
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
.
Attribute
protected Attribute(java.lang.String name)
This method initializes a new instance of this class with the specified
name.
Parameters:
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:
- The specified object is not
null
.
- The specified object is an instance of
AttributedCharacterIterator.Attribute
.
- The specified object has the same attribute name as this object.
Parameters:
Returns:
true
if the specified object is equal to this one, false
otherwise.
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:
- A hash value for this object.
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:
- The resolved contant value
Throws:
toString
public String toString()
This method returns a String
representation of this object.
Returns:
- A
String
representation of this object.