V
- the type of the properties valuepublic interface Property<V>
Properties
Modifier and Type | Method and Description |
---|---|
AnnotatedElement |
getAnnotatedElement()
Get the element responsible for retrieving the property value
|
Type |
getBaseType()
Returns the property type
|
Class<?> |
getDeclaringClass()
Returns the class that declares the property
|
Class<V> |
getJavaClass()
Returns the property type
|
Member |
getMember()
Get the member responsible for retrieving the property value
|
String |
getName()
Returns the name of the property.
|
V |
getValue(Object instance)
Returns the property value for the specified bean.
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotation)
Indicates whether the given
annotation is defined for this property. |
boolean |
isReadOnly()
Indicates whether this is a read-only property
|
void |
setAccessible()
Calls the setAccessible method on the underlying member(s).
|
void |
setValue(Object instance,
V value)
This method sets the property value for a specified bean to the specified value.
|
String getName()
Type getBaseType()
AnnotatedElement getAnnotatedElement()
Member getMember()
V getValue(Object instance)
bean
- The bean to read the property fromClassCastException
- if the value is not of the type Vvoid setValue(Object instance, V value)
bean
- The bean containing the property to setvalue
- The new property valueClass<?> getDeclaringClass()
boolean isReadOnly()
void setAccessible()
PrivilegedAction
boolean isAnnotationPresent(Class<? extends Annotation> annotation)
annotation
is defined for this property. This method will consider
the annotations present in both field and accessor method.annotation
- The Annotation to check.Copyright © 2019 JBoss by Red Hat. All rights reserved.