|
|||||||||
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 AnnotableI
public void addAll(java.util.Map map)
addAll
in interface AnnotableI
public void annotate(java.lang.Object annotationType, java.lang.Object annotation)
AnnotableI
annotate
in interface AnnotableI
public java.lang.Object getAnnotations(java.lang.Object ofAnnotationType)
AnnotableI
getAnnotations
in interface AnnotableI
public java.util.Map getAllAnnotations()
AnnotableI
getAllAnnotations
in interface AnnotableI
public boolean hasAnnotation(java.lang.Object annotation)
AnnotableI
hasAnnotation
in interface AnnotableI
public boolean hasAnnotationOfType(java.lang.Object annotationType)
AnnotableI
hasAnnotationOfType
in interface AnnotableI
public boolean hasAnnotations()
hasAnnotations
in interface AnnotableI
public void removeAnnotation(java.lang.Object ofAnnotationType)
AnnotableI
removeAnnotation
in interface AnnotableI
public void removeAllAnnotations()
AnnotableI
removeAllAnnotations
in interface AnnotableI
public java.lang.Object clone()
AnnotableI
clone
in interface AnnotableI
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |