Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.text.Annotation
public class Annotation extends Object
An Annotation object is used as a wrapper for a text attribute value if the attribute has annotation characteristics. These characteristics are:
Wrapping the attribute value into an Annotation object guarantees that adjacent text runs don't get merged even if the attribute values are equal, and indicates to text containers that the attribute should be discarded if the underlying text is modified.
AttributedCharacterIterator
Constructor and Description |
---|
Annotation(Object value)
Constructs an annotation record with the given value, which may be null. |
Modifier and Type | Method and Description |
---|---|
Object |
getValue()
Returns the value of the attribute, which may be null. |
String |
toString()
Returns the String representation of this Annotation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Annotation(Object value)
value
- The value of the attributeMethod Detail |
---|
public Object getValue()
public String toString()
toString
in class Object
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.