citysdk.tourism.client.poi.lists
Class ListPointOfInterest

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<PointOfInterest>
                  extended by citysdk.tourism.client.poi.lists.ListPointOfInterest
All Implemented Interfaces:
Deserializable

public class ListPointOfInterest
extends POIS<PointOfInterest>

Represents a list of PointOfInterest.

Author:
Pedro Cruz

Constructor Summary
ListPointOfInterest()
          Creates an empty list of PointOfInterest.
 
Method Summary
 void addPoi(PointOfInterest poi)
          Adds a PointOfInterest.
 PointOfInterest get(int i)
          Gets a given PointOfInterest.
 int getNumPois()
          Returns the number of POIs stored
 java.util.List<PointOfInterest> getPois()
          Gets all the POIs.
 
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

ListPointOfInterest

public ListPointOfInterest()
Creates an empty list of PointOfInterest.

Method Detail

addPoi

public void addPoi(PointOfInterest poi)
Adds a PointOfInterest.

Parameters:
poi - the PointOfInterest to be added.

getPois

public java.util.List<PointOfInterest> getPois()
Gets all the POIs.

Returns:
the list of PointOfInterest.

get

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

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

getNumPois

public int getNumPois()
Returns the number of POIs stored

Returns:
the total number of POIs