citysdk.tourism.client.poi.lists
Class ListRoute

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

public class ListRoute
extends POIS<Route>

Represents a list of Route.

Author:
Pedro Cruz

Constructor Summary
ListRoute()
          Creates an empty list of Route.
 
Method Summary
 void addRoute(Route route)
          Adds a Route.
 Route get(int i)
          Gets a given Route.
 int getNumRoutes()
          Returns the number of routes stored.
 java.util.List<Route> getRoutes()
          Gets all the routes.
 
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

ListRoute

public ListRoute()
Creates an empty list of Route.

Method Detail

addRoute

public void addRoute(Route route)
Adds a Route.

Parameters:
route - the Route to be added.

getRoutes

public java.util.List<Route> getRoutes()
Gets all the routes.

Returns:
the list of Route.

get

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

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

getNumRoutes

public int getNumRoutes()
Returns the number of routes stored.

Returns:
the total number of routes.