public abstract class AnnotationModel<T extends Annotation> extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
valid |
Constructor and Description |
---|
AnnotationModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
check(EnhancedAnnotation<T> annotatedAnnotation) |
AnnotatedType<T> |
getAnnotatedAnnotation()
Gets the annotated annotation
|
protected abstract Set<Class<? extends Annotation>> |
getMetaAnnotationTypes()
Gets the meta-annotation that should be present
|
Class<T> |
getRawType()
Gets the type of the annotation
|
protected void |
init(EnhancedAnnotation<T> annotatedAnnotation)
Initializes the type and validates it
|
protected void |
initType(EnhancedAnnotation<T> annotatedAnnotation)
Initializes the type
|
protected void |
initValid(EnhancedAnnotation<T> annotatedAnnotation)
Validates the data for correct annotation
|
boolean |
isValid()
Indicates if the annotation is valid
|
String |
toString()
Gets a string representation of the annotation model
|
public AnnotationModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation)
type
- The annotation typeprotected void init(EnhancedAnnotation<T> annotatedAnnotation)
protected void initType(EnhancedAnnotation<T> annotatedAnnotation)
protected void initValid(EnhancedAnnotation<T> annotatedAnnotation)
protected void check(EnhancedAnnotation<T> annotatedAnnotation)
protected abstract Set<Class<? extends Annotation>> getMetaAnnotationTypes()
public boolean isValid()
public AnnotatedType<T> getAnnotatedAnnotation()
Copyright © 2015. All Rights Reserved.