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.
|
Class<?> |
getType()
Retrieve the property type.
|
Object |
getValue(Object instance)
Retrieve the property value.
|
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)
annotationClass
- annotation classboolean isReadable()
true
when readable, else false
Object getValue(Object instance)
instance
- bean that contains the propertyboolean isWritable()
true
when writable, else false
Copyright © 2015 42 BV. All Rights Reserved.