Class TimeValue

All Implemented Interfaces:
Peer

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

    • TimeValue

      public TimeValue(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
    • getScriptTable

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

      public String getValue()
      Get the time stored in this element
      Returns:
      the time string.
    • setValue

      public void setValue(String sText)
      Set the time value within this element
      Parameters:
      sText - a string to set/replace the time stored in this element
    • toString

      public String toString()
      Cast this element to a String. This allows this object to be used in contexts where a string is expected without needing to explicitly call getValue().
      Overrides:
      toString in class Content
      Returns:
      the time value.