コード例 #1
0
 public int compareTo(Object obj, boolean caseInsensitive) {
   if (obj == null) {
     return -1;
   }
   if (caseInsensitive) ; // this is to avoid eclipse warning only.
   if (!(SoapNoteVo.class.isAssignableFrom(obj.getClass()))) {
     throw new ClassCastException(
         "A SoapNoteVo object cannot be compared an Object of type " + obj.getClass().getName());
   }
   SoapNoteVo compareObj = (SoapNoteVo) obj;
   int retVal = 0;
   if (retVal == 0) {
     if (this.getID_SoapNote() == null && compareObj.getID_SoapNote() != null) return -1;
     if (this.getID_SoapNote() != null && compareObj.getID_SoapNote() == null) return 1;
     if (this.getID_SoapNote() != null && compareObj.getID_SoapNote() != null)
       retVal = this.getID_SoapNote().compareTo(compareObj.getID_SoapNote());
   }
   return retVal;
 }
コード例 #2
0
  public Object clone() {
    if (this.isBusy) return this;
    this.isBusy = true;

    SoapNoteVo clone = new SoapNoteVo(this.id, this.version);

    if (this.authoringinformation == null) clone.authoringinformation = null;
    else
      clone.authoringinformation =
          (ims.core.vo.AuthoringInformationVo) this.authoringinformation.clone();
    clone.carecontext = this.carecontext;
    if (this.clinicalcontact == null) clone.clinicalcontact = null;
    else clone.clinicalcontact = (ims.core.vo.ClinicalContactShortVo) this.clinicalcontact.clone();
    clone.subjectivenote = this.subjectivenote;
    clone.objectivenote = this.objectivenote;
    clone.analysisnote = this.analysisnote;
    clone.plannote = this.plannote;
    if (this.clinicalnote == null) clone.clinicalnote = null;
    else clone.clinicalnote = (ims.core.vo.ClinicalNotesVo) this.clinicalnote.clone();
    if (this.areaofneed == null) clone.areaofneed = null;
    else clone.areaofneed = (ims.core.vo.lookups.AreaOfNeedCollection) this.areaofneed.clone();
    clone.isValidated = this.isValidated;

    this.isBusy = false;
    return clone;
  }