|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl<T,C,F,M>
public abstract class AbstractInlineAnnotationReaderImpl<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.
| Constructor Summary | |
|---|---|
AbstractInlineAnnotationReaderImpl()
|
|
| Method Summary | ||
|---|---|---|
ErrorHandler |
getErrorHandler()
Always return a non-null valid ErrorHandler |
|
|
getMethodAnnotation(java.lang.Class<A> annotation,
M getter,
M setter,
Locatable srcPos)
Reads an annotation on a property that consists of a getter and a setter. |
|
boolean |
hasMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String propertyName,
M getter,
M setter,
Locatable srcPos)
Checks if the given method has an annotation. |
|
void |
setErrorHandler(ErrorHandler errorHandler)
Sets the error handler that receives errors found during reading annotations. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sun.xml.bind.v2.model.annotation.AnnotationReader |
|---|
getAllFieldAnnotations, getAllMethodAnnotations, getClassAnnotation, getClassArrayValue, getClassValue, getFieldAnnotation, getMethodAnnotation, getMethodParameterAnnotation, getPackageAnnotation, hasClassAnnotation, hasFieldAnnotation, hasMethodAnnotation |
| Constructor Detail |
|---|
public AbstractInlineAnnotationReaderImpl()
| Method Detail |
|---|
public void setErrorHandler(ErrorHandler errorHandler)
AnnotationReader
setErrorHandler in interface AnnotationReader<T,C,F,M>errorHandler - must not be null.public final ErrorHandler getErrorHandler()
ErrorHandler
public final <A extends java.lang.annotation.Annotation> A getMethodAnnotation(java.lang.Class<A> annotation,
M getter,
M setter,
Locatable srcPos)
AnnotationReader
getMethodAnnotation in interface AnnotationReader<T,C,F,M>
public boolean hasMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String propertyName,
M getter,
M setter,
Locatable srcPos)
AnnotationReader
hasMethodAnnotation in interface AnnotationReader<T,C,F,M>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||