org.jvnet.annox.xml.bind
Class AnnoxAnnotationReader
java.lang.Object
com.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl<Type,Class,Field,Method>
org.jvnet.annox.xml.bind.AnnoxAnnotationReader
- All Implemented Interfaces:
- com.sun.xml.bind.v2.model.annotation.AnnotationReader<Type,Class,Field,Method>, com.sun.xml.bind.v2.model.annotation.RuntimeAnnotationReader
public class AnnoxAnnotationReader
- extends com.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl<Type,Class,Field,Method>
- implements com.sun.xml.bind.v2.model.annotation.RuntimeAnnotationReader
Method Summary |
protected String |
fullName(Method m)
|
Annotation[] |
getAllFieldAnnotations(Field field,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
|
Annotation[] |
getAllMethodAnnotations(Method method,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
|
protected AnnotatedElement |
getAnnotatedElement(Class theClass)
|
protected AnnotatedElement |
getAnnotatedElement(Field field)
|
protected ParameterizedAnnotatedElement |
getAnnotatedElement(Method theMethod)
|
protected AnnotatedElement |
getAnnotatedElement(Package thePackage)
|
AnnotatedElementFactory |
getAnnotatedElementFactory()
|
|
getClassAnnotation(Class<A> a,
Class clazz,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
|
Class[] |
getClassArrayValue(Annotation a,
String name)
|
Class |
getClassValue(Annotation a,
String name)
|
|
getFieldAnnotation(Class<A> annotation,
Field field,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
|
|
getMethodAnnotation(Class<A> annotation,
Method method,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
|
|
getMethodParameterAnnotation(Class<A> annotation,
Method method,
int paramIndex,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
|
|
getPackageAnnotation(Class<A> a,
Class clazz,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
|
boolean |
hasClassAnnotation(Class clazz,
Class<? extends Annotation> annotationType)
|
boolean |
hasFieldAnnotation(Class<? extends Annotation> annotationType,
Field field)
|
boolean |
hasMethodAnnotation(Class<? extends Annotation> annotation,
Method method)
|
Methods inherited from class com.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl |
getErrorHandler, getMethodAnnotation, hasMethodAnnotation, setErrorHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sun.xml.bind.v2.model.annotation.AnnotationReader |
getMethodAnnotation, hasMethodAnnotation, setErrorHandler |
AnnoxAnnotationReader
public AnnoxAnnotationReader()
AnnoxAnnotationReader
public AnnoxAnnotationReader(AnnotatedElementFactory annotatedElementFactory)
getAnnotatedElementFactory
public AnnotatedElementFactory getAnnotatedElementFactory()
getAnnotatedElement
protected AnnotatedElement getAnnotatedElement(Field field)
getAnnotatedElement
protected ParameterizedAnnotatedElement getAnnotatedElement(Method theMethod)
getAnnotatedElement
protected AnnotatedElement getAnnotatedElement(Class theClass)
getAnnotatedElement
protected AnnotatedElement getAnnotatedElement(Package thePackage)
getFieldAnnotation
public <A extends Annotation> A getFieldAnnotation(Class<A> annotation,
Field field,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
- Specified by:
getFieldAnnotation
in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<Type,Class,Field,Method>
hasFieldAnnotation
public boolean hasFieldAnnotation(Class<? extends Annotation> annotationType,
Field field)
- Specified by:
hasFieldAnnotation
in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<Type,Class,Field,Method>
hasClassAnnotation
public boolean hasClassAnnotation(Class clazz,
Class<? extends Annotation> annotationType)
- Specified by:
hasClassAnnotation
in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<Type,Class,Field,Method>
getAllFieldAnnotations
public Annotation[] getAllFieldAnnotations(Field field,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
- Specified by:
getAllFieldAnnotations
in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<Type,Class,Field,Method>
getMethodAnnotation
public <A extends Annotation> A getMethodAnnotation(Class<A> annotation,
Method method,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
- Specified by:
getMethodAnnotation
in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<Type,Class,Field,Method>
hasMethodAnnotation
public boolean hasMethodAnnotation(Class<? extends Annotation> annotation,
Method method)
- Specified by:
hasMethodAnnotation
in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<Type,Class,Field,Method>
getAllMethodAnnotations
public Annotation[] getAllMethodAnnotations(Method method,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
- Specified by:
getAllMethodAnnotations
in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<Type,Class,Field,Method>
getMethodParameterAnnotation
public <A extends Annotation> A getMethodParameterAnnotation(Class<A> annotation,
Method method,
int paramIndex,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
- Specified by:
getMethodParameterAnnotation
in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<Type,Class,Field,Method>
getClassAnnotation
public <A extends Annotation> A getClassAnnotation(Class<A> a,
Class clazz,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
- Specified by:
getClassAnnotation
in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<Type,Class,Field,Method>
getClassValue
public Class getClassValue(Annotation a,
String name)
- Specified by:
getClassValue
in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<Type,Class,Field,Method>
getClassArrayValue
public Class[] getClassArrayValue(Annotation a,
String name)
- Specified by:
getClassArrayValue
in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<Type,Class,Field,Method>
fullName
protected String fullName(Method m)
- Specified by:
fullName
in class com.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl<Type,Class,Field,Method>
getPackageAnnotation
public <A extends Annotation> A getPackageAnnotation(Class<A> a,
Class clazz,
com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
- Specified by:
getPackageAnnotation
in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<Type,Class,Field,Method>
Copyright © 2006-2011 Highsource. All Rights Reserved.