public boolean equals(ValuedDataObject otherObject) {

    if (!otherObject
        .getItemSubjectRef()
        .getStructureRef()
        .equals(this.itemSubjectRef.getStructureRef())) return false;
    if (!otherObject.getId().equals(this.id)) return false;
    if (!otherObject.getName().equals(this.name)) return false;
    if (!otherObject.getValue().equals(this.value.toString())) return false;

    return true;
  }
 public void setValues(ValuedDataObject otherElement) {
   super.setValues(otherElement);
   if (otherElement.getValue() != null) {
     setValue(otherElement.getValue());
   }
 }