|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.joda.beans.StandardMetaBean<B>
B - the type of the beanpublic final class StandardMetaBean<B extends Bean<B>>
A standard meta-bean implementation.
This is the standard implementation of a meta-bean.
It requires that the bean implements Bean and has a no-arguments constructor.
| Method Summary | ||
|---|---|---|
Class<B> |
beanClass()
Get the type of the bean represented as a Class. |
|
Bean<B> |
createBean()
Creates a new instance of the bean represented by this meta bean. |
|
Map<String,Property<B,?>> |
createPropertyMap(B bean)
Creates a map of properties for the specified bean. |
|
MetaProperty<B,?> |
metaProperty(String propertyName)
Gets a meta property by name. |
|
Map<String,MetaProperty<B,?>> |
metaPropertyMap()
Gets the map of meta properties, keyed by property name. |
|
String |
name()
Gets the bean name, which is normally the fully qualified class name of the bean. |
|
static
|
of(Class<B> beanClass)
Factory to create a meta-bean avoiding duplicate generics. |
|
String |
toString()
Returns a string that summarizes the property. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static <B extends Bean<B>> StandardMetaBean<B> of(Class<B> beanClass)
beanClass - the bean class, not nullpublic Bean<B> createBean()
MetaBean
createBean in interface MetaBean<B extends Bean<B>>public Map<String,Property<B,?>> createPropertyMap(B bean)
MetaBean
createPropertyMap in interface MetaBean<B extends Bean<B>>bean - the bean to create the map for, not null
public String name()
MetaBean
name in interface MetaBean<B extends Bean<B>>public Class<B> beanClass()
MetaBeanClass.
beanClass in interface MetaBean<B extends Bean<B>>public MetaProperty<B,?> metaProperty(String propertyName)
MetaBean
metaProperty in interface MetaBean<B extends Bean<B>>propertyName - the property name to retrieve, null throws NoSuchElementException
public Map<String,MetaProperty<B,?>> metaPropertyMap()
MetaBean
metaPropertyMap in interface MetaBean<B extends Bean<B>>public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||