Class DOFObject

java.lang.Object
org.eclnt.ccaddons.dof.DOFObject

public class DOFObject extends Object
Data object instance.
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 Details

  • Method Details

    • getObjectType

      public DOFObjectType getObjectType()
    • getBean

      public Object getBean()
      Bean that is managed within the DOF object. Only is used if the object type is a bean based object type (see DOFObjectType.getIsBean().
    • setBean

      public void setBean(Object bean)
    • 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

      public void setPropertyValue(String propertyId, Object value)
      Sets the property value.
    • getPropertyValue

      public Object getPropertyValue(String propertyId)
      Gets the property value.
    • isDirty

      public boolean isDirty()
      Indicator that object was updated via setPropertyValue(String, Object).
    • resetDirty

      public void resetDirty()
    • getStatus

      public DOFObjectStatus getStatus()
      Returns the validation status of this instance.
    • createClone

      public DOFObject createClone()
      Creates a clone of this object.
    • takeOverData

      public void takeOverData(DOFObject instance)
      Takes over all property values into the instances passed as parametner.