|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.impl.BasicMetaProperty<Object>
org.joda.beans.impl.map.MapBeanMetaProperty
public class MapBeanMetaProperty
A meta-property using a MapBean for storage.
| Method Summary | |
|---|---|
List<Annotation> |
annotations()
Gets the annotations of the property. |
Property<Object> |
createProperty(Bean bean)
Creates a property that binds this meta-property to a specific bean. |
Object |
get(Bean bean)
Gets the value of the property for the specified bean. |
MetaBean |
metaBean()
Gets the meta-bean which owns this meta-property. |
static MapBeanMetaProperty |
of(MapBean mapBean,
String propertyName)
Factory to create a meta-property. |
Class<Object> |
propertyGenericType()
Gets the generic types of the property. |
Class<Object> |
propertyType()
Get the type of the property represented as a Class. |
PropertyReadWrite |
readWrite()
Gets whether the property is read-only, read-write or write-only. |
void |
set(Bean bean,
Object value)
Sets the value of the property on the specified bean. |
| Methods inherited from class org.joda.beans.impl.BasicMetaProperty |
|---|
annotation, equals, hashCode, name, put, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static MapBeanMetaProperty of(MapBean mapBean,
String propertyName)
mapBean - the MapBean, not nullpropertyName - the property name, not emptypublic Property<Object> createProperty(Bean bean)
MetaProperty
createProperty in interface MetaProperty<Object>createProperty in class BasicMetaProperty<Object>bean - the bean to create the property for, not null
public MetaBean metaBean()
MetaPropertyEach meta-property is fully owned by a single bean.
public Class<Object> propertyType()
MetaPropertyClass.
public Class<Object> propertyGenericType()
MetaPropertyThis provides access to the generic type declared in the source code.
public PropertyReadWrite readWrite()
MetaProperty
public List<Annotation> annotations()
MetaProperty
public Object get(Bean bean)
MetaProperty
For a standard JavaBean, this is equivalent to calling getFoo() on the bean.
Alternate implementations may perform any logic to obtain the value.
bean - the bean to query, not null
public void set(Bean bean,
Object value)
MetaProperty
For a standard JavaBean, this is equivalent to calling setFoo() on the bean.
Alternate implementations may perform any logic to change the value.
bean - the bean to update, not nullvalue - the value to set into the property on the specified bean, may be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||