org.geotools.temporal.reference
Class DefaultCalendarEra

Object
  extended by DefaultCalendarEra
All Implemented Interfaces:
CalendarEra

public class DefaultCalendarEra
extends Object
implements CalendarEra

Author:
Mehdi Sidhoum (Geomatys)

Constructor Summary
DefaultCalendarEra(InternationalString name, InternationalString referenceEvent, CalendarDate referenceDate, JulianDate julianReference, Period epochOfUse)
           
 
Method Summary
 boolean equals(Object object)
           
 Collection<Calendar> getDatingSystem()
           
 Period getEpochOfUse()
          Identifies the period for which the calendar era was used as a reference fro dating.
 JulianDate getJulianReference()
          Provides the julian date that corresponds to the reference date.
 InternationalString getName()
          Uniquely identifies the calendar era within this calendar.
 CalendarDate getReferenceDate()
          Provides the date of the reference event expressed as a date in the given calendar.
 InternationalString getReferenceEvent()
          Provides the name or description of a mythical or historic event which fixes the position of the base scale of the calendar era.
 int hashCode()
           
 void setEpochOfUse(Period epochOfUse)
           
 void setJulianReference(JulianDate julianReference)
           
 void setName(InternationalString name)
           
 void setReferenceDate(CalendarDate referenceDate)
           
 void setReferenceEvent(InternationalString referenceEvent)
           
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultCalendarEra

public DefaultCalendarEra(InternationalString name,
                          InternationalString referenceEvent,
                          CalendarDate referenceDate,
                          JulianDate julianReference,
                          Period epochOfUse)
Method Detail

getName

public InternationalString getName()
Description copied from interface: CalendarEra
Uniquely identifies the calendar era within this calendar.

Specified by:
getName in interface CalendarEra

getReferenceEvent

public InternationalString getReferenceEvent()
Description copied from interface: CalendarEra
Provides the name or description of a mythical or historic event which fixes the position of the base scale of the calendar era.

Specified by:
getReferenceEvent in interface CalendarEra

getReferenceDate

public CalendarDate getReferenceDate()
Description copied from interface: CalendarEra
Provides the date of the reference event expressed as a date in the given calendar.

Specified by:
getReferenceDate in interface CalendarEra

getJulianReference

public JulianDate getJulianReference()
Description copied from interface: CalendarEra
Provides the julian date that corresponds to the reference date.

Specified by:
getJulianReference in interface CalendarEra

getEpochOfUse

public Period getEpochOfUse()
Description copied from interface: CalendarEra
Identifies the period for which the calendar era was used as a reference fro dating.

Specified by:
getEpochOfUse in interface CalendarEra
Returns:
The period, where the data type for begin and end is JulianDate.

setName

public void setName(InternationalString name)

setReferenceEvent

public void setReferenceEvent(InternationalString referenceEvent)

setReferenceDate

public void setReferenceDate(CalendarDate referenceDate)

setJulianReference

public void setJulianReference(JulianDate julianReference)

setEpochOfUse

public void setEpochOfUse(Period epochOfUse)

getDatingSystem

public Collection<Calendar> getDatingSystem()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1996-2014 Geotools. All Rights Reserved.