org.apache.axis.types

Class Time

Implemented Interfaces:
java.io.Serializable

public class Time
extends java.lang.Object
implements java.io.Serializable

Class that represents the xsd:time XML Schema type
See Also:
Serialized Form

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

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.

Constructor Details

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]

Method Details

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 © 2005 Apache Web Services Project. All Rights Reserved.