org.apache.axis.types

Class Time

public class Time extends Object implements Serializable

Class that represents the xsd:time XML Schema type
Constructor Summary
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]
Method Summary
booleanequals(Object obj)
CalendargetAsCalendar()
return the time as a calendar: ignore the year, month and date fields
inthashCode()
Returns the hashcode of the underlying calendar.
voidsetTime(Calendar date)
set the time; ignore year, month, date
voidsetTime(Date date)
set the time from a date instance
StringtoString()
stringify method returns the time as it would be in GMT, only accurate to the second...millis probably get lost.

Constructor Detail

Time

public Time(Calendar value)
Initialize with a Calender, year month and date are ignored

Time

public Time(String value)
Converts a string formatted as HH:mm:ss[.SSS][+/-offset]

Method Detail

equals

public boolean equals(Object obj)

getAsCalendar

public Calendar getAsCalendar()
return the time as a calendar: ignore the year, month and date fields

Returns: calendar value; may be null

hashCode

public int hashCode()
Returns the hashcode of the underlying calendar.

Returns: an int value

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.

Returns:

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.