public interface AnnotationModel
| Modifier and Type | Method and Description |
|---|---|
AnnotatedElement |
getElement()
Returns the annotated element with this annotation instance
|
AnnotationType |
getType()
Returns the annotation type for this model
|
<T> T |
getValue(String key,
Class<T> type)
Returns the value to which the key is mapped or annotation default value if
mapping not found
|
<T> T |
getValue(String key,
Class<T> type,
Object defaultValue)
Returns the value to which the key is mapped or specified default value if
mapping not found
|
Map<String,Object> |
getValues()
Returns an unmodifiable collection of annotation values.
|
AnnotationType getType()
AnnotatedElement getElement()
Map<String,Object> getValues()
<T> T getValue(String key, Class<T> type, Object defaultValue)
key - the key whose associated value is to be returnedtype - value typedefaultValue - the default mapping of the keyCopyright © 2009–2022 Oracle Corporation. All rights reserved.