Class FHIRPathDateValue

    • Field Detail

      • PARSER_FORMATTER

        public static final java.time.format.DateTimeFormatter PARSER_FORMATTER
    • Method Detail

      • isDateValue

        public boolean isDateValue()
        Description copied from interface: FHIRPathTemporalValue
        Indicates whether this FHIRPathTemporalValue is type compatible with FHIRPathDateValue
        Returns:
        true if this FHIRPathTemporalValue is type compatible with FHIRPathDateValue, otherwise false
      • date

        public java.time.temporal.TemporalAccessor date()
        The date value wrapped by this FHIRPathDateValue node
        Returns:
        the date value wrapped by this FHIRPathDateValue node
      • dateValue

        public static FHIRPathDateValue dateValue​(java.lang.String text)
        Static factory method for creating FHIRPathDateValue instances from a String value
        Parameters:
        text - the text that is parsed into a TemporalAccessor date value
        Returns:
        a new FHIRPathDateValue instance
      • dateValue

        public static FHIRPathDateValue dateValue​(java.time.temporal.TemporalAccessor date)
        Static factory method for creating FHIRPathDateValue instances from a TemporalAccessor date value
        Parameters:
        dateTime - the TemporalAccessor date value
        Returns:
        a new FHIRPathDateValue instance
      • dateValue

        public static FHIRPathDateValue dateValue​(java.lang.String path,
                                                  java.lang.String name,
                                                  java.time.temporal.TemporalAccessor date)
        Static factory method for creating named FHIRPathDateValue instances from a TemporalAccessor date value
        Parameters:
        path - the path of the FHIRPathNode
        name - the name
        dateTime - the TemporalAccessor date value
        Returns:
        a new named FHIRPathDateValue instance
      • builder

        public static FHIRPathDateValue.Builder builder​(java.time.temporal.TemporalAccessor date,
                                                        java.time.temporal.ChronoField precision)
        Static factory method for creating builder instances from a TemporalAccessor date value and a precision
        Parameters:
        date - the TemporalAccessor date value
        precision - the precision
        Returns:
        a new builder for building FHIRPathDateValue instances
      • equals

        public boolean equals​(java.lang.Object obj)
        Indicates whether the date value wrapped by this FHIRPathDateValue node is equal the parameter (or its primitive value)
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the other Object
        Returns:
        true if the date value wrapped by this FHIRPathDateValue node is equal the parameter (or its primitive value), otherwise false
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object