Class ConfDuration

All Implemented Interfaces:
Serializable, Cloneable, Comparable<ConfDuration>

public class ConfDuration extends ConfValue implements Cloneable, Serializable, Comparable<ConfDuration>
DATA_CONTAINER - Corresponds to the confspec xs:duration type.
See Also:
  • Constructor Details

    • ConfDuration

      public ConfDuration(ConfEObject o) throws ConfException
      Throws:
      ConfException
    • ConfDuration

      public ConfDuration(int year, int month, int day, int hour, int min, int sec, int micro)
    • ConfDuration

      public ConfDuration(String str)
  • Method Details

    • getYear

      public int getYear()
    • getMonth

      public int getMonth()
    • getDay

      public int getDay()
    • getHour

      public int getHour()
    • getMin

      public int getMin()
    • getSec

      public int getSec()
    • getMicro

      public int getMicro()
    • equals

      public boolean equals(Object o)
      Description copied from class: ConfValue
      Determine if two ConfValue are equal. In general, ConfObjects are equal if the components they consist of are equal.
      Specified by:
      equals in class ConfValue
      Parameters:
      o - The object to compare to.
      Returns:
      true if the objects are identical.
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class ConfValue
    • toString

      public String toString()
      Specified by:
      toString in class ConfValue
      Returns:
      the printable representation of the object.
    • encode

      public ConfEObject encode()
      Description copied from class: ConfValue
      encode value.
      Specified by:
      encode in class ConfValue
    • getCalendar

      public GregorianCalendar getCalendar()
    • compareTo

      public int compareTo(ConfDuration o)
      Specified by:
      compareTo in interface Comparable<ConfDuration>