citysdk.tourism.client.poi.single
Class POI

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
All Implemented Interfaces:
Deserializable
Direct Known Subclasses:
Category, Event, ListPOIS, PointOfInterest, POIS, Route, Tag

public class POI
extends POIType
implements Deserializable

A base class for PointOfInterest, Event, Route and POIS.

A POI is a POIType which stores a Location.

Author:
Pedro Cruz

Constructor Summary
POI()
          Initializes an empty W3C.
 
Method Summary
 Location getLocation()
           
 boolean hasAddress()
          Checks whether the POI has an address associated
 void setLocation(Location location)
           
 
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

POI

public POI()
Initializes an empty W3C.

Method Detail

getLocation

public Location getLocation()

setLocation

public void setLocation(Location location)

hasAddress

public boolean hasAddress()
Checks whether the POI has an address associated

Returns:
true if it has an address, false otherwise