public interface IWithAnnotations
| Modifier and Type | Method and Description |
|---|---|
default Iterator<IAnnotation> |
annotationIterator()
Gets an iterator of the annotations for this resource.
|
default void |
clear()
Empty all
IAnnotation's |
static void |
copy(IWithAnnotations from,
IWithAnnotations to)
Copy all
IWithAnnotations Unless destination already has the
annotation. |
default <A extends IAnnotation> |
getAnnotation(Class<A> annotationType)
Gets the annotation object for a given class for this resource.
|
Annotations |
getAnnotations() |
default Set<Class<? extends IAnnotation>> |
getAnnotationsTypesAsSet() |
default <A extends IAnnotation> |
hasAnnotation(Class<A> annotationType)
Does this resource have any annotations?
|
default boolean |
hasAnnotations()
Does this resource have any annotations?
|
default <A extends IAnnotation> |
remove(Class<A> annotationType)
Remove the designated
IAnnotation |
default void |
setAnnotation(IAnnotation annotation)
Sets an annotation object for this resource.
|
static void copy(IWithAnnotations from, IWithAnnotations to)
IWithAnnotations Unless destination already has the
annotation.
WARNING: Annotations are not cloned before copying. IAnnotation
should define a clone method
from - source of IWithAnnotationsto - destination of IWithAnnotationsAnnotations getAnnotations()
Annotations for the implementer of interfacedefault <A extends IAnnotation> A getAnnotation(Class<A> annotationType)
A - annotation - default void setAnnotation(IAnnotation annotation)
annotation - the annotation object to set.default Iterator<IAnnotation> annotationIterator()
default Set<Class<? extends IAnnotation>> getAnnotationsTypesAsSet()
default <A extends IAnnotation> void remove(Class<A> annotationType)
IAnnotationA - annotationType - the class of the annotation object to retrieve.default boolean hasAnnotations()
IResourcedefault <A extends IAnnotation> boolean hasAnnotation(Class<A> annotationType)
A - IResourcedefault void clear()
IAnnotation'sCopyright © 2021. All rights reserved.