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.
-
Annotation(String)
- Creates a new Annotation.
-
Annotation(String, Object)
- Creates a new Annotation.
-
clone()
- Returns a copy of the annotation.
-
getName()
- Returns the name of the annotation.
-
getValue()
- Returns the value of the annotation.
-
getValueClass()
- Returns the class of the value, or null if there's no value.
-
getValueClassName()
- Returns the name of the class of the value, or null if there's no value.
-
setValue(Object)
- Sets the annotation with a new value.
Annotation
public Annotation(String n)
- Creates a new Annotation.
- Parameters:
- n - The name of the annotation.
Annotation
public Annotation(String n,
Object val)
- Creates a new Annotation.
- Parameters:
- n - The name of the annotation.
- val - The value of the annotation.
clone
public Object clone()
- Returns a copy of the annotation.
A shallow copy, the value is not cloned.
- Overrides:
- clone in class Object
getName
public String getName()
- Returns the name of the annotation.
getValue
public Object getValue()
- Returns the value of the annotation.
setValue
public Object setValue(Object val)
- Sets the annotation with a new value.
- Returns:
- The new value val.
getValueClassName
public String getValueClassName()
- Returns the name of the class of the value, or null if there's no value.
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