org.geotools.temporal.object
Class DefaultCalendarDate

Object
  extended by DefaultTemporalPosition
      extended by DefaultCalendarDate
All Implemented Interfaces:
CalendarDate, TemporalPosition

public class DefaultCalendarDate
extends DefaultTemporalPosition
implements CalendarDate

A data type that shall be used to identify temporal position within a calendar.

Author:
Mehdi Sidhoum (Geomatys)

Constructor Summary
DefaultCalendarDate(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, InternationalString calendarEraName, int[] calendarDate)
           
 
Method Summary
 boolean equals(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.
 InternationalString getCalendarEraName()
          Provides the name of the calendar era to which the date is referenced.
 int hashCode()
           
 void setCalendarDate(int[] calendarDate)
           
 void setCalendarEraName(InternationalString calendarEraName)
           
 String toString()
           
 
Methods inherited from class DefaultTemporalPosition
getFrame, getIndeterminatePosition, setFrame, setIndeterminatePosition
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface TemporalPosition
getIndeterminatePosition
 

Constructor Detail

DefaultCalendarDate

public DefaultCalendarDate(TemporalReferenceSystem frame,
                           IndeterminateValue indeterminatePosition,
                           InternationalString calendarEraName,
                           int[] calendarDate)
Method Detail

getCalendarEraName

public InternationalString getCalendarEraName()
Provides the name of the calendar era to which the date is referenced.

Specified by:
getCalendarEraName in interface 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 CalendarDate

setCalendarEraName

public void setCalendarEraName(InternationalString calendarEraName)

setCalendarDate

public void setCalendarDate(int[] calendarDate)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class DefaultTemporalPosition

toString

public String toString()
Overrides:
toString in class DefaultTemporalPosition


Copyright © 1996-2014 Geotools. All Rights Reserved.