public interface IWithAnnotations
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(IWithAnnotations from,
IWithAnnotations to)
Copy all
IWithAnnotations Unless destination already has the annotation.
WARNING: Annotations are not cloned before copying. |
<A extends IAnnotation> |
getAnnotation(Class<A> annotationType)
Gets the annotation object for a given class for this resource.
|
Iterable<IAnnotation> |
getAnnotations()
Gets the iterable list of the annotations for this resource.
|
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.from - source of IWithAnnotationsto - destination of IWithAnnotations<A extends IAnnotation> A getAnnotation(Class<A> annotationType)
A - the type of the class.annotationType - the class of the annotation object to retrieve.void setAnnotation(IAnnotation annotation)
annotation - the annotation object to set.Iterable<IAnnotation> getAnnotations()
Copyright © 2021. All rights reserved.