citysdk.tourism.client.poi.single
Class Tag

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.single.Tag
All Implemented Interfaces:
Deserializable

public class Tag
extends POI

Representation of a Tag object.

A Tag is used to characterize PointOfInterest, Event or Route.

Author:
Pedro Cruz

Constructor Summary
Tag()
          Initializes an empty Tag
 
Method Summary
 void addTag(Tag tag)
          Adds a Tag value
 int getNumTags()
          Gets the number of Tag values
 Tag getTag(int i)
          Gets the Tag in index i
 java.util.List<Tag> getTags()
          Gets all the tags.
 
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

Tag

public Tag()
Initializes an empty Tag

Method Detail

getTags

public java.util.List<Tag> getTags()
Gets all the tags.

Returns:
a list of Tag values

addTag

public void addTag(Tag tag)
Adds a Tag value

Parameters:
tag - Tag value to be added

getTag

public Tag getTag(int i)
Gets the Tag in index i

Parameters:
i - the Tag index
Returns:
the Tag at index i or null

getNumTags

public int getNumTags()
Gets the number of Tag values

Returns:
the total number of Tag values