|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.joda.beans.DescriptorMetaProperty<B,T>
public class DescriptorMetaProperty<B,T>
A property is a field on a bean that can typically be called via get/set.
| Constructor Summary | |
|---|---|
DescriptorMetaProperty(Class<B> beanType,
String propertyName)
Constructor. |
|
| Method Summary | |
|---|---|
Property<B,T> |
createProperty(B bean)
Creates a property that binds this meta property to a specific bean. |
T |
get(B bean)
Gets the value of the bound property for the provided bean. |
Class<B> |
getBeanType()
Get the type of the bean represented as a Class. |
String |
getName()
Gets the property name. |
ReadWriteProperty |
getReadWrite()
Gets whether the property is read-write, read-only or write-only. |
Class<T> |
getType()
Get the type of the property represented as a Class. |
void |
set(B bean,
T value)
Sets the value of the bound property on the provided bean. |
String |
toString()
Returns a debugging string. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DescriptorMetaProperty(Class<B> beanType,
String propertyName)
beanType - the bean typepropertyName - the property name| Method Detail |
|---|
public Property<B,T> createProperty(B bean)
createProperty in interface MetaProperty<B,T>bean - the bean to create the bound property for
public String getName()
getName in interface MetaProperty<B,T>public Class<T> getType()
getType in interface MetaProperty<B,T>public Class<B> getBeanType()
getBeanType in interface MetaProperty<B,T>public ReadWriteProperty getReadWrite()
getReadWrite in interface MetaProperty<B,T>public T get(B bean)
This is the equivalent to calling getFoo() on the bean itself.
However some implementations of this interface may not require an actual get method.
get in interface MetaProperty<B,T>bean - the bean to query, not null
UnsupportedOperationException - if the property is write-only
public void set(B bean,
T value)
This is the equivalent to calling setFoo() on the bean itself.
However some implementations of this interface may not require an actual set method.
set in interface MetaProperty<B,T>bean - the bean to update, not nullvalue - the value to set into the property on the bound bean
UnsupportedOperationException - if the property is read-onlypublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||