Package org.gedcomx.date
Class GedcomxDateRecurring
- java.lang.Object
-
- org.gedcomx.date.GedcomxDate
-
- org.gedcomx.date.GedcomxDateRecurring
-
- All Implemented Interfaces:
Comparable<GedcomxDate>
public class GedcomxDateRecurring extends GedcomxDate
A Recurring Date- Author:
- John Clark.
-
-
Constructor Summary
Constructors Constructor Description GedcomxDateRecurring(String date)Instantiate a new Recurring date from the formal date string
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetCount()Get the countGedcomxDateDurationgetDuration()Get the durationGedcomxDateSimplegetEnd()Get the end dateGedcomxDateSimplegetNth(Integer count)Get the nth instance of this recurring dateGedcomxDateRangegetRange()Get the rangeGedcomxDateSimplegetStart()Get the start dateGedcomxDateTypegetType()Get the date typebooleanisApproximate()Whether or not this date is considered approximateStringtoFormalString()Return the formal string for this date-
Methods inherited from class org.gedcomx.date.GedcomxDate
compareTo
-
-
-
-
Constructor Detail
-
GedcomxDateRecurring
public GedcomxDateRecurring(String date)
Instantiate a new Recurring date from the formal date string- Parameters:
date- The formal date string
-
-
Method Detail
-
getCount
public Integer getCount()
Get the count- Returns:
- The Count
-
getRange
public GedcomxDateRange getRange()
Get the range- Returns:
- The Range
-
getStart
public GedcomxDateSimple getStart()
Get the start date- Returns:
- The Start Date
-
getDuration
public GedcomxDateDuration getDuration()
Get the duration- Returns:
- The Duration
-
getEnd
public GedcomxDateSimple getEnd()
Get the end date- Returns:
- The End Date
-
getNth
public GedcomxDateSimple getNth(Integer count)
Get the nth instance of this recurring date- Parameters:
count- The nth instance- Returns:
- The date of the nth instance
-
getType
public GedcomxDateType getType()
Get the date type- Specified by:
getTypein classGedcomxDate- Returns:
- The Date Type
-
isApproximate
public boolean isApproximate()
Whether or not this date is considered approximate- Specified by:
isApproximatein classGedcomxDate- Returns:
- True if this date is approximate
-
toFormalString
public String toFormalString()
Return the formal string for this date- Specified by:
toFormalStringin classGedcomxDate- Returns:
- The formal date string
-
-