Module com.sun.xml.bind
Class AbstractInlineAnnotationReaderImpl<T,C,F,M>
- java.lang.Object
-
- org.glassfish.jaxb.runtime.v2.model.annotation.AbstractInlineAnnotationReaderImpl<T,C,F,M>
-
- All Implemented Interfaces:
AnnotationReader<T,C,F,M>
- Direct Known Subclasses:
RuntimeInlineAnnotationReader
public abstract class AbstractInlineAnnotationReaderImpl<T,C,F,M> extends Object implements AnnotationReader<T,C,F,M>
AnnotationReaderthat reads annotation from classes, not from external binding files. This is meant to be used as a convenient partial implementation.- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
-
Constructor Summary
Constructors Constructor Description AbstractInlineAnnotationReaderImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringfullName(M m)Gets the fully-qualified name of the method.ErrorHandlergetErrorHandler()Always return a non-null validErrorHandler<A extends Annotation>
AgetMethodAnnotation(Class<A> annotation, M getter, M setter, Locatable srcPos)booleanhasMethodAnnotation(Class<? extends Annotation> annotation, String propertyName, M getter, M setter, Locatable srcPos)voidsetErrorHandler(ErrorHandler errorHandler)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader
getAllFieldAnnotations, getAllMethodAnnotations, getClassAnnotation, getClassArrayValue, getClassValue, getFieldAnnotation, getMethodAnnotation, getMethodParameterAnnotation, getPackageAnnotation, hasClassAnnotation, hasFieldAnnotation, hasMethodAnnotation
-
-
-
-
Method Detail
-
setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)
- Specified by:
setErrorHandlerin interfaceAnnotationReader<T,C,F,M>
-
getErrorHandler
public final ErrorHandler getErrorHandler()
Always return a non-null validErrorHandler
-
getMethodAnnotation
public final <A extends Annotation> A getMethodAnnotation(Class<A> annotation, M getter, M setter, Locatable srcPos)
- Specified by:
getMethodAnnotationin interfaceAnnotationReader<T,C,F,M>
-
hasMethodAnnotation
public boolean hasMethodAnnotation(Class<? extends Annotation> annotation, String propertyName, M getter, M setter, Locatable srcPos)
- Specified by:
hasMethodAnnotationin interfaceAnnotationReader<T,C,F,M>
-
-