Package org.eclnt.ccaddons.dof
Class DOFObject
java.lang.Object
org.eclnt.ccaddons.dof.DOFObject
Data object instance.
The data object is linked with its
The data object holds the data of the properties - use
When being edited the instance holds a validation status which you can retrieve with
The data object is linked with its
DOFObjectType
- which holds all
the meta data that is available.
The data object holds the data of the properties - use
setPropertyValue(String, Object)
and getPropertyValue(String)
.
When being edited the instance holds a validation status which you can retrieve with
getStatus()
.-
Constructor Summary
ConstructorsConstructorDescriptionDOFObject
(DOFObjectType objectType) DOFObject
(DOFObjectType objectType, Object bean) -
Method Summary
Modifier and TypeMethodDescriptionCreates a clone of this object.getBean()
Bean that is managed within the DOF object.getPropertyValue
(String propertyId) Gets the property value.Returns the validation status of this instance.boolean
isDirty()
Indicator that object was updated viasetPropertyValue(String, Object)
.boolean
isNew()
Indicdates that this instance is a new object, i.e. it was not yet persisted.void
void
void
setNew
(boolean new1) void
setPropertyValue
(String propertyId, Object value) Sets the property value.void
takeOverData
(DOFObject instance) Takes over all property values into the instances passed as parametner.
-
Constructor Details
-
DOFObject
-
DOFObject
-
-
Method Details
-
getObjectType
-
getBean
Bean that is managed within the DOF object. Only is used if the object type is a bean based object type (seeDOFObjectType.getIsBean()
. -
setBean
-
isNew
public boolean isNew()Indicdates that this instance is a new object, i.e. it was not yet persisted. -
setNew
public void setNew(boolean new1) -
setPropertyValue
Sets the property value. -
getPropertyValue
Gets the property value. -
isDirty
public boolean isDirty()Indicator that object was updated viasetPropertyValue(String, Object)
. -
resetDirty
public void resetDirty() -
getStatus
Returns the validation status of this instance. -
createClone
Creates a clone of this object. -
takeOverData
Takes over all property values into the instances passed as parametner.
-