Package ca.uhn.fhir.model.primitive

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


    }
    if (mySinceParamIndex != null) {
      String[] sinceValues = theParameterValues.remove(Constants.PARAM_SINCE);
      if (sinceValues.length > 0 && StringUtils.isNotBlank(sinceValues[0])) {
        try {
          args[mySinceParamIndex] = new InstantDt(sinceValues[0]);
        } catch (DataFormatException e) {
          throw new InvalidRequestException("Invalid _since parameter value: " + sinceValues[0]);
        }
      }
    }
View Full Code Here


  private InstantDt getInstantFromMetadataOrNullIfNone(Map<ResourceMetadataKeyEnum, Object> theResourceMetadata, ResourceMetadataKeyEnum 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

          } else {
            throw new InternalErrorException("Server did not provide a VERSION_ID in the resource metadata for resource with ID " + resId);
          }
        }

        InstantDt published = getInstantFromMetadataOrNullIfNone(next.getResourceMetadata(), ResourceMetadataKeyEnum.PUBLISHED);
        if (published == null) {
          entry.getPublished().setToCurrentTimeInLocalTimeZone();
        } else {
          entry.setPublished(published);
        }

        InstantDt updated = getInstantFromMetadataOrNullIfNone(next.getResourceMetadata(), ResourceMetadataKeyEnum.UPDATED);
        if (updated != null) {
          entry.setUpdated(updated);
        }

        boolean haveQ = false;
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 setTimestampWithMillisPrecision( Date theDate) {
    myTimestamp = new InstantDt(theDate);
    return this;
  }
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

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

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

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

     *
     * </p>
   */
  public InstantDt getEnd() { 
    if (myEnd == null) {
      myEnd = new InstantDt();
    }
    return myEnd;
  }
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.