|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DynamicMetaBean
A dynamic meta-bean which works with DynamicBean.
A dynamic bean can have properties added or removed at any time. As such, there is a different meta-bean for each dynamic bean. The meta-bean allows meta-properties to be created on demand.
| Method Summary | ||
|---|---|---|
Class<? extends DynamicBean> |
beanType()
Get the type of the bean represented as a Class. |
|
BeanBuilder<? extends DynamicBean> |
builder()
Creates a bean builder that can be used to create an instance of this bean. |
|
|
metaProperty(String propertyName)
Gets a meta-property by name. |
|
void |
metaPropertyDefine(String propertyName,
Class<?> propertyType)
Defines a property for the bean. |
|
void |
metaPropertyRemove(String propertyName)
Removes a property by name. |
|
| Methods inherited from interface org.joda.beans.MetaBean |
|---|
beanName, createPropertyMap, metaPropertyCount, metaPropertyExists, metaPropertyIterable, metaPropertyMap |
| Method Detail |
|---|
BeanBuilder<? extends DynamicBean> builder()
All properties added to the builder will be created and appear in the result.
builder in interface MetaBeanUnsupportedOperationException - if the bean cannot be createdClass<? extends DynamicBean> beanType()
Class.
beanType in interface MetaBean<R> MetaProperty<R> metaProperty(String propertyName)
This will not throw an exception if the meta-property name does not exist. Whether a meta-property is immediately created or not is implementation dependent.
metaProperty in interface MetaBeanR - the property type, optional, enabling auto-castingpropertyName - the property name to retrieve, not null
void metaPropertyDefine(String propertyName,
Class<?> propertyType)
Some implementations will automatically add properties, in which case this method will have no effect.
propertyName - the property name to check, not empty, not nullpropertyType - the property type, not nullvoid metaPropertyRemove(String propertyName)
propertyName - the property name to remove, null ignored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||