Module org.eclipse.persistence.moxy
Class AnnotationHelper
java.lang.Object
org.eclipse.persistence.jaxb.javamodel.reflection.AnnotationHelper
Purpose:Provide a class which is responsible for returning Annotations from AnnotatedElements. This class can be extended in the case that the annotation data is being provided from an external source.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAnnotation
(AnnotatedElement elem, Class annotationClass) Get an annotation of type annotationClass if it's present on the AnnotatedElement elem.Get all annotations that exist on the AnnotatedElement elemGet all annotations that are defined directly on the AnnotatedElement (excluding inherited annotations).boolean
isAnnotationPresent
(AnnotatedElement elem, Class annotationClass) Return true if the annotation annotationClass exists on the annotatedElement elem.
-
Constructor Details
-
AnnotationHelper
public AnnotationHelper()
-
-
Method Details
-
getAnnotation
Get an annotation of type annotationClass if it's present on the AnnotatedElement elem. -
getAnnotations
Get all annotations that exist on the AnnotatedElement elem -
isAnnotationPresent
Return true if the annotation annotationClass exists on the annotatedElement elem. -
getDeclaredAnnotations
Get all annotations that are defined directly on the AnnotatedElement (excluding inherited annotations).
-