|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.terms.concrete.Duration
public class Duration
Simple implementation of IDuration.
| Method Summary | |
|---|---|
int |
compareTo(ITerm o)
|
boolean |
equals(Object obj)
|
URI |
getDatatypeIRI()
Returns the fully qualified identifier for the data type corresponding to this term. |
int |
getDay()
Returns the days |
double |
getDecimalSecond()
Return the complete floating point representation of the seconds components. |
int |
getHour()
Returns the hours |
int |
getMillisecond()
Returns the milliseconds. |
int |
getMinute()
returns the minutes |
int |
getMonth()
Returns the months |
int |
getSecond()
Returns the seconds |
Duration |
getValue()
Return the wrapped type. |
int |
getYear()
Returns the years. |
int |
hashCode()
|
boolean |
isGround()
Checks whether the term is ground (a term with no variables). |
boolean |
isPositive()
Returns true if this is a positive duration,
false otherwise. |
String |
toCanonicalString()
Returns a canonical string representation of this term. |
String |
toString()
Returns a short string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public int getYear()
IDuration
getYear in interface IDurationpublic int getMonth()
IDuration
getMonth in interface IDurationpublic int getDay()
IDuration
getDay in interface IDurationpublic int getHour()
IDuration
getHour in interface IDurationpublic int getMinute()
IDuration
getMinute in interface IDurationpublic int getSecond()
IDuration
getSecond in interface IDurationpublic int getMillisecond()
IDuration
getMillisecond in interface IDurationpublic double getDecimalSecond()
IDuration
getDecimalSecond in interface IDurationpublic int hashCode()
hashCode in class Objectpublic String toString()
Returns 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 Objectpublic boolean equals(Object obj)
equals in class Objectpublic int compareTo(ITerm o)
compareTo in interface Comparable<ITerm>public boolean isGround()
ITerm
isGround in interface ITermtrue if the term is ground,
otherwise false.public Duration getValue()
IDuration
getValue in interface IDurationgetValue in interface ITermpublic URI getDatatypeIRI()
IConcreteTerm
getDatatypeIRI in interface IConcreteTermpublic boolean isPositive()
IDurationtrue if this is a positive duration,
false otherwise. Also returns true if this is a
duration of length 0.
isPositive in interface IDurationtrue if this is a positive duration,
false otherwise.public String toCanonicalString()
IConcreteTerm
toCanonicalString in interface IConcreteTerm
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||