public interface PropertyAccessor
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
findAnnotation(Class<A> annotationClass)
Retrieve the annotation on a property.
|
String |
getName()
Retrieve the property name.
|
Method |
getReadMethod() |
Class<?> |
getType()
Retrieve the property type.
|
Object |
getValue(Object instance)
Retrieve the property value.
|
Method |
getWriteMethod() |
boolean |
isReadable()
Determine if the property is readable.
|
boolean |
isWritable()
Determine if the property is writable.
|
void |
setValue(Object instance,
Object value)
Modify the property value.
|
String getName()
Class<?> getType()
<A extends Annotation> A findAnnotation(Class<A> annotationClass)
A
- class type of the annotation classannotationClass
- annotation classboolean isReadable()
true
when readable, else false
Object getValue(Object instance)
instance
- bean that contains the propertyboolean isWritable()
true
when writable, else false
void setValue(Object instance, Object value)
instance
- bean that contains the propertyvalue
- the new property valueMethod getReadMethod()
Method getWriteMethod()
Copyright © 2015–2017 42 BV. All rights reserved.