Package org.geotools.temporal.reference
Class DefaultCalendarEra
Object
DefaultCalendarEra
- All Implemented Interfaces:
CalendarEra
- Author:
- Mehdi Sidhoum (Geomatys)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCalendarEra
(InternationalString name, InternationalString referenceEvent, CalendarDate referenceDate, JulianDate julianReference, Period epochOfUse) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Identifies the period for which the calendar era was used as a reference fro dating.Provides the julian date that corresponds to the reference date.getName()
Uniquely identifies the calendar era within this calendar.Provides the date of the reference event expressed as a date in the given calendar.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) toString()
-
Constructor Details
-
DefaultCalendarEra
public DefaultCalendarEra(InternationalString name, InternationalString referenceEvent, CalendarDate referenceDate, JulianDate julianReference, Period epochOfUse)
-
-
Method Details
-
getName
Description copied from interface:CalendarEra
Uniquely identifies the calendar era within this calendar.- Specified by:
getName
in interfaceCalendarEra
-
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 interfaceCalendarEra
-
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 interfaceCalendarEra
-
getJulianReference
Description copied from interface:CalendarEra
Provides the julian date that corresponds to the reference date.- Specified by:
getJulianReference
in interfaceCalendarEra
-
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 interfaceCalendarEra
- Returns:
- The period, where the data type for beginning and
ending
isJulianDate
.
-
setName
-
setReferenceEvent
-
setReferenceDate
-
setJulianReference
-
setEpochOfUse
-
getDatingSystem
-
equals
-
hashCode
public int hashCode() -
toString
-