|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Bean is the interface used to mark a class as a JavaBean. When using the proxy generation technique, each bean interface must extend this one. When coding classes, each bean must extend this interface.
A Bean contains a Map of Property objects. This map is dynamic and extensible. This permits applications to add data to a bean that the original designers did not think of. This is comparable to the ability to add an element of any name to a DOM object model.
A Bean also contains a Map of String attributes. This map allows additional arbitrary data to be attached to any bean. This corresponds to the XML attribute concept. One good use for attributes is to attach an error code to the bean which caused the error during validation.
Nested Class Summary | |
static interface |
Bean.Internal
Interface used during the cloning process. |
Method Summary | |
java.lang.Object |
cloneDeep()
Deep clone this property. |
boolean |
equals(java.lang.Object anotherObject)
Test to see if this property equal to another. |
java.lang.Class |
getBeanType()
Get the bean's type. |
Property |
getProperty(java.lang.String propertyName)
Get a Property object by name. |
java.util.Map |
getPropertyMap()
Get the Map of Property objects. |
int |
hashCode()
Get the hashCode for the property. |
java.lang.String |
toString()
Get a debugging string. |
Methods inherited from interface org.joda.property.ModelElement |
getAttribute, getAttributeCount, getAttributeMap, setAttribute |
Method Detail |
public java.util.Map getPropertyMap()
public Property getProperty(java.lang.String propertyName)
propertyName
- the name of the property to obtain
public java.lang.Class getBeanType()
public boolean equals(java.lang.Object anotherObject)
equals
in class java.lang.Object
anotherObject
- another object to compare this one to
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object cloneDeep()
public java.lang.String toString()
toString
in class java.lang.Object
|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |