org.deri.iris.terms.concrete
Class DateTimeStamp
java.lang.Object
org.deri.iris.terms.concrete.DateTime
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
|
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 interface org.deri.iris.api.terms.ITerm |
isGround |
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.
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.