All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class aioli.vtp.Annotation

java.lang.Object
   |
   +----aioli.vtp.Annotation

public class Annotation
extends Object
implements Cloneable, Serializable
Implements the notion of annotation.
An annotation has a name and a Value.


Constructor Index

 o Annotation(String)
Creates a new Annotation.
 o Annotation(String, Object)
Creates a new Annotation.

Method Index

 o clone()
Returns a copy of the annotation.
 o getName()
Returns the name of the annotation.
 o getValue()
Returns the value of the annotation.
 o getValueClass()
Returns the class of the value, or null if there's no value.
 o getValueClassName()
Returns the name of the class of the value, or null if there's no value.
 o setValue(Object)
Sets the annotation with a new value.

Constructors

 o Annotation
 public Annotation(String n)
Creates a new Annotation.

Parameters:
n - The name of the annotation.
 o Annotation
 public Annotation(String n,
                   Object val)
Creates a new Annotation.

Parameters:
n - The name of the annotation.
val - The value of the annotation.

Methods

 o clone
 public Object clone()
Returns a copy of the annotation.
A shallow copy, the value is not cloned.

Overrides:
clone in class Object
 o getName
 public String getName()
Returns the name of the annotation.

 o getValue
 public Object getValue()
Returns the value of the annotation.

 o setValue
 public Object setValue(Object val)
Sets the annotation with a new value.

Returns:
The new value val.
 o getValueClassName
 public String getValueClassName()
Returns the name of the class of the value, or null if there's no value.

 o getValueClass
 public Class getValueClass()
Returns the class of the value, or null if there's no value.


All Packages  Class Hierarchy  This Package  Previous  Next  Index