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>
Model of a binding type
- Author:
- Pete Muir
-
Field Summary
Fields inherited from class org.jboss.weld.metadata.cache.AnnotationModel
valid -
Constructor Summary
ConstructorsConstructorDescriptionQualifierModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheck(EnhancedAnnotation<T> annotatedAnnotation) Validates the membersprotected Set<Class<? extends Annotation>>Gets the meta-annotation typebooleanIndicates if there are non-binding types presentprotected voidinitValid(EnhancedAnnotation<T> annotatedAnnotation) Validates the data for correct annotationbooleanisEqual(Annotation instance, Annotation other) Comparator for checking equalitytoString()Gets a string representation of the qualifier modelMethods inherited from class org.jboss.weld.metadata.cache.AbstractBindingModel
getNonBindingMembers, init, initNonBindingMembersMethods inherited from class org.jboss.weld.metadata.cache.AnnotationModel
getAnnotatedAnnotation, getRawType, initType, isValid
-
Constructor Details
-
QualifierModel
Constructor- Parameters:
type- The type
-
-
Method Details
-
initValid
Description copied from class:AnnotationModelValidates the data for correct annotation- Overrides:
initValidin classAnnotationModel<T extends Annotation>
-
check
Validates the members- Overrides:
checkin classAnnotationModel<T 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
Comparator for checking equality- Parameters:
instance- The instance to check againstother- The other binding type- Returns:
- True if equal, false otherwise
-
toString
Gets a string representation of the qualifier model- Overrides:
toStringin classAnnotationModel<T extends Annotation>- Returns:
- The string representation
-