org.gedcomx.date
Class GedcomxDateApproximate

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

public class GedcomxDateApproximate
extends GedcomxDate

An Approximate Date

Author:
John Clark.

Constructor Summary
GedcomxDateApproximate(String date)
          Instantiate a new approximate date
 
Method Summary
 Integer getDay()
          Get the day
 Integer getHours()
          Get the hours
 Integer getMinutes()
          Get the minutes
 Integer getMonth()
          Get the month
 Integer getSeconds()
          Get the seconds
 GedcomxDateSimple getSimpleDate()
          Return the underlying simple date
 GedcomxDateType getType()
          The type of this date
 Integer getTzHours()
          Get the timezone hours
 Integer getTzMinutes()
          Get the timezone minutes
 Integer getYear()
          Get the year
 boolean isApproximate()
          Whether or not this date is approximate
 String toFormalString()
          Returns the formal representation of this date
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GedcomxDateApproximate

public GedcomxDateApproximate(String date)
Instantiate a new approximate date

Parameters:
date - The formal date string
Method Detail

getSimpleDate

public GedcomxDateSimple getSimpleDate()
Return the underlying simple date

Returns:
The Simple Date

getType

public GedcomxDateType getType()
The type of this date

Specified by:
getType in class GedcomxDate
Returns:
The Type

isApproximate

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

Specified by:
isApproximate in class GedcomxDate
Returns:
True

toFormalString

public String toFormalString()
Returns the formal representation of this date

Specified by:
toFormalString in class GedcomxDate
Returns:
The formal String

getYear

public Integer getYear()
Get the year

Returns:
The Year

getMonth

public Integer getMonth()
Get the month

Returns:
The Month

getDay

public Integer getDay()
Get the day

Returns:
The Day

getHours

public Integer getHours()
Get the hours

Returns:
The Hours

getMinutes

public Integer getMinutes()
Get the minutes

Returns:
The Minutes

getSeconds

public Integer getSeconds()
Get the seconds

Returns:
The Seconds

getTzHours

public Integer getTzHours()
Get the timezone hours

Returns:
The Timezone Hours

getTzMinutes

public Integer getTzMinutes()
Get the timezone minutes

Returns:
The Timezone Minutes


Copyright © 2016. All rights reserved.