|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.idoox.wasp.serialization.xsdbuiltin.Duration
The class represents xsd duration type.
Constructor Summary | |
Duration(int year,
int month,
int day,
int hour,
int min,
java.math.BigDecimal sec,
boolean isNegative)
Constructor. |
|
Duration(java.lang.String duration)
Constructor that initializes this object. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Equals based on year, month, day, hour, min, sec and isNegative values. |
int |
getDay()
Returns day member of this object. |
int |
getHour()
Returns hour member of this object. |
int |
getMin()
Returns value of minute of this object. |
int |
getMinute()
Returns value of minute of this object. |
int |
getMonth()
Returns month member of this object. |
java.math.BigDecimal |
getSec()
Returns second value of this object. |
java.math.BigDecimal |
getSecond()
Returns second value of this object. |
int |
getYear()
Returns year member of this object. |
int |
hashCode()
|
boolean |
isNegative()
Returns whether this duration is negative. |
void |
setParams(int year,
int month,
int day,
int hour,
int min,
java.math.BigDecimal sec,
boolean isNegative)
Sets parameters of this object. |
java.lang.String |
toString()
Deserializes this object to XSD string that represents duration. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Duration(int year, int month, int day, int hour, int min, java.math.BigDecimal sec, boolean isNegative)
year
- a value of year.month
- a value of month.day
- a value of day.hour
- a value of hour.min
- a value of minute.sec
- a value of second.isNegative
- indicates that it is negative dateTime.public Duration(java.lang.String duration) throws DateTimeException
duration
- input String in XML Schema format.
DateTimeException
- thrown when parameters are invalid.Method Detail |
public void setParams(int year, int month, int day, int hour, int min, java.math.BigDecimal sec, boolean isNegative)
year
- a value of year.month
- a value of month.day
- a value of day.hour
- a value of hour.min
- a value of minute.sec
- a value of second.isNegative
- indicates that it is negative dateTime.public java.lang.String toString()
public int getYear()
public int getMonth()
public int getDay()
public int getHour()
public int getMin()
public int getMinute()
public java.math.BigDecimal getSec()
public java.math.BigDecimal getSecond()
public boolean isNegative()
public boolean equals(java.lang.Object o)
public int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |