|
|||||||||
| Home >> All >> java >> [ text overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.text
Class AttributedCharacterIterator.Attribute

java.lang.Objectjava.text.AttributedCharacterIterator.Attribute
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- Format.Field
- Enclosing class:
- AttributedCharacterIterator
- public static class AttributedCharacterIterator.Attribute
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
Defines attribute keys that are used as text attributes.
| Field Summary | |
static AttributedCharacterIterator.Attribute |
INPUT_METHOD_SEGMENT
This is the attribute for input method segments. |
static AttributedCharacterIterator.Attribute |
LANGUAGE
This is the attribute for the language of the text. |
private java.lang.String |
name
The name of the attribute key |
static AttributedCharacterIterator.Attribute |
READING
This is the attribute for the reading form of text. |
private static long |
serialVersionUID
|
| Constructor Summary | |
protected |
AttributedCharacterIterator.Attribute(java.lang.String name)
Initializes a new instance of this class with the specified name. |
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Tests this object for equality against the specified object. |
protected java.lang.String |
getName()
Returns the name of this attribute. |
int |
hashCode()
Returns a hash value for this object. |
protected java.lang.Object |
readResolve()
Resolves an instance of AttributedCharacterIterator.Attribute
that is being deserialized to one of the three pre-defined attribute
constants. |
java.lang.String |
toString()
Returns a String representation of this object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
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
Annotationwhich wrappers aString.
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
Annotationwhich wrapper aString.
name
private java.lang.String name
- The name of the attribute key
| Constructor Detail |
AttributedCharacterIterator.Attribute
protected AttributedCharacterIterator.Attribute(java.lang.String name)
- Initializes a new instance of this class with the specified name.
| Method Detail |
getName
protected java.lang.String getName()
- Returns the name of this attribute.
readResolve
protected java.lang.Object readResolve() throws java.io.InvalidObjectException
- Resolves an instance of
AttributedCharacterIterator.Attributethat 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.
equals
public final boolean equals(java.lang.Object obj)
- 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.
- The specified object is not
hashCode
public final int hashCode()
- Returns a hash value for this object.
toString
public java.lang.String toString()
- Returns a
Stringrepresentation of this object.
|
|||||||||
| Home >> All >> java >> [ text overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
java.text.AttributedCharacterIterator.Attribute