org.gedcomx.date
Class GedcomxDateRecurring

java.lang.Object
  extended by org.gedcomx.date.GedcomxDate
      extended by org.gedcomx.date.GedcomxDateRecurring

public class GedcomxDateRecurring
extends GedcomxDate

A Recurring Date

Author:
John Clark.

Constructor Summary
GedcomxDateRecurring(String date)
          Instantiate a new Recurring date from the formal date string
 
Method Summary
 Integer getCount()
          Get the count
 GedcomxDateDuration getDuration()
          Get the duration
 GedcomxDateSimple getEnd()
          Get the end date
 GedcomxDateSimple getNth(Integer count)
          Get the nth instance of this recurring date
 GedcomxDateRange getRange()
          Get the range
 GedcomxDateSimple getStart()
          Get the start date
 GedcomxDateType getType()
          Get the date type
 boolean isApproximate()
          Whether or not this date is considered approximate
 String toFormalString()
          Return the formal string for this date
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
getType in class GedcomxDate
Returns:
The Date Type

isApproximate

public boolean isApproximate()
Whether or not this date is considered approximate

Specified by:
isApproximate in class GedcomxDate
Returns:
True if this date is approximate

toFormalString

public String toFormalString()
Return the formal string for this date

Specified by:
toFormalString in class GedcomxDate
Returns:
The formal date string


Copyright © 2016. All rights reserved.