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 void
check(EnhancedAnnotation<T> annotatedAnnotation)
Validates the membersprotected Set<Class<? extends Annotation>>
getMetaAnnotationTypes()
Gets the meta-annotation typeboolean
hasNonBindingMembers()
Indicates if there are non-binding types presentprotected void
initValid(EnhancedAnnotation<T> annotatedAnnotation)
Validates the data for correct annotationboolean
isEqual(Annotation instance, Annotation other)
Comparator for checking equalityString
toString()
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:AnnotationModel
Validates the data for correct annotation- Overrides:
initValid
in classAnnotationModel<T extends Annotation>
-
check
protected void check(EnhancedAnnotation<T> annotatedAnnotation)
Validates the members- Overrides:
check
in classAnnotationModel<T extends Annotation>
-
getMetaAnnotationTypes
protected Set<Class<? extends Annotation>> getMetaAnnotationTypes()
Gets the meta-annotation type- Specified by:
getMetaAnnotationTypes
in 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:
toString
in classAnnotationModel<T extends Annotation>
- Returns:
- The string representation
-
-