org.jboss.weld.metadata.cache
Class QualifierModel<T extends Annotation>

java.lang.Object
  extended by org.jboss.weld.metadata.cache.AnnotationModel<T>
      extended by org.jboss.weld.metadata.cache.QualifierModel<T>

public class QualifierModel<T extends Annotation>
extends AnnotationModel<T>

Model of a binding type

Author:
Pete Muir

Field Summary
 
Fields inherited from class org.jboss.weld.metadata.cache.AnnotationModel
valid
 
Constructor Summary
QualifierModel(Class<T> type, ClassTransformer transformer)
          Constructor
 
Method Summary
protected  void check()
          Validates the members
protected  Set<Class<? extends Annotation>> getMetaAnnotationTypes()
          Gets the meta-annotation type
 Set<WeldMethod<?,?>> getNonBindingMembers()
          Gets the non-binding types
 boolean hasNonBindingMembers()
          Indicates if there are non-binding types present
protected  void init()
          Initializes the non-binding types and validates the members
protected  void initNonBindingMembers()
          Initializes the non-binding types
protected  void initValid()
          Validates the data for correct annotation
 boolean isEqual(Annotation instance, Annotation other)
          Comparator for checking equality
 String toString()
          Gets a string representation of the qualifier model
 
Methods inherited from class org.jboss.weld.metadata.cache.AnnotationModel
getAnnotatedAnnotation, getRawType, initType, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QualifierModel

public QualifierModel(Class<T> type,
                      ClassTransformer transformer)
Constructor

Parameters:
type - The type
Method Detail

init

protected void init()
Initializes the non-binding types and validates the members

Overrides:
init in class AnnotationModel<T extends Annotation>

initValid

protected void initValid()
Description copied from class: AnnotationModel
Validates the data for correct annotation

Overrides:
initValid in class AnnotationModel<T extends Annotation>

check

protected void check()
Validates the members

Overrides:
check in class AnnotationModel<T extends Annotation>

getMetaAnnotationTypes

protected Set<Class<? extends Annotation>> getMetaAnnotationTypes()
Gets the meta-annotation type

Specified by:
getMetaAnnotationTypes in class AnnotationModel<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

getNonBindingMembers

public Set<WeldMethod<?,?>> getNonBindingMembers()
Gets the non-binding types

Returns:
A set of non-binding types, or an empty set if there are none present

initNonBindingMembers

protected void initNonBindingMembers()
Initializes the non-binding types


isEqual

public boolean isEqual(Annotation instance,
                       Annotation other)
Comparator for checking equality

Parameters:
instance - The instance to check against
other - 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 class AnnotationModel<T extends Annotation>
Returns:
The string representation


Copyright © 2013 Seam Framework. All Rights Reserved.