|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.simonstl.moe.Annotations
The Annotations class implements the AnnotableI, though
access to this class typically occurs through an implementation of that interface in
the CoreComponent class.
All objects placed in the Annotations should implement Cloneable.
version 0.01 is the initial - bogus - release. Only the deprecated get/setType methods are available. The rest are placeholders.
| Field Summary | |
protected java.util.Map |
annotations
|
| Constructor Summary | |
Annotations()
|
|
| Method Summary | |
void |
addAll(java.util.Map map)
|
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 the set of annotation types. |
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. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Map annotations
| Constructor Detail |
public Annotations()
| Method Detail |
public java.util.Set getTypes()
getTypes in interface AnnotableIpublic void addAll(java.util.Map map)
addAll in interface AnnotableI
public void annotate(java.lang.Object annotationType,
java.lang.Object annotation)
AnnotableIannotate in interface AnnotableIpublic java.lang.Object getAnnotations(java.lang.Object ofAnnotationType)
AnnotableIgetAnnotations in interface AnnotableIpublic java.util.Map getAllAnnotations()
AnnotableIgetAllAnnotations in interface AnnotableIpublic boolean hasAnnotation(java.lang.Object annotation)
AnnotableIhasAnnotation in interface AnnotableIpublic boolean hasAnnotationOfType(java.lang.Object annotationType)
AnnotableIhasAnnotationOfType in interface AnnotableIpublic boolean hasAnnotations()
hasAnnotations in interface AnnotableIpublic void removeAnnotation(java.lang.Object ofAnnotationType)
AnnotableIremoveAnnotation in interface AnnotableIpublic void removeAllAnnotations()
AnnotableIremoveAllAnnotations in interface AnnotableIpublic java.lang.Object clone()
AnnotableIclone in interface AnnotableIclone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||