|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.impl.BasicMetaBean
public abstract class BasicMetaBean
Basic implementation of MetaBean.
| Constructor Summary | |
|---|---|
BasicMetaBean()
|
|
| Method Summary | ||
|---|---|---|
String |
beanName()
Gets the bean name, which is normally the fully qualified class name of the bean. |
|
PropertyMap |
createPropertyMap(Bean bean)
Creates a map of properties for the specified bean. |
|
|
metaProperty(String propertyName)
Gets a meta-property by name. |
|
int |
metaPropertyCount()
Counts the number of properties. |
|
boolean |
metaPropertyExists(String propertyName)
Checks if a property exists. |
|
Iterable<MetaProperty<?>> |
metaPropertyIterable()
Gets an iterator of meta-properties. |
|
String |
toString()
Returns a string that summarises the meta-bean. |
|
| 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 BasicMetaBean()
| Method Detail |
|---|
public PropertyMap createPropertyMap(Bean bean)
MetaBean
createPropertyMap in interface MetaBeanbean - the bean to create the map for, not null
public String beanName()
MetaBean
beanName in interface MetaBeanpublic int metaPropertyCount()
MetaBean
metaPropertyCount in interface MetaBeanpublic boolean metaPropertyExists(String propertyName)
MetaBean
metaPropertyExists in interface MetaBeanpropertyName - the property name to check, null returns false
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 MetaBeanR - the property type, optional, enabling auto-castingpropertyName - the property name to retrieve, not null
public Iterable<MetaProperty<?>> metaPropertyIterable()
MetaBean
This method returns an Iterable, which is simpler than a Map.
As a result, implementations may be able to optimise, and so this method should be
preferred to MetaBean.metaPropertyMap() where a choice is possible.
metaPropertyIterable in interface MetaBeanpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||