public abstract class AnnotationModel<T extends Annotation> extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
valid |
Constructor and Description |
---|
AnnotationModel(Class<T> type,
ClassTransformer transformer)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
check() |
protected WeldAnnotation<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()
Initializes the type and validates it
|
protected void |
initType()
Initializes the type
|
protected void |
initValid()
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(Class<T> type, ClassTransformer transformer)
type
- The annotation typeprotected void init()
protected void initType()
protected void initValid()
protected void check()
protected abstract Set<Class<? extends Annotation>> getMetaAnnotationTypes()
public boolean isValid()
protected WeldAnnotation<T> getAnnotatedAnnotation()
Copyright © 2012 Seam Framework. All Rights Reserved.