|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.impl.BasicMetaBean
org.joda.beans.impl.direct.DirectMetaBean
public abstract class DirectMetaBean
A meta-bean implementation designed for use by the code generator.
| Constructor Summary | |
|---|---|
DirectMetaBean()
|
|
| Method Summary | ||
|---|---|---|
|
metaProperty(String propertyName)
Gets a meta-property by name. |
|
protected MetaProperty<?> |
metaPropertyGet(String propertyName)
Gets the meta-property by name. |
|
protected Object |
propertyGet(Bean bean,
String propertyName,
boolean quiet)
Gets the value of the property. |
|
protected void |
propertySet(Bean bean,
String propertyName,
Object value,
boolean quiet)
Sets the value of the property. |
|
protected void |
validate(Bean bean)
Validates the values of the properties. |
|
| Methods inherited from class org.joda.beans.impl.BasicMetaBean |
|---|
beanName, createPropertyMap, metaPropertyCount, metaPropertyExists, metaPropertyIterable, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.joda.beans.MetaBean |
|---|
beanType, builder, metaPropertyMap |
| Constructor Detail |
|---|
public DirectMetaBean()
| Method Detail |
|---|
public <R> MetaProperty<R> metaProperty(String propertyName)
MetaBean
The base interface throws an exception if the name is not recognised.
By contrast, the DynamicMetaBean subinterface creates the property on demand.
metaProperty in interface MetaBeanmetaProperty in class BasicMetaBeanR - the property type, optional, enabling auto-castingpropertyName - the property name to retrieve, not null
protected MetaProperty<?> metaPropertyGet(String propertyName)
This implementation returns null, and must be overridden in subclasses.
propertyName - the property name, not null
protected Object propertyGet(Bean bean,
String propertyName,
boolean quiet)
bean - the bean to query, not nullpropertyName - the property name, not nullquiet - true to return null if unable to read
NoSuchElementException - if the property name is invalid
protected void propertySet(Bean bean,
String propertyName,
Object value,
boolean quiet)
bean - the bean to update, not nullpropertyName - the property name, not nullvalue - the value of the property, may be nullquiet - true to take no action if unable to write
NoSuchElementException - if the property name is invalidprotected void validate(Bean bean)
bean - the bean to validate, not null
RuntimeException - if a property is invalid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||