java.text
Class Annotation

java.lang.Object
  extended by java.text.Annotation

public class Annotation
extends Object

This class is used as a wrapper for a text attribute object. Annotation objects are associated with a specific range of text. Changing either the text range or the underlying text invalidates the object.


Constructor Summary
Annotation(Object attrib)
          This method initializes a new instance of Annotation to wrapper the specified text attribute object.
 
Method Summary
 Object getValue()
          This method returns the text attribute object this Annotation instance is wrappering.
 String toString()
          This method returns a String representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Annotation

public Annotation(Object attrib)
This method initializes a new instance of Annotation to wrapper the specified text attribute object.

Parameters:
attrib - The text attribute Object to wrapper.
Method Detail

getValue

public Object getValue()
This method returns the text attribute object this Annotation instance is wrappering.

Returns:
The text attribute object for this Annotation.

toString

public String toString()
This method returns a String representation of this object.

Overrides:
toString in class Object
Returns:
This object as a String.
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)