FileDocCategorySizeDatePackage
Annotation.javaAPI DocAndroid 1.5 API2433Wed May 06 22:41:06 BST 2009java.text

Annotation

public class Annotation extends Object
Wrapper for a text attribute value which represents an annotation. An annotation has two special aspects:
  1. it is connected to a range of main text; if this range or the main text is changed then the annotation becomes invalid,
  2. it can not be joined with adjacent annotations even if the text attribute value is the same.

By wrapping text attribute values into an {@code Annotation}, these aspects will be taken into account when handling annotation text and the corresponding main text.

Note: There is no semantic connection between this annotation class and the {@code java.lang.annotation} package.

since
Android 1.0

Fields Summary
private Object
value
Constructors Summary
public Annotation(Object attribute)
Constructs a new {@code Annotation}.

param
attribute the attribute attached to this annotation. This may be {@code null}.
since
Android 1.0

        value = attribute;
    
Methods Summary
public java.lang.ObjectgetValue()
Returns the value of this annotation. The value may be {@code null}.

return
the value of this annotation or {@code null}.
since
Android 1.0

        return value;
    
public java.lang.StringtoString()
Returns this annotation in string representation.

return
the string representation of this annotation.
since
Android 1.0

        return getClass().getName() + "[value=" + value + ']"; //$NON-NLS-1$