Package org.gedcomx.date
Class GedcomxDateRange
java.lang.Object
org.gedcomx.date.GedcomxDate
org.gedcomx.date.GedcomxDateRange
- All Implemented Interfaces:
Comparable<GedcomxDate>
A Date Range
- Author:
- John Clark.
-
Constructor Summary
ConstructorsConstructorDescriptionGedcomxDateRange(String date) Instantiate a new Range date from the formal string -
Method Summary
Methods inherited from class org.gedcomx.date.GedcomxDate
compareTo
-
Constructor Details
-
GedcomxDateRange
Instantiate a new Range date from the formal string- Parameters:
date- The formal date string
-
-
Method Details
-
getStart
Get the start of the range- Returns:
- The Start Date
-
getDuration
Get the duration between the start and end dates- Returns:
- The Duration
-
getEnd
Get the end of the range- Returns:
- The End Date
-
getType
Get the type of this date- 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 it this date is approximate
-
toFormalString
Return the formal string for this date- Specified by:
toFormalStringin classGedcomxDate- Returns:
- The formal string
-