org.jboss.weld.metadata.cache
Class QualifierModel<T extends java.lang.annotation.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 java.lang.annotation.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(java.lang.Class<T> type, ClassTransformer transformer)
          Constructor
 
Method Summary
protected  java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getMetaAnnotationTypes()
          Gets the meta-annotation type
 java.util.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
 boolean isEqual(java.lang.annotation.Annotation instance, java.lang.annotation.Annotation other)
          Comparator for checking equality
 java.lang.String toString()
          Gets a string representation of the qualifier model
 
Methods inherited from class org.jboss.weld.metadata.cache.AnnotationModel
getAnnotatedAnnotation, getRawType, initType, initValid, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QualifierModel

public QualifierModel(java.lang.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 java.lang.annotation.Annotation>

getMetaAnnotationTypes

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

Specified by:
getMetaAnnotationTypes in class AnnotationModel<T extends java.lang.annotation.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 java.util.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(java.lang.annotation.Annotation instance,
                       java.lang.annotation.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 java.lang.String toString()
Gets a string representation of the qualifier model

Overrides:
toString in class AnnotationModel<T extends java.lang.annotation.Annotation>
Returns:
The string representation


Copyright © 2008-2010 Seam Framework. All Rights Reserved.