org.apache.axis.types
Class Time
java.lang.Object
org.apache.axis.types.Time
- java.io.Serializable
public class Time
extends java.lang.Object
implements java.io.Serializable
Class that represents the xsd:time XML Schema type
Time(Calendar value) - Initialize with a Calender, year month and date are ignored
|
Time(String value) - Converts a string formatted as HH:mm:ss[.SSS][+/-offset]
|
boolean | equals(Object obj)
|
Calendar | getAsCalendar() - return the time as a calendar: ignore the year, month and date fields
|
int | hashCode() - Returns the hashcode of the underlying calendar.
|
void | setTime(Calendar date) - set the time; ignore year, month, date
|
void | setTime(Date date) - set the time from a date instance
|
String | toString() - stringify method returns the time as it would be in GMT, only accurate to the
second...millis probably get lost.
|
Time
public Time(Calendar value)
Initialize with a Calender, year month and date are ignored
Time
public Time(String value)
throws NumberFormatException
Converts a string formatted as HH:mm:ss[.SSS][+/-offset]
equals
public boolean equals(Object obj)
getAsCalendar
public Calendar getAsCalendar()
return the time as a calendar: ignore the year, month and date fields
- calendar value; may be null
hashCode
public int hashCode()
Returns the hashcode of the underlying calendar.
setTime
public void setTime(Calendar date)
set the time; ignore year, month, date
setTime
public void setTime(Date date)
set the time from a date instance
toString
public String toString()
stringify method returns the time as it would be in GMT, only accurate to the
second...millis probably get lost.
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.