org.jboss.webbeans.metadata
Class BindingTypeModel<T extends java.lang.annotation.Annotation>

java.lang.Object
  extended by org.jboss.webbeans.metadata.AnnotationModel<T>
      extended by org.jboss.webbeans.metadata.BindingTypeModel<T>

public class BindingTypeModel<T extends java.lang.annotation.Annotation>
extends AnnotationModel<T>

Model of a binding type

Author:
Pete Muir

Constructor Summary
BindingTypeModel(java.lang.Class<T> type, ClassTransformer transformer)
          Constructor
 
Method Summary
protected  java.lang.Class<? extends java.lang.annotation.Annotation> getMetaAnnotation()
          Gets the meta-annotation type
 java.util.Set<AnnotatedMethod<?>> getNonBindingTypes()
          Gets the non-binding types
 boolean hasNonBindingTypes()
          Indicates if there are non-binding types present
protected  void init()
          Initializes the non-binding types and validates the members
protected  void initNonBindingTypes()
          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 binding type model
 
Methods inherited from class org.jboss.webbeans.metadata.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

BindingTypeModel

public BindingTypeModel(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>

getMetaAnnotation

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

Specified by:
getMetaAnnotation in class AnnotationModel<T extends java.lang.annotation.Annotation>
Returns:
The BindingType class

hasNonBindingTypes

public boolean hasNonBindingTypes()
Indicates if there are non-binding types present

Returns:
True if present, false otherwise

getNonBindingTypes

public java.util.Set<AnnotatedMethod<?>> getNonBindingTypes()
Gets the non-binding types

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

initNonBindingTypes

protected void initNonBindingTypes()
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 binding type model

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


Copyright © 2011. All Rights Reserved.