com.sun.xml.bind.v2.model.annotation
Class AbstractInlineAnnotationReaderImpl<T,C,F,M>

java.lang.Object
  extended by com.sun.xml.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl<T,C,F,M>
All Implemented Interfaces:
com.sun.xml.bind.v2.model.annotation.AnnotationReader<T,C,F,M>
Direct Known Subclasses:
RuntimeInlineAnnotationReader

public abstract class AbstractInlineAnnotationReaderImpl<T,C,F,M>
extends java.lang.Object
implements com.sun.xml.bind.v2.model.annotation.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.


Constructor Summary
AbstractInlineAnnotationReaderImpl()
           
 
Method Summary
 com.sun.xml.bind.v2.model.core.ErrorHandler getErrorHandler()
          Always return a non-null valid ErrorHandler
<A extends java.lang.annotation.Annotation>
A
getMethodAnnotation(java.lang.Class<A> annotation, M getter, M setter, com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
           
 boolean hasMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.String propertyName, M getter, M setter, com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
           
 void setErrorHandler(com.sun.xml.bind.v2.model.core.ErrorHandler errorHandler)
           
 
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

AbstractInlineAnnotationReaderImpl

public AbstractInlineAnnotationReaderImpl()
Method Detail

setErrorHandler

public void setErrorHandler(com.sun.xml.bind.v2.model.core.ErrorHandler errorHandler)
Specified by:
setErrorHandler in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<T,C,F,M>

getErrorHandler

public final com.sun.xml.bind.v2.model.core.ErrorHandler getErrorHandler()
Always return a non-null valid ErrorHandler


getMethodAnnotation

public final <A extends java.lang.annotation.Annotation> A getMethodAnnotation(java.lang.Class<A> annotation,
                                                                               M getter,
                                                                               M setter,
                                                                               com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
Specified by:
getMethodAnnotation in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<T,C,F,M>

hasMethodAnnotation

public boolean hasMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
                                   java.lang.String propertyName,
                                   M getter,
                                   M setter,
                                   com.sun.xml.bind.v2.model.annotation.Locatable srcPos)
Specified by:
hasMethodAnnotation in interface com.sun.xml.bind.v2.model.annotation.AnnotationReader<T,C,F,M>