|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.impl.direct.DirectBean
public abstract class DirectBean
A bean implementation designed for use by the code generator.
It used to be mandatory for code generated beans to extend this class.
Now, beans can simply implement the Bean interface.
| Constructor Summary | |
|---|---|
DirectBean()
|
|
| Method Summary | ||
|---|---|---|
abstract DirectBean |
clone()
Clones this bean, returning an independent copy. |
|
|
property(String propertyName)
Gets a property by name. |
|
Set<String> |
propertyNames()
Gets the set of property names. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.joda.beans.Bean |
|---|
metaBean |
| Constructor Detail |
|---|
public DirectBean()
| Method Detail |
|---|
public <R> Property<R> property(String propertyName)
Bean
The base interface throws an exception if the name is not recognised.
By contrast, the DynamicBean subinterface creates the property on demand.
property in interface BeanR - the property type, optional, enabling auto-castingpropertyName - the property name to retrieve, not null
public Set<String> propertyNames()
Bean
propertyNames in interface Beanpublic abstract DirectBean clone()
BeanImplementations should covariantly return their own type.
clone in interface Beanclone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||