org.idoox.wasp.serialization.xsdbuiltin
Class TimeZone

java.lang.Object
  extended byorg.idoox.wasp.serialization.xsdbuiltin.TimeZone
All Implemented Interfaces:
java.io.Serializable

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

The class represents xsd date type.

Note that XML Schema timezones does not support timezone ids and daylight savings timezone ids but Java support both these concepts.

See Also:
Serialized Form
Component:
Core

Constructor Summary
TimeZone(int minOffset)
          Constructor.
TimeZone(int hourOffset, int minOffset)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          Equals base on time zone's offset.
 int hashCode()
           
 java.util.TimeZone toJavaUtilTimeZone()
          Returns the java.util.TimeZone object that is equivalent to this object.
 java.lang.String toString()
          Deserializes this object to XSD string that represents timezone.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeZone

public TimeZone(int hourOffset,
                int minOffset)
Constructor. Initializes timeZone object.

Parameters:
hourOffset - offset from UTC time in hour.
minOffset - offset from UTC time in minute.

TimeZone

public TimeZone(int minOffset)
Constructor. Initializes timeZone object. Absolute value of parameter minOffset may be greater than 60.

Parameters:
minOffset - offset from UTC time in minute.
Method Detail

toJavaUtilTimeZone

public java.util.TimeZone toJavaUtilTimeZone()
Returns the java.util.TimeZone object that is equivalent to this object.

Returns:
java.util.TimeZone object that is equivalent to this object.

toString

public java.lang.String toString()
Deserializes this object to XSD string that represents timezone.

Returns:
String time zone represent of the object.

equals

public boolean equals(java.lang.Object o)
Equals base on time zone's offset.


hashCode

public int hashCode()