com.sun.xml.bind.v2.model.annotation

Class AbstractInlineAnnotationReaderImpl<T,C,F,M>

public abstract class AbstractInlineAnnotationReaderImpl<T,C,F,M> extends Object implements AnnotationReader<T,C,F,M>

AnnotationReader that reads annotation from classes, not from external binding files. This is meant to be used as a convenient partial implementation.
Method Summary
protected abstract StringfullName(M m)
Gets the fully-qualified name of the method.
ErrorHandlergetErrorHandler()
Always return a non-null valid
<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)

Method Detail

fullName

protected abstract String fullName(M m)
Gets the fully-qualified name of the method. Used for error messages.

getErrorHandler

public final ErrorHandler getErrorHandler()
Always return a non-null valid ErrorHandler

getMethodAnnotation

public final <A extends Annotation> A getMethodAnnotation(Class<A> annotation, M getter, M setter, Locatable srcPos)

hasMethodAnnotation

public boolean hasMethodAnnotation(Class<? extends Annotation> annotation, String propertyName, M getter, M setter, Locatable srcPos)

setErrorHandler

public void setErrorHandler(ErrorHandler errorHandler)