|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.terms.concrete.DateTime
public class DateTime
Simple implementation of the IDateTime.
| Field Summary | |
|---|---|
static int |
MAX_TIMEZONE_HOURS
|
static int |
MAX_TIMEZONE_MINUTES
|
| Method Summary | |
|---|---|
static void |
checkTimeZone(int tzHour,
int tzMinute)
Implements the restrictions as detailed in: http://www.w3.org/TR/xmlschema-2/#dateTime ( |h| < 14 AND |m| <= 59 ) OR ( |h| = 14, m = 0 ) AND sign( h ) = sign( m ) |
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 day of the month. |
double |
getDecimalSecond()
Return the complete floating point representation of the seconds components. |
int |
getHour()
Returns the hour of the day. |
int |
getMillisecond()
Returns the milliseconds of the second. |
int |
getMinute()
Returns the minute of the hour |
int |
getMonth()
Returns the month of the year. |
int |
getSecond()
Returns the seconds of the minute. |
TimeZone |
getTimeZone()
Returns the Timezone |
XMLGregorianCalendar |
getValue()
Return the wrapped type. |
int |
getYear()
Returns the year. |
int |
hashCode()
|
boolean |
isGround()
Checks whether the term is ground (a term with no variables). |
String |
toCanonicalString()
Returns a canonical string representation of this term. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_TIMEZONE_HOURS
public static final int MAX_TIMEZONE_MINUTES
| Method Detail |
|---|
public static void checkTimeZone(int tzHour,
int tzMinute)
tzHour - The time zone hourstzMinute - The time zone minutespublic int compareTo(ITerm o)
compareTo in interface Comparable<ITerm>public boolean equals(Object obj)
equals in class Objectpublic int getDay()
IDateTime
getDay in interface IDateTimepublic int getHour()
IDateTime
getHour in interface IDateTimepublic int getMinute()
IDateTime
getMinute in interface IDateTimepublic int getMonth()
IDateTime
getMonth in interface IDateTimepublic int getSecond()
IDateTime
getSecond in interface IDateTimepublic int getMillisecond()
IDateTime
getMillisecond in interface IDateTimepublic double getDecimalSecond()
IDateTime
getDecimalSecond in interface IDateTimepublic TimeZone getTimeZone()
IDateTime
getTimeZone in interface IDateTimepublic int getYear()
IDateTime
getYear in interface IDateTimepublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic boolean isGround()
ITerm
isGround in interface ITermtrue if the term is ground,
otherwise false.public XMLGregorianCalendar getValue()
IDateTime
getValue in interface IDateTimegetValue in interface ITermpublic URI getDatatypeIRI()
IConcreteTerm
getDatatypeIRI in interface IConcreteTermpublic String toCanonicalString()
IConcreteTerm
toCanonicalString in interface IConcreteTerm
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||