|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.slim3.commons.beanutil.PropertyDesc
public final class PropertyDesc
This class describes a property.
Method Summary | |
---|---|
Class<?> |
getBeanClass()
Returns the bean class. |
Field |
getField()
Returns the field. |
ParameterizedClassDesc |
getParameterizedClassDesc()
Returns the parameterized class descriptor. |
Class<?> |
getPropertyClass()
Returns the property class |
String |
getPropertyName()
Returns the property name. |
Method |
getReadMethod()
Returns the read method. |
Object |
getValue(Object bean)
Returns the property value. |
Method |
getWriteMethod()
Returns the write method. |
boolean |
isReadable()
Determines if this property is readable. |
boolean |
isWritable()
Determines if this property is writable. |
void |
setValue(Object bean,
Object value)
Sets the property value to the bean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getPropertyName()
public Class<?> getPropertyClass()
public Class<?> getBeanClass()
public Method getReadMethod()
public boolean isReadable()
public Method getWriteMethod()
public boolean isWritable()
public Field getField()
public Object getValue(Object bean) throws PropertyNotReadableRuntimeException, PropertyCanNotReadRuntimeException
bean
- the bean
PropertyNotReadableRuntimeException
- if the property is not readable
PropertyCanNotReadRuntimeException
- if an exception is encountered while trying to read the
propertypublic void setValue(Object bean, Object value) throws PropertyNotWritableRuntimeException, PropertyCanNotWriteRuntimeException
bean
- the beanvalue
- the value
PropertyNotWritableRuntimeException
- if the property is not writable
PropertyCanNotWriteRuntimeException
- if an other exception is encountered while trying to write
value to the propertypublic ParameterizedClassDesc getParameterizedClassDesc()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |