public class MethodProperty extends GenericProperty
A MethodProperty
is a Property
which is accessed
through accessor methods (setX, getX). It is possible to have a
MethodProperty
which has only setter, only getter, or both. It
is not possible to have a MethodProperty
which has neither
setter nor getter.
Modifier and Type | Field and Description |
---|---|
private java.beans.PropertyDescriptor |
property |
private boolean |
readable |
private boolean |
writable |
Constructor and Description |
---|
MethodProperty(java.beans.PropertyDescriptor property) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.Object object) |
boolean |
isReadable() |
boolean |
isWritable() |
void |
set(java.lang.Object object,
java.lang.Object value) |
getActualTypeArguments
private final java.beans.PropertyDescriptor property
private final boolean readable
private final boolean writable
public void set(java.lang.Object object, java.lang.Object value) throws java.lang.Exception
public boolean isWritable()
isWritable
in class Property
public boolean isReadable()
isReadable
in class Property