Class Time

java.lang.Object
org.apache.axis.types.Time
All Implemented Interfaces:
Serializable

public class Time extends Object implements Serializable
Class that represents the xsd:time XML Schema type
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Time(String value)
    Converts a string formatted as HH:mm:ss[.SSS][+/-offset]
    Time(Calendar value)
    Initialize with a Calender, year month and date are ignored
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    return the time as a calendar: ignore the year, month and date fields
    int
    Returns the hashcode of the underlying calendar.
    void
    set the time; ignore year, month, date
    void
    setTime(Date date)
    set the time from a date instance
    stringify method returns the time as it would be in GMT, only accurate to the second...millis probably get lost.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • getAsCalendar

      public Calendar getAsCalendar()
      return the time as a calendar: ignore the year, month and date fields
      Returns:
      calendar value; may be null
    • setTime

      public void setTime(Calendar date)
      set the time; ignore year, month, date
      Parameters:
      date -
    • setTime

      public void setTime(Date date)
      set the time from a date instance
      Parameters:
      date -
    • toString

      public String toString()
      stringify method returns the time as it would be in GMT, only accurate to the second...millis probably get lost.
      Overrides:
      toString in class Object
      Returns:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Returns the hashcode of the underlying calendar.
      Overrides:
      hashCode in class Object
      Returns:
      an int value