citysdk.tourism.client.poi.lists
Class ListEvent

java.lang.Object
  extended by citysdk.tourism.client.poi.base.POIBaseType
      extended by citysdk.tourism.client.poi.base.POIType
          extended by citysdk.tourism.client.poi.single.POI
              extended by citysdk.tourism.client.poi.lists.POIS<Event>
                  extended by citysdk.tourism.client.poi.lists.ListEvent
All Implemented Interfaces:
Deserializable

public class ListEvent
extends POIS<Event>

Represents a list of Event.

Author:
Pedro Cruz

Constructor Summary
ListEvent()
          Creates an empty list of Event.
 
Method Summary
 void addEvent(Event event)
          Adds an Event.
 Event get(int i)
          Gets a given Event.
 java.util.List<Event> getEvents()
          Gets all the events.
 int getNumEvents()
          Returns the number of events stored.
 
Methods inherited from class citysdk.tourism.client.poi.lists.POIS
add, getList, size
 
Methods inherited from class citysdk.tourism.client.poi.single.POI
getLocation, hasAddress, setLocation
 
Methods inherited from class citysdk.tourism.client.poi.base.POIType
addCategory, addDescription, addLabel, addLink, addTime, getCategory, getDescription, getLabel, getLink, getTime, hasCategories, hasDescriptions, hasLabels, hasLinks, hasTimes
 
Methods inherited from class citysdk.tourism.client.poi.base.POIBaseType
getAuthor, getBase, getCreated, getDeleted, getHref, getId, getLang, getLicense, getType, getUpdated, getValue, setAuthor, setBase, setCreated, setDeleted, setHref, setId, setLang, setLicense, setType, setUpdated, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListEvent

public ListEvent()
Creates an empty list of Event.

Method Detail

addEvent

public void addEvent(Event event)
Adds an Event.

Parameters:
event - the Event to be added.

getEvents

public java.util.List<Event> getEvents()
Gets all the events.

Returns:
the list of Event.

get

public Event get(int i)
Gets a given Event.

Overrides:
get in class POIS<Event>
Parameters:
i - the index of the Event
Returns:
the event stored within the given index or null.

getNumEvents

public int getNumEvents()
Returns the number of events stored.

Returns:
the total number of events.