Class DateTimeValue

All Implemented Interfaces:
Peer

public final class DateTimeValue extends Content
An element that describes a unit of data content representing a date and time conforming to a subset of ISO 8601 format.
  • Constructor Details

    • DateTimeValue

      public DateTimeValue(Element parent, Node prevSibling)
  • Method Details

    • equals

      public boolean equals(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 String getValue()
      Return the current date/time value as a String
      Returns:
      the date/time value as a string.
    • getScriptTable

      public ScriptTable getScriptTable()
      Overrides:
      getScriptTable in class Content
    • setValue

      public void setValue(String dateTimeValue)
      Set the current date/time value from a String
      Parameters:
      dateTimeValue - date/time value provided as a String
    • toString

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