org.geotools.temporal.object
Class DefaultDateAndTime

java.lang.Object
  extended by org.geotools.temporal.object.DefaultTemporalPosition
      extended by org.geotools.temporal.object.DefaultDateAndTime
All Implemented Interfaces:
org.opengis.temporal.CalendarDate, org.opengis.temporal.ClockTime, org.opengis.temporal.DateAndTime, org.opengis.temporal.TemporalPosition

public class DefaultDateAndTime
extends DefaultTemporalPosition
implements org.opengis.temporal.DateAndTime

Provides a single data type for identifying a temporal position with a resolution of less than a day.

Author:
Mehdi Sidhoum (Geomatys)

Constructor Summary
DefaultDateAndTime(org.opengis.temporal.TemporalReferenceSystem frame, org.opengis.temporal.IndeterminateValue indeterminatePosition, org.opengis.util.InternationalString calendarEraName, int[] calendarDate, java.lang.Number[] clockTime)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 int[] getCalendarDate()
          Provides a sequence of integers in which the first integer identifies a specific instance of the unit used at the highest level of the calendar hierarchy, the second integer identifies a specific instance of the unit used at the next lower level in the hierarchy, and so on.
 org.opengis.util.InternationalString getCalendarEraName()
           
 java.lang.Number[] getClockTime()
          A sequence of numbers with a structure similar to that of CalendarDate.
 int hashCode()
           
 void setCalendarDate(int[] calendarDate)
           
 void setCalendarEraName(org.opengis.util.InternationalString calendarEraName)
           
 void setClockTime(java.lang.Number[] clockTime)
           
 java.lang.String toString()
           
 
Methods inherited from class org.geotools.temporal.object.DefaultTemporalPosition
getFrame, getIndeterminatePosition, setFrame, setIndeterminatePosition
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.temporal.TemporalPosition
getIndeterminatePosition
 

Constructor Detail

DefaultDateAndTime

public DefaultDateAndTime(org.opengis.temporal.TemporalReferenceSystem frame,
                          org.opengis.temporal.IndeterminateValue indeterminatePosition,
                          org.opengis.util.InternationalString calendarEraName,
                          int[] calendarDate,
                          java.lang.Number[] clockTime)
Method Detail

getClockTime

public java.lang.Number[] getClockTime()
A sequence of numbers with a structure similar to that of CalendarDate. The first number integer identifies a specific instance of the unit used at the highest level of the clock hierarchy, the second number identifies a specific instance of the unit used at the next lower level, and so on. All but the last number in the sequence shall be integers; the last number may be integer or real.

Specified by:
getClockTime in interface org.opengis.temporal.ClockTime

getCalendarEraName

public org.opengis.util.InternationalString getCalendarEraName()
Specified by:
getCalendarEraName in interface org.opengis.temporal.CalendarDate

getCalendarDate

public int[] getCalendarDate()
Provides a sequence of integers in which the first integer identifies a specific instance of the unit used at the highest level of the calendar hierarchy, the second integer identifies a specific instance of the unit used at the next lower level in the hierarchy, and so on. The format defined in ISO 8601 for dates in the Gregorian calendar may be used for any date that is composed of values for year, month and day.

Specified by:
getCalendarDate in interface org.opengis.temporal.CalendarDate

setCalendarEraName

public void setCalendarEraName(org.opengis.util.InternationalString calendarEraName)

setCalendarDate

public void setCalendarDate(int[] calendarDate)

setClockTime

public void setClockTime(java.lang.Number[] clockTime)

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class DefaultTemporalPosition

hashCode

public int hashCode()
Overrides:
hashCode in class DefaultTemporalPosition

toString

public java.lang.String toString()
Overrides:
toString in class DefaultTemporalPosition


Copyright © 1996-2010 Geotools. All Rights Reserved.