org.deri.iris.terms.concrete
Class DateTimeStamp

java.lang.Object
  extended by org.deri.iris.terms.concrete.DateTime
      extended by org.deri.iris.terms.concrete.DateTimeStamp
All Implemented Interfaces:
Comparable<ITerm>, IDateTime, IDateTimeStamp, IConcreteTerm, ITerm

public class DateTimeStamp
extends DateTime
implements IDateTimeStamp

A simple implementation of DateTimeStamp.

Author:
Adrian Marte

Field Summary
 
Fields inherited from class org.deri.iris.terms.concrete.DateTime
MAX_TIMEZONE_HOURS, MAX_TIMEZONE_MINUTES
 
Fields inherited from interface org.deri.iris.api.terms.concrete.IDateTimeStamp
DATATYPE_URI
 
Constructor Summary
DateTimeStamp(int year, int month, int day, int hour, int minute, double second, int tzHour, int tzMinute)
          Creates a new DateTimeStamp for the specified values.
 
Method Summary
 URI getDatatypeIRI()
          Returns the fully qualified identifier for the data type corresponding to this term.
 
Methods inherited from class org.deri.iris.terms.concrete.DateTime
checkTimeZone, compareTo, equals, getDay, getDecimalSecond, getHour, getMillisecond, getMinute, getMonth, getSecond, getTimeZone, getValue, getYear, hashCode, isGround, toCanonicalString, toString
 
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.IDateTime
getDay, getDecimalSecond, getHour, getMillisecond, getMinute, getMonth, getSecond, getTimeZone, getValue, getYear
 
Methods inherited from interface org.deri.iris.api.terms.IConcreteTerm
toCanonicalString
 
Methods inherited from interface org.deri.iris.api.terms.ITerm
isGround
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

DateTimeStamp

public DateTimeStamp(int year,
                     int month,
                     int day,
                     int hour,
                     int minute,
                     double second,
                     int tzHour,
                     int tzMinute)
Creates a new DateTimeStamp for the specified values.

Parameters:
year - The year fragment.
month - The month fragment.
day - The Day of month fragment.
hour - The hour fragment.
minute - The minute fragment.
second - The second fragment.
tzHour - The timezone hour (relative to GMT) fragment.
tzMinute - The timezone minute (relative to GMT) fragment.
Throws:
IllegalArgumentException - If not both the tzHour and tzMinute are positive or negative.
Method Detail

getDatatypeIRI

public URI getDatatypeIRI()
Description copied from interface: IConcreteTerm
Returns the fully qualified identifier for the data type corresponding to this term. For instance, a terms representing a double data type should return the URI "http://www.w3.org/2001/XMLSchema#double".

Specified by:
getDatatypeIRI in interface IConcreteTerm
Overrides:
getDatatypeIRI in class DateTime
Returns:
The fully qualified identifier for the data type corresponding to this term.