Пример #1
0
  public ResourceHistoryTable toHistory(ResourceHistoryTable theResourceHistoryTable) {
    ResourceHistoryTable retVal =
        theResourceHistoryTable != null ? theResourceHistoryTable : new ResourceHistoryTable();

    retVal.setResourceId(myId);
    retVal.setResourceType(myResourceType);
    retVal.setVersion(myVersion);

    retVal.setTitle(getTitle());
    retVal.setPublished(getPublished());
    retVal.setUpdated(getUpdated());
    retVal.setEncoding(getEncoding());
    retVal.setFhirVersion(getFhirVersion());
    retVal.setResource(getResource());
    retVal.setDeleted(getDeleted());
    retVal.setForcedId(getForcedId());

    retVal.getTags().clear();

    retVal.setHasTags(isHasTags());
    if (isHasTags()) {
      for (ResourceTag next : getTags()) {
        retVal.addTag(next);
      }
    }

    return retVal;
  }
Пример #2
0
  public ResourceHistoryTable toHistory() {
    ResourceHistoryTable retVal = new ResourceHistoryTable();

    retVal.setResourceId(myId);
    retVal.setResourceType(myResourceType);
    retVal.setVersion(myVersion);

    retVal.setTitle(getTitle());
    retVal.setPublished(getPublished());
    retVal.setUpdated(getUpdated());
    retVal.setEncoding(getEncoding());
    retVal.setFhirVersion(getFhirVersion());
    retVal.setResource(getResource());
    retVal.setDeleted(getDeleted());
    retVal.setForcedId(getForcedId());

    for (ResourceTag next : getTags()) {
      retVal.addTag(next);
    }

    return retVal;
  }