| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.idoox.wasp.serialization.xsdbuiltin.DateTimeBase
org.idoox.wasp.serialization.xsdbuiltin.Time
The class represents xsd time type.
| Field Summary | 
| Fields inherited from class org.idoox.wasp.serialization.xsdbuiltin.DateTimeBase | 
| isNegative, timeZone | 
| Constructor Summary | |
| Time(java.util.Date date)Constructor, initializes object. | |
| Time(int hour,
     int min,
     java.math.BigDecimal sec,
     TimeZone timeZone)Constructor. | |
| Time(java.lang.String time)Constructor that initializes this object. | |
| Method Summary | |
|  boolean | equals(java.lang.Object o)Equals based on hour, min, sec and DateTimeBasevalues. | 
|  int | getHour()Returns hour member of this object. | 
|  int | getMin()Deprecated. Use getMinute()instead. | 
|  int | getMinute()Returns value of minute of this object. | 
|  java.math.BigDecimal | getSec()Deprecated. Use getSecond()instead. | 
|  java.math.BigDecimal | getSecond()Returns second value of this object. | 
|  int | hashCode() | 
|  void | setHour(int hour)Sets hour to the given value. | 
|  void | setMinute(int min)Sets minute to the given value. | 
|  void | setParams(java.util.Date date)Sets parameters of this object to the given java.util.Dateobject. | 
|  void | setParams(int hour,
          int min,
          java.math.BigDecimal sec,
          TimeZone timeZone)Sets parameters of this object. | 
|  void | setSecond(java.math.BigDecimal sec)Sets seconds to the given value. | 
|  java.util.Date | toJavaUtilDate()Converts parameters of this object to the java.util.Date Object. | 
|  java.lang.String | toString()Deserializes this object to XSD string that represents date. | 
| Methods inherited from class org.idoox.wasp.serialization.xsdbuiltin.DateTimeBase | 
| getTimeZone, hasNegativeValue, inputMonth, outputMonth, setDefaultTimeZone, setParams | 
| Methods inherited from class java.lang.Object | 
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public Time(int hour,
            int min,
            java.math.BigDecimal sec,
            TimeZone timeZone)
     throws DateTimeException
hour - a value of hour.min - a value of minute.sec - a value of second.timeZone - a value of time zone. It may be null.
DateTimeException - thrown when parameters are invalid.
public Time(java.lang.String time)
     throws DateTimeException
time - the time string representation.
DateTimeException - thrown when parameters are invalid.public Time(java.util.Date date)
java.util.Date object.
 Year, month, day are ignored.
 The DateTime object is being created with TimeZone 00:00 and other parameters
 got from a given java.util.Date object.
date - a date value to set.| Method Detail | 
public void setParams(int hour,
                      int min,
                      java.math.BigDecimal sec,
                      TimeZone timeZone)
               throws DateTimeException
hour - a value of hour.min - a value of minute.sec - a value of second.timeZone - a value of time zone. It may be null.
DateTimeException - thrown when parameters are invalid.public void setParams(java.util.Date date)
java.util.Date object.
 Year, month, day are ignored.
 The object is being created with TimeZone 00:00 and other parameters
 got from a given java.util.Date object.
date - a date value to set.public java.util.Date toJavaUtilDate()
public int getHour()
public int getMin()
getMinute() instead.
public int getMinute()
public java.math.BigDecimal getSec()
getSecond() instead.
public java.math.BigDecimal getSecond()
public void setHour(int hour)
hour - the given hour to set to.public void setMinute(int min)
min - the given minute to set to.public void setSecond(java.math.BigDecimal sec)
sec - the given seconds value to set to.public java.lang.String toString()
public boolean equals(java.lang.Object o)
DateTimeBase values.
public int hashCode()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||