Module org.glassfish.hk2.classmodel
Interface AnnotationModel
- All Known Implementing Classes:
AnnotationModelImpl
public interface AnnotationModel
Models an annotation instance
- Author:
- Jerome Dochez
-
Method Summary
Modifier and TypeMethodDescriptionReturns the annotated element with this annotation instancegetType()Returns the annotation type for this model<T> TReturns the value to which the key is mapped or annotation default value if mapping not found<T> TReturns the value to which the key is mapped or specified default value if mapping not foundReturns an unmodifiable collection of annotation values.
-
Method Details
-
getType
AnnotationType getType()Returns the annotation type for this model- Returns:
- the annotation type
-
getElement
AnnotatedElement getElement()Returns the annotated element with this annotation instance- Returns:
- the annotated element
-
getValues
Returns an unmodifiable collection of annotation values.- Returns:
- collection of value elements of this annotation
-
getValue
Returns the value to which the key is mapped or specified default value if mapping not found- Parameters:
key- the key whose associated value is to be returnedtype- value typedefaultValue- the default mapping of the key- Returns:
- the annotation value.
-
getValue
Returns the value to which the key is mapped or annotation default value if mapping not found- Parameters:
key- the key whose associated value is to be returnedtype- value type- Returns:
- the annotation value.
-