Package org.geotools.temporal.reference
Class DefaultCalendarEra
- Object
-
- DefaultCalendarEra
-
- All Implemented Interfaces:
CalendarEra
public class DefaultCalendarEra extends Object implements CalendarEra
- Author:
- Mehdi Sidhoum (Geomatys)
-
-
Constructor Summary
Constructors Constructor Description DefaultCalendarEra(InternationalString name, InternationalString referenceEvent, CalendarDate referenceDate, JulianDate julianReference, Period epochOfUse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Collection<Calendar>getDatingSystem()PeriodgetEpochOfUse()Identifies the period for which the calendar era was used as a reference fro dating.JulianDategetJulianReference()Provides the julian date that corresponds to the reference date.InternationalStringgetName()Uniquely identifies the calendar era within this calendar.CalendarDategetReferenceDate()Provides the date of the reference event expressed as a date in the given calendar.InternationalStringgetReferenceEvent()Provides the name or description of a mythical or historic event which fixes the position of the base scale of the calendar era.inthashCode()voidsetEpochOfUse(Period epochOfUse)voidsetJulianReference(JulianDate julianReference)voidsetName(InternationalString name)voidsetReferenceDate(CalendarDate referenceDate)voidsetReferenceEvent(InternationalString referenceEvent)StringtoString()
-
-
-
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:CalendarEraUniquely identifies the calendar era within this calendar.- Specified by:
getNamein interfaceCalendarEra
-
getReferenceEvent
public InternationalString getReferenceEvent()
Description copied from interface:CalendarEraProvides the name or description of a mythical or historic event which fixes the position of the base scale of the calendar era.- Specified by:
getReferenceEventin interfaceCalendarEra
-
getReferenceDate
public CalendarDate getReferenceDate()
Description copied from interface:CalendarEraProvides the date of the reference event expressed as a date in the given calendar.- Specified by:
getReferenceDatein interfaceCalendarEra
-
getJulianReference
public JulianDate getJulianReference()
Description copied from interface:CalendarEraProvides the julian date that corresponds to the reference date.- Specified by:
getJulianReferencein interfaceCalendarEra
-
getEpochOfUse
public Period getEpochOfUse()
Description copied from interface:CalendarEraIdentifies the period for which the calendar era was used as a reference fro dating.- Specified by:
getEpochOfUsein interfaceCalendarEra- Returns:
- The period, where the data type for beginning and
endingisJulianDate.
-
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()
-
-