|
||||||||||
| 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()
|
|
|
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)
BeanEach bean consists of a known set of properties. This method checks whether there is a property with the specified name.
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()
BeanEach bean consists of a known set of properties. This method returns the known property names.
propertyNames in interface Beanpublic abstract DirectBean clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||