@MappedSuperclass public abstract class Event extends Object
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Date |
getDate()
Returns the date the event happened.
|
String |
getDateString()
Constructs and returns the date string.
|
Integer |
getDay()
Returns the day of the month this event happened.
|
Month |
getMonth()
Returns the month of the year this event happened.
|
Place |
getPlace()
Returns the place this event happened.
|
Integer |
getYear()
Returns the year this event happened.
|
boolean |
isAbout()
Returns
true if the date is just an approximate. |
void |
setAbout(boolean about)
Set if the date is an approximate date.
|
void |
setDay(Integer day)
Sets the day of the month this event happened.
|
void |
setMonth(Month month)
Sets the month of the year this event happened.
|
void |
setPlace(Place place)
Sets the place this event happened.
|
void |
setYear(Integer year)
Sets the year this event happened.
|
public Date getDate()
getDateString()
rather
than just formatting the date this method returns.getDateString()
,
isAbout()
public Place getPlace()
Place.getRegion()
,
Place.iterator()
public void setPlace(Place place)
place
- the place this event happenedpublic boolean isAbout()
true
if the date is just an approximate.true
if the date is just an approximatepublic void setAbout(boolean about)
about
- if the date is an approximate datepublic Integer getDay()
null
.public void setDay(Integer day)
day
- the day of the month this event happenedpublic Month getMonth()
null
.public void setMonth(Month month)
month
- the month of the year this event happenedpublic Integer getYear()
null
.public void setYear(Integer year)
year
- the yearpublic String getDateString()
Copyright © 2015 Joseph Hendrix