|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.joda.beans.MapMetaProperty<T>
public class MapMetaProperty<T>
A meta-property using a Map for storage.
This meta-property uses a Map instead of a JavaBean to store the property.
| Constructor Summary | |
|---|---|
MapMetaProperty(String propertyName)
Constructor. |
|
| Method Summary | |
|---|---|
Class<Map<String,T>> |
beanClass()
Get the type of the bean represented as a Class. |
Property<Map<String,T>,T> |
createProperty(Map<String,T> bean)
Creates a property that binds this meta property to a specific bean. |
T |
get(Map<String,T> bean)
Gets the value of the bound property for the provided bean. |
String |
name()
Gets the property name. |
Class<T> |
propertyClass()
Get the type of the property represented as a Class. |
ReadWriteProperty |
readWrite()
Gets whether the property is read-write, read-only or write-only. |
void |
set(Map<String,T> 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapMetaProperty(String propertyName)
propertyName - the property name| Method Detail |
|---|
public Property<Map<String,T>,T> createProperty(Map<String,T> bean)
createProperty in interface MetaProperty<Map<String,T>,T>bean - the bean to create the bound property for
public String name()
name in interface MetaProperty<Map<String,T>,T>public Class<T> propertyClass()
propertyClass in interface MetaProperty<Map<String,T>,T>public Class<Map<String,T>> beanClass()
beanClass in interface MetaProperty<Map<String,T>,T>public ReadWriteProperty readWrite()
readWrite in interface MetaProperty<Map<String,T>,T>public T get(Map<String,T> 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<Map<String,T>,T>bean - the bean to query, not null
UnsupportedOperationException - if the property is write-only
public void set(Map<String,T> 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<Map<String,T>,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 | ||||||||