|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.terms.concrete.Duration
org.deri.iris.terms.concrete.DayTimeDuration
public class DayTimeDuration
An interface for representing the dayTimeDuration data-type. xs:dayTimeDuration is derived from xs:duration by restricting its lexical representation to contain only the days, hours, minutes and seconds components.
Example: _dayTimeDuration(1, 10, 31, 15.5) represents the duration of one day, 10 hours, 31 minutes and 15.5 seconds.
Remark: IRIS supports datatypes according to the standard specification for primitive XML Schema datatypes.
| Method Summary | |
|---|---|
URI |
getDatatypeIRI()
Returns the fully qualified identifier for the data type corresponding to this term. |
IDayTimeDuration |
toCanonical()
Returns a canonical representation of dayTimeDuration as defined in http://www.w3.org/TR/xpath-functions/#canonical-dayTimeDuration. |
String |
toCanonicalString()
Shortened representation For negative durations, the canonical form is calculated using the absolute value of the duration and a negative sign is prepended to it. |
String |
toString()
Returns a short string representation of this object. |
| Methods inherited from class org.deri.iris.terms.concrete.Duration |
|---|
compareTo, equals, getDay, getDecimalSecond, getHour, getMillisecond, getMinute, getMonth, getSecond, getValue, getYear, hashCode, isGround, isPositive |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deri.iris.api.terms.concrete.IDuration |
|---|
getDay, getDecimalSecond, getHour, getMillisecond, getMinute, getMonth, getSecond, getValue, getYear, isPositive |
| Methods inherited from interface org.deri.iris.api.terms.ITerm |
|---|
isGround |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
public String toCanonicalString()
toCanonicalString in interface IConcreteTermtoCanonicalString in class Durationpublic URI getDatatypeIRI()
IConcreteTerm
getDatatypeIRI in interface IConcreteTermgetDatatypeIRI in class Durationpublic IDayTimeDuration toCanonical()
IDayTimeDuration
toCanonical in interface IDayTimeDurationpublic String toString()
DurationReturns a short string representation of this object. The format of the returned string is subject to change.
The resutl is formatted according to the XML 1.0 specification.
toString in class Duration
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||