Package org.jvnet.basicjaxb_annox.model
Class XAnnotatedElement<T extends AnnotatedElement>
java.lang.Object
org.jvnet.basicjaxb_annox.model.XAnnotated
org.jvnet.basicjaxb_annox.model.XAnnotatedElement<T>
- Type Parameters:
T- type of the annotated element.
- All Implemented Interfaces:
AnnotatedElement
public class XAnnotatedElement<T extends AnnotatedElement>
extends XAnnotated
implements AnnotatedElement
Defines an annotated element.
- Author:
- Aleksei Valikov
-
Constructor Summary
ConstructorsConstructorDescriptionXAnnotatedElement(T annotatedElement, XAnnotation<?>[] xannotations) Constructs an annotated element. -
Method Summary
Modifier and TypeMethodDescriptionReturns the target annotated element.<X extends Annotation>
XgetAnnotation(Class<X> annotationClass) booleanisAnnotationPresent(Class<? extends Annotation> annotationClass) Methods inherited from class org.jvnet.basicjaxb_annox.model.XAnnotated
equals, getAnnotations, getXAnnotations, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
Constructor Details
-
XAnnotatedElement
Constructs an annotated element.- Parameters:
annotatedElement- target annotated element.xannotations- element annotations.
-
-
Method Details
-
getAnnotatedElement
Returns the target annotated element.- Returns:
- Target annotated element.
-
isAnnotationPresent
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedElement
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement
-