public interface Trait
org.metawidget.inspector.impl.propertystyle.Property
(domain object properties) and org.metawidget.inspector.impl.actionstyle.Action
(domain object actions).
This is essentially java.lang.reflect.AnnotatedElement
, but simplified with fewer
methods.
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotation)
Returns this element's annotation for the specified type if such an annotation is present,
else null.
|
String |
getName() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotation)
Returns true if an annotation for the specified type is present on this element, else false.
|
String getName()
<T extends Annotation> T getAnnotation(Class<T> annotation)
Note: for subclasses, whether anything is returned for annotations defined by the superclass
is decided by the java.lang.annotation.Inherited
annotation.
boolean isAnnotationPresent(Class<? extends Annotation> annotation)
Note: for subclasses, whether true is returned for annotations defined by the superclass is
decided by the java.lang.annotation.Inherited
annotation.
Copyright © 2015. All Rights Reserved.