|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.datatypes.xsd.AbstractDateTime
com.hp.hpl.jena.datatypes.xsd.XSDDuration
Represent an XSD duration value. We use a seven dimensional space with years, months, days, hours, minutes, seconds and fractional seconds. This deviates from the spec which allows arbitrary position decimals for seconds.
Field Summary |
Fields inherited from class com.hp.hpl.jena.datatypes.xsd.AbstractDateTime |
EQUAL, GREATER_THAN, INDETERMINATE, LESS_THAN |
Constructor Summary | |
XSDDuration(java.lang.Object value)
Constructor - should only be used by the internals but public scope because the internals spread across multiple packages. |
Method Summary | |
int |
getDays()
Return the number of years in the duration |
int |
getFullSeconds()
Return the number of full seconds in the duration |
int |
getHours()
Return the number of hours in the duration |
int |
getMinutes()
Return the number of minutes in the duration |
int |
getMonths()
Return the number of months in the duration |
double |
getSeconds()
Return the number of seconds in the duration, including fractional part |
double |
getTimePart()
Return the time component of the duration - i.e. just the hours/mins/seconds, and returns the values in seconds. |
int |
getYears()
Return the number of years in the duration |
java.lang.String |
toString()
Serializer |
Methods inherited from class com.hp.hpl.jena.datatypes.xsd.AbstractDateTime |
compare, equals, hashCode, normalize |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public XSDDuration(java.lang.Object value)
value
- the date/time value returned by the parsingMethod Detail |
public int getYears()
public int getMonths()
public int getDays()
public int getHours()
public int getMinutes()
public int getFullSeconds()
public double getSeconds()
public double getTimePart()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |