Package org.jboss.weld.metadata.cache
Class QualifierModel<T extends Annotation>
- java.lang.Object
-
- org.jboss.weld.metadata.cache.AnnotationModel<T>
-
- org.jboss.weld.metadata.cache.AbstractBindingModel<T>
-
- org.jboss.weld.metadata.cache.QualifierModel<T>
-
public class QualifierModel<T extends Annotation> extends AbstractBindingModel<T>
Model of a binding type- Author:
- Pete Muir
-
-
Field Summary
-
Fields inherited from class org.jboss.weld.metadata.cache.AnnotationModel
valid
-
-
Constructor Summary
Constructors Constructor Description QualifierModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheck(EnhancedAnnotation<T> annotatedAnnotation)Validates the membersprotected Set<Class<? extends Annotation>>getMetaAnnotationTypes()Gets the meta-annotation typebooleanhasNonBindingMembers()Indicates if there are non-binding types presentprotected voidinitValid(EnhancedAnnotation<T> annotatedAnnotation)Validates the data for correct annotationbooleanisEqual(Annotation instance, Annotation other)Comparator for checking equalityStringtoString()Gets a string representation of the qualifier model-
Methods inherited from class org.jboss.weld.metadata.cache.AbstractBindingModel
getNonBindingMembers, init, initNonBindingMembers
-
Methods inherited from class org.jboss.weld.metadata.cache.AnnotationModel
getAnnotatedAnnotation, getRawType, initType, isValid
-
-
-
-
Constructor Detail
-
QualifierModel
public QualifierModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation)
Constructor- Parameters:
type- The type
-
-
Method Detail
-
initValid
protected void initValid(EnhancedAnnotation<T> annotatedAnnotation)
Description copied from class:AnnotationModelValidates the data for correct annotation- Overrides:
initValidin classAnnotationModel<T extends Annotation>
-
check
protected void check(EnhancedAnnotation<T> annotatedAnnotation)
Validates the members- Overrides:
checkin classAnnotationModel<T extends Annotation>
-
getMetaAnnotationTypes
protected Set<Class<? extends Annotation>> getMetaAnnotationTypes()
Gets the meta-annotation type- Specified by:
getMetaAnnotationTypesin classAnnotationModel<T extends Annotation>- Returns:
- The BindingType class
-
hasNonBindingMembers
public boolean hasNonBindingMembers()
Indicates if there are non-binding types present- Returns:
- True if present, false otherwise
-
isEqual
public boolean isEqual(Annotation instance, Annotation other)
Comparator for checking equality- Parameters:
instance- The instance to check againstother- The other binding type- Returns:
- True if equal, false otherwise
-
toString
public String toString()
Gets a string representation of the qualifier model- Overrides:
toStringin classAnnotationModel<T extends Annotation>- Returns:
- The string representation
-
-