|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.cmu.aura.service.xml.xmlschema.TimeDuration
TimeDuration is an XMLSchema primitive type that represents a length of time.
| Constructor Summary | |
TimeDuration(long millis)
Create a new TimeDuration from Java time in millis. |
|
TimeDuration(java.lang.String durationDef)
Create a new TimeDuration from a serialized definition. |
|
| Method Summary | |
long |
convertToMillis()
|
double |
convertToSeconds()
Get the value of this duration in seconds. |
int |
getDays()
Get the days field of this duration. |
int |
getHours()
Get the hours field of this duration. |
int |
getMinutes()
Get the minutes field of this duration. |
int |
getMonths()
Get the months field of this duration. |
double |
getSeconds()
Get the seconds field of this duration. |
int |
getYears()
Get the years field of this duration. |
boolean |
isNegative()
Determine if this duration is negative. |
java.lang.String |
toString()
Return a serialized version of this time duration. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TimeDuration(java.lang.String durationDef)
throws DataFormatException
durationDef - the time duration definition.public TimeDuration(long millis)
millis - the time in millis| Method Detail |
public boolean isNegative()
public double getSeconds()
public int getMinutes()
public int getHours()
public int getDays()
public int getMonths()
public int getYears()
public double convertToSeconds()
public long convertToMillis()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||