|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Annotable
Interface for objects which can be dynamically annotated by other parts of the code. The intended use is mainly to allow plugins to annotate models and their elemets.
| Method Summary | |
|---|---|
java.lang.Object |
getAnnotation(java.lang.String key)
Returns the annotation for the given key. |
boolean |
hasAnnotation(java.lang.String key)
Returns true if there is an annotation for the given key. |
void |
removeAnnotation(java.lang.String key)
Removes the annotation for the given key. |
void |
setAnnotation(java.lang.String key,
java.lang.Object annotation)
Sets an annotation for a given key. |
| Method Detail |
|---|
java.lang.Object getAnnotation(java.lang.String key)
key - key for the annotation
null, otherwise returns the annotation for the key
void setAnnotation(java.lang.String key,
java.lang.Object annotation)
key - the key for the annotationannotation - the annotationvoid removeAnnotation(java.lang.String key)
key - key for the annotationboolean hasAnnotation(java.lang.String key)
true if there is an annotation for the given key.
Otherwise returns false.
key - key for the annotation
true if there is an annotation for the given key,
false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||