|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpeakml.Annotatable
public abstract class Annotatable
Base-class for all classes that support annotations.
| Constructor Summary | |
|---|---|
Annotatable()
|
|
| Method Summary | |
|---|---|
void |
addAnnotation(Annotation annotation)
Adds the given annotation instance to the hashmap. |
void |
addAnnotation(java.lang.String label,
double value)
Creates a new annotation with the given label and value, where the valuetype is automatically set to DOUBLE. |
void |
addAnnotation(java.lang.String label,
int value)
Creates a new annotation with the given label and value, where the valuetype is automatically set to INTEGER. |
void |
addAnnotation(java.lang.String label,
java.lang.String value)
Creates a new annotation with the given label and value, where the valuetype is automatically set to STRING. |
void |
addAnnotation(java.lang.String label,
java.lang.String value,
Annotation.ValueType valuetype)
Creates a new annotation with the given label, value, and valuetype. |
void |
addAnnotations(java.util.Collection<Annotation> list)
Adds the list of annotations to the hashmap. |
Annotation |
getAnnotation(java.lang.String name)
Returns the annotation with the given name, stored in this peak. |
java.util.HashMap<java.lang.String,Annotation> |
getAnnotations()
Returns the hashmap containing all the annotations. |
void |
removeAllAnnotations()
Removes all annotations from the list. |
void |
removeAnnotation(java.lang.String label)
Removes annotation with the given label from the list. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Annotatable()
| Method Detail |
|---|
public final java.util.HashMap<java.lang.String,Annotation> getAnnotations()
public Annotation getAnnotation(java.lang.String name)
name - The name of the annotation.
public void addAnnotation(Annotation annotation)
annotation - The new annotation.public void addAnnotations(java.util.Collection<Annotation> list)
list - The list with annotations.
public void addAnnotation(java.lang.String label,
java.lang.String value)
addAnnotation(Annotation annotation).
label - The label of the annotation.value - The value of the annotation.
public void addAnnotation(java.lang.String label,
int value)
addAnnotation(Annotation annotation).
label - The label of the annotation.value - The value of the annotation.
public void addAnnotation(java.lang.String label,
double value)
addAnnotation(Annotation annotation).
label - The label of the annotation.value - The value of the annotation.
public void addAnnotation(java.lang.String label,
java.lang.String value,
Annotation.ValueType valuetype)
addAnnotation(Annotation annotation).
label - The label of the annotation.value - The value of the annotation.valuetype - The type of the annotation.public void removeAnnotation(java.lang.String label)
label - The label of the annotation to be removed.public void removeAllAnnotations()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||