Package ca.uhn.fhir.model.primitive

Examples of ca.uhn.fhir.model.primitive.InstantDt


      }

      entry.getLinkSelf().setValue(b.toString());
    }

    InstantDt published = ResourceMetadataKeyEnum.PUBLISHED.get(theResource);
    if (published == null) {
      entry.getPublished().setToCurrentTimeInLocalTimeZone();
    } else {
      entry.setPublished(published);
    }

    InstantDt updated = ResourceMetadataKeyEnum.UPDATED.get(theResource);
    if (updated != null) {
      entry.setUpdated(updated);
    }

    InstantDt deleted = ResourceMetadataKeyEnum.DELETED_AT.get(theResource);
    if (deleted != null) {
      entry.setDeleted(deleted);
    }

    IdDt previous = ResourceMetadataKeyEnum.PREVIOUS_ID.get(theResource);
View Full Code Here


    private static InstantDt getInstantFromMetadataOrNullIfNone(Map<ResourceMetadataKeyEnum<?>, Object> theResourceMetadata, ResourceMetadataKeyEnum<InstantDt> theKey) {
      Object retValObj = theResourceMetadata.get(theKey);
      if (retValObj == null) {
        return null;
      } else if (retValObj instanceof Date) {
        return new InstantDt((Date) retValObj);
      } else if (retValObj instanceof InstantDt) {
        if (((InstantDt) retValObj).isEmpty()) {
          return null;
        } else {
          return (InstantDt) retValObj;
View Full Code Here

     * The time that the message was sent
     * </p>
   */
  public InstantDt getTimestamp() { 
    if (myTimestamp == null) {
      myTimestamp = new InstantDt();
    }
    return myTimestamp;
  }
View Full Code Here

     * <b>Definition:</b>
     * The time that the message was sent
     * </p>
   */
  public MessageHeader setTimestamp( Date theDate,  TemporalPrecisionEnum thePrecision) {
    myTimestamp = new InstantDt(theDate, thePrecision);
    return this;
  }
View Full Code Here

     * <b>Definition:</b>
     * The time that the message was sent
     * </p>
   */
  public MessageHeader setTimestampWithMillisPrecision( Date theDate) {
    myTimestamp = new InstantDt(theDate);
    return this;
  }
View Full Code Here

     *
     * </p>
   */
  public InstantDt getTimestamp() { 
    if (myTimestamp == null) {
      myTimestamp = new InstantDt();
    }
    return myTimestamp;
  }
View Full Code Here

     * <b>Definition:</b>
     *
     * </p>
   */
  public Expansion setTimestamp( Date theDate,  TemporalPrecisionEnum thePrecision) {
    myTimestamp = new InstantDt(theDate, thePrecision);
    return this;
  }
View Full Code Here

     * <b>Definition:</b>
     *
     * </p>
   */
  public Expansion setTimestampWithMillisPrecision( Date theDate) {
    myTimestamp = new InstantDt(theDate);
    return this;
  }
View Full Code Here

        entry.getLinkAlternate().setValue(linkSearch);
      }

    }

    InstantDt published = ResourceMetadataKeyEnum.PUBLISHED.get(theResource);
    if (published == null) {
      entry.getPublished().setToCurrentTimeInLocalTimeZone();
    } else {
      entry.setPublished(published);
    }

    InstantDt updated = ResourceMetadataKeyEnum.UPDATED.get(theResource);
    if (updated != null) {
      entry.setUpdated(updated);
    }

    InstantDt deleted = ResourceMetadataKeyEnum.DELETED_AT.get(theResource);
    if (deleted != null) {
      entry.setDeleted(deleted);
    }

    IdDt previous = ResourceMetadataKeyEnum.PREVIOUS_ID.get(theResource);
View Full Code Here

    return myLinkSelf;
  }

  public InstantDt getPublished() {
    if (myPublished == null) {
      myPublished = new InstantDt();
    }
    return myPublished;
  }
View Full Code Here

TOP

Related Classes of ca.uhn.fhir.model.primitive.InstantDt

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.