|
|||||||||
| 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.YearMonthDuration
public class YearMonthDuration
An interface for representing the xs:yearMonthDuration data-type. xs:yearMonthDuration is derived from xs:duration by restricting its lexical representation to contain only the year and month components.
Example: _yearMonthDuration(1, 6) represents the duration of one and a half years.
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. |
YearMonthDuration |
toCanonical()
The canonical representation of yearMonthDuration as defined in http://www.w3.org/TR/xpath-functions/#canonical-yearMonthDuration. |
String |
toCanonicalString()
Shortened representation The xs:yearMonthDuration type represents a restriction of the xs:duration type, with only year (Y) and month (M) components allowed. |
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 YearMonthDuration toCanonical()
toCanonical in interface IYearMonthDurationpublic String toCanonicalString()
toCanonicalString in interface IConcreteTermtoCanonicalString in class Durationpublic URI getDatatypeIRI()
IConcreteTerm
getDatatypeIRI in interface IConcreteTermgetDatatypeIRI in class Durationpublic 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 | ||||||||