Class DateValue

  • All Implemented Interfaces:
    Peer

    public final class DateValue
    extends Content
    An element that creates a unit of data content representing a date conforming to a subset of ISO 8601 format. date-data is PCDATA that obeys the following rules: the content must conform to the date formats in the profile of [ISO8601] described in XFA Specification "XFA Date and Time Formats" (see [XFA-DATETIME]). This profile describes a useful subset of [ISO8601] that reduces complexity and potential for error, while still conforming to the [ISO8601] standard. © Copyright
    • Constructor Detail

      • DateValue

        public DateValue​(Element parent,
                         Node prevSibling)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object object)
        Description copied from class: Content
        Equals is a helper function that returns whether two Contents are equal (case-sensitive, and considering the null state of both nodes).
        Overrides:
        equals in class Content
        Parameters:
        object - the content node to compare.
        Returns:
        true if the content nodes are equal.
      • hashCode

        public int hashCode()
        Description copied from class: Content
        Returns a hash code value for the object. This method is unsupported.
        Overrides:
        hashCode in class Content
      • getValue

        public java.lang.String getValue()
        Return the current date value as a String
        Returns:
        the date value as a string.
      • setValue

        public void setValue​(java.lang.String dateValue)
        Set the current date value from a String
        Parameters:
        dateValue - - provided as a String
      • toString

        public java.lang.String toString()
        cast the current value to a String. This operator allows us to place an DateValueobject in any context which allows a String.
        Overrides:
        toString in class Content
        Returns:
        the date value as a String.