|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.progeeks.meta.annotate.DefaultAnnotationMap
public class DefaultAnnotationMap
Base class and default implementation for the AnnotationMap interface.
| Constructor Summary | |
|---|---|
DefaultAnnotationMap()
Creates a new DefaultAnnotationMap instance. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAnnotation(java.lang.Object key)
Returns the annotation associated with the specified key. |
AnnotationManager |
getAnnotationManager()
Returns the AnnotationManager to which this AnnotationMap belongs. |
boolean |
isKeySupported(java.lang.Object key)
Returns true if the map supports the specified key. |
boolean |
isMutable()
Returns true if entries in the map can be added or updated. |
void |
setAnnotation(java.lang.Object key,
java.lang.Object annotation)
Sets the annotation object associated with the specified key. |
void |
setAnnotationManager(AnnotationManager manager)
Sets the AnnotationManager to which this map belongs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAnnotationMap()
| Method Detail |
|---|
public void setAnnotationManager(AnnotationManager manager)
setAnnotationManager in interface AnnotationMappublic AnnotationManager getAnnotationManager()
getAnnotationManager in interface AnnotationMappublic java.lang.Object getAnnotation(java.lang.Object key)
getAnnotation in interface AnnotationMap
public void setAnnotation(java.lang.Object key,
java.lang.Object annotation)
throws ImmutableAnnotationMapException,
UnsupportedKeyException
setAnnotation in interface AnnotationMapImmutableAnnotationMapException - when the underlying implementation
does not support adding or updating annotations. This can be
the case for algorithmic annotations or for any annotations that
cannot be changed at runtime.
UnsupportedKeyExceptionpublic boolean isMutable()
isMutable in interface AnnotationMappublic boolean isKeySupported(java.lang.Object key)
isKeySupported in interface AnnotationMap
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||