|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hp.hpl.jena.datatypes.xsd.AbstractDateTime com.hp.hpl.jena.datatypes.xsd.XSDDuration
public class 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(Object value)
Constructor - should only be used by the internals but public scope because the internals spread across multiple packages. |
Method Summary | |
---|---|
BigDecimal |
getBigSeconds()
Return the number of seconds in the duration, including the fractional part, in a lossless but expensive notation - i.e. |
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. |
int |
getYears()
Return the number of years in the duration |
String |
toString()
Serializer |
Methods inherited from class com.hp.hpl.jena.datatypes.xsd.AbstractDateTime |
---|
compare, compareTo, equals, hashCode, normalize |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XSDDuration(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 BigDecimal getBigSeconds()
public double getTimePart()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |