|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The AnnotableI interface defines how MOE objects can be annotated with type or other information.
version 0.01 is the initial release.
Method Summary | |
void |
addAll(java.util.Map mapOfAnnotations)
|
void |
annotate(java.lang.Object annotationType,
java.lang.Object annotation)
The annotate() method allows developers to add different kinds of annotation information to components. |
java.lang.Object |
clone()
The clone() method will make a deep copy when its contents implement Cloneable. |
java.util.Map |
getAllAnnotations()
This method allows developers to retrieve all annotations at once. |
java.lang.Object |
getAnnotations(java.lang.Object ofAnnotationType)
This method allows developers to retrieve annotations of one particular type. |
java.util.Set |
getTypes()
Returns a Set containing the types of all annotations stored in this object |
boolean |
hasAnnotation(java.lang.Object annotation)
Indicates whether the provided object is stored as an annotation (of any type) |
boolean |
hasAnnotationOfType(java.lang.Object annotationType)
Indicates whether there are any annotations of the given type. |
boolean |
hasAnnotations()
|
void |
removeAllAnnotations()
This method allows developers to remove all annotations at once. |
void |
removeAnnotation(java.lang.Object ofAnnotationType)
This method allows developers to remove a single annotation. |
Method Detail |
public void addAll(java.util.Map mapOfAnnotations)
public void annotate(java.lang.Object annotationType, java.lang.Object annotation)
public java.lang.Object getAnnotations(java.lang.Object ofAnnotationType)
public java.util.Map getAllAnnotations()
public java.util.Set getTypes()
public boolean hasAnnotation(java.lang.Object annotation)
public boolean hasAnnotationOfType(java.lang.Object annotationType)
public boolean hasAnnotations()
public void removeAnnotation(java.lang.Object ofAnnotationType)
public void removeAllAnnotations()
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |