public class SimpleAgenda extends Object implements Agenda
Constructor and Description |
---|
SimpleAgenda()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addEvent(Event event)
Add an event to the agenda
|
List<Event> |
getEvents()
Retrieves all events of the agenda
|
List<Event> |
getEventsByDate(Date dateBegin,
Date dateEnd,
Locale localeEnv)
Fetches the events by date
|
List<Event> |
getEventsByDate(String strDate)
Retrieves events for a given date
|
String |
getKeyName()
Returns the KeyName
|
String |
getName()
Returns the name of the Agenda
|
boolean |
hasEvents(String strDate)
Indicates if the agenda gets events for a given date
|
void |
setKeyName(String strKeyName)
Sets the KeyName
|
void |
setName(String strName)
Defines the name of the Agenda
|
public String getName()
public void setName(String strName)
public String getKeyName()
getKeyName
in interface Agenda
public void setKeyName(String strKeyName)
setKeyName
in interface Agenda
strKeyName
- The KeyNamepublic boolean hasEvents(String strDate)
public List<Event> getEventsByDate(String strDate)
getEventsByDate
in interface Agenda
strDate
- A date codepublic void addEvent(Event event)
event
- The event to addCopyright © 2015 City of Paris. All rights reserved.