public class BeanProperty extends Object implements AccessibleProperty
| Constructor and Description |
|---|
BeanProperty(String name,
MethodDescriptor readMethod,
MethodDescriptor writeMethod) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object bean) |
TypeDescriptor |
getDeclaringType() |
String |
getName() |
MethodDescriptor |
getReadMethod() |
TypeDescriptor |
getType() |
MethodDescriptor |
getWriteMethod() |
boolean |
isReadable() |
boolean |
isReadableFrom(TypeDescriptor typeDescriptor) |
boolean |
isWritable() |
boolean |
isWritableFrom(TypeDescriptor typeDescriptor) |
void |
set(Object bean,
Object value) |
public BeanProperty(String name, MethodDescriptor readMethod, MethodDescriptor writeMethod)
public String getName()
getName in interface AccessiblePropertypublic boolean isReadable()
isReadable in interface AccessiblePropertypublic boolean isWritable()
isWritable in interface AccessiblePropertypublic MethodDescriptor getReadMethod()
public MethodDescriptor getWriteMethod()
public void set(Object bean, Object value)
set in interface AccessiblePropertypublic Object get(Object bean)
get in interface AccessiblePropertypublic boolean isReadableFrom(TypeDescriptor typeDescriptor)
isReadableFrom in interface AccessiblePropertypublic boolean isWritableFrom(TypeDescriptor typeDescriptor)
isWritableFrom in interface AccessiblePropertypublic TypeDescriptor getDeclaringType()
public TypeDescriptor getType()
getType in interface AccessiblePropertyCopyright © 2017. All rights reserved.