|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gedcomx.util.date.FormalDate
public class FormalDate
Class representing a fully parsed GedcomX standard date, for the purpose of creating or understanding GedcomX formal date strings. Format of a GedcomX formal dates are made up by strings of these types: Simple date: (+|-)YYYY[-MM[-DD[Thh[:mm[:ss[(+\-)hh[:mm]|Z]]]]]] Duration: P[yyyyY][mmM][ddD][T[hhH][mmM][ssS]] Closed date Range: [simpleDate]/[simpleDate|Duration] Open-ended date range: [simpleDate]/ /[simpleDate] Recurring date R[repetitions]/simpleDate/(simpleDate|Duration) Approximate date or date range A(simpleDate) A(dateRange) => ([A](simpleDate|dateRange) | R[repetitions]/simpleDate/(simpleDate|Duration)) => [A]simpleDate [A]simpleDate/[simpleDate|Duration] [A]/simpleDate R[repetitions]/simpleDate/(simpleDate|Duration) User: Randy Wilson Date: 8/7/13 Time: 12:53 PM
| Constructor Summary | |
|---|---|
FormalDate(String formalDateString)
Deprecated. Constructor that parses a formal date string. |
|
| Method Summary | |
|---|---|
Duration |
getDuration()
Deprecated. Get the Duration portion of a FormalDate, or null if there is no duration. |
SimpleDate |
getEnd()
Deprecated. Get the ending date for this FormalDate range. |
Integer |
getNumRepetitions()
Deprecated. Get the number of repetitions for a recurring date, or null if none. |
SimpleDate |
getStart()
Deprecated. Get the starting date for this FormalDate. |
boolean |
isApproximate()
Deprecated. Tell whether this FormalDate is approximate. |
boolean |
isRange()
Deprecated. Tell whether this date is a range. |
boolean |
isRecurring()
Deprecated. Get the flag for whether this date is a repeating date. |
boolean |
isValid()
Deprecated. Tell whether the current state of the date is valid for a GedcomX formal date. |
void |
setApproximate(boolean approximate)
Deprecated. Set the flag for whether this date is approximate. |
void |
setDuration(Duration duration)
Deprecated. Set the duration of a FormalDate. |
void |
setEnd(SimpleDate end)
Deprecated. Set the ending date of this FormalDate range. |
void |
setNumRepetitions(Integer numRepetitions)
Deprecated. Set the number of repetitions for a recurring date. |
void |
setRange(boolean range)
Deprecated. Set the flag for whether this FormalDate is a range. |
void |
setRecurring(boolean recurring)
Deprecated. Set the flag for whether this is a recurring date, in which case there must be a start date and either an end date or a duration (but not both). |
void |
setStart(SimpleDate start)
Deprecated. Set the starting date. |
String |
toString()
Deprecated. Convert a FormalDate to a string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FormalDate(String formalDateString)
formalDateString - - Formal date string to parse.| Method Detail |
|---|
public boolean isApproximate()
public void setApproximate(boolean approximate)
approximate - - flag for whether this date is approximate.public boolean isRange()
public void setRange(boolean range)
range - - flag for whether this date is a range.public SimpleDate getStart()
public void setStart(SimpleDate start)
start - - Starting date.public SimpleDate getEnd()
public void setEnd(SimpleDate end)
end - public Duration getDuration()
public void setDuration(Duration duration)
duration - public boolean isRecurring()
public void setRecurring(boolean recurring)
recurring - - flag for whether this is a recurring date.public Integer getNumRepetitions()
public void setNumRepetitions(Integer numRepetitions)
numRepetitions - - Number of repetitions for a recurring date, or null for no limit.public boolean isValid()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||