Package org.jvnet.jaxb.annox.model
Class XAnnotatedElement<T extends AnnotatedElement>
- java.lang.Object
-
- org.jvnet.jaxb.annox.model.XAnnotated
-
- org.jvnet.jaxb.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
Constructors Constructor Description XAnnotatedElement(T annotatedElement, XAnnotation<?>[] xannotations)Constructs an annotated element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetAnnotatedElement()Returns the target annotated element.<X extends Annotation>
XgetAnnotation(Class<X> annotationClass)Annotation[]getDeclaredAnnotations()booleanisAnnotationPresent(Class<? extends Annotation> annotationClass)-
Methods inherited from class org.jvnet.jaxb.annox.model.XAnnotated
equals, getAnnotations, getXAnnotations, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
-
-
-
Constructor Detail
-
XAnnotatedElement
public XAnnotatedElement(T annotatedElement, XAnnotation<?>[] xannotations)
Constructs an annotated element.- Parameters:
annotatedElement- target annotated element.xannotations- element annotations.
-
-
Method Detail
-
getAnnotatedElement
public T getAnnotatedElement()
Returns the target annotated element.- Returns:
- Target annotated element.
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement
-
getAnnotation
public <X extends Annotation> X getAnnotation(Class<X> annotationClass)
- Specified by:
getAnnotationin interfaceAnnotatedElement
-
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement
-
-