|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.joda.property.impl.AbstractModelElement | +--org.joda.property.impl.AbstractProxyBean
Standard implementation of a Bean. This class does not implement the nice domain specific methods, but can be subclassed to do so.
Nested Class Summary |
Nested classes inherited from class org.joda.property.Bean |
Bean.Internal |
Constructor Summary | |
AbstractProxyBean()
Constructor. |
Method Summary | |
java.lang.Object |
cloneDeep()
Deep clone the bean. |
Bean |
cloneDeep(IdentityBasedHashMap clonedObjects)
Clone this bean avoiding recursion. |
boolean |
equals(java.lang.Object object)
Equals is implemented to perform a deep equality check on all properties. |
java.lang.Class |
getBeanType()
Get the bean's type. |
java.lang.String |
getIdentifier()
Get a unique identifier for this object |
Property |
getProperty(java.lang.String key)
Get a Property object by name. |
java.util.Map |
getPropertyMap()
Get the Map of Property objects. |
protected Bean |
getThis()
Get 'this'. |
int |
hashCode()
Get the hashCode for the bean. |
void |
initBeanCreated(BeanInit init)
Initialize after the constructor |
void |
setIdentifier(java.lang.String id)
Set a unique identifier for this object |
java.lang.String |
toString()
Get a debug string for the property. |
Methods inherited from class org.joda.property.impl.AbstractModelElement |
getAttribute, getAttributeCount, getAttributeMap, setAttribute |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.joda.property.ModelElement |
getAttribute, getAttributeCount, getAttributeMap, setAttribute |
Constructor Detail |
public AbstractProxyBean()
Method Detail |
public void initBeanCreated(BeanInit init)
initBeanCreated
in interface InitializableBean
public java.lang.Class getBeanType()
Bean
getBeanType
in interface Bean
Bean.getBeanType()
protected Bean getThis()
public java.lang.String getIdentifier()
public void setIdentifier(java.lang.String id)
public java.util.Map getPropertyMap()
Bean
getPropertyMap
in interface Bean
Bean.getPropertyMap()
public Property getProperty(java.lang.String key)
Bean
getProperty
in interface Bean
key
- the name of the property to obtain
Bean.getProperty(String)
public boolean equals(java.lang.Object object)
equals
in interface Bean
equals
in class java.lang.Object
object
- the object to check against
public int hashCode()
The effect of this is inefficient HashMaps. The HashMap will fall back to using equals() when the hashCode() is the same. Thus, as long as the objects are not changed, the Map.get() should work.
hashCode
in interface Bean
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.Object cloneDeep()
cloneDeep
in interface Bean
Object.clone()
public Bean cloneDeep(IdentityBasedHashMap clonedObjects)
Bean.Internal
cloneDeep
in interface Bean.Internal
clonedObjects
- the map of original element to cloned elementBean.Internal#cloneDeep(IdentityBasedHashMap)
public java.lang.String toString()
toString
in interface Bean
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 |