public abstract class BasicMetaBean extends Object implements MetaBean
MetaBean.| Constructor and Description |
|---|
BasicMetaBean() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
<R> MetaProperty<R> |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbeanType, builder, metaPropertyMappublic BasicMetaBean()
public PropertyMap createPropertyMap(Bean bean)
MetaBeancreatePropertyMap in interface MetaBeanbean - the bean to create the map for, not nullpublic String beanName()
MetaBeanpublic int metaPropertyCount()
MetaBeanmetaPropertyCount in interface MetaBeanpublic boolean metaPropertyExists(String propertyName)
MetaBeanmetaPropertyExists in interface MetaBeanpropertyName - the property name to check, null returns falsepublic <R> MetaProperty<R> metaProperty(String propertyName)
MetaBeanmetaProperty in interface MetaBeanR - the property type, optional, enabling auto-castingpropertyName - the property name to retrieve, null throws NoSuchElementExceptionpublic 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 MetaBeanCopyright © 2007–2013 Joda.org. All rights reserved.