citysdk.tourism.client.poi.base
Class POIType

java.lang.Object
  extended by citysdk.tourism.client.poi.base.POIBaseType
      extended by citysdk.tourism.client.poi.base.POIType
Direct Known Subclasses:
POI

public class POIType
extends POIBaseType

Representation of the POIType class of the UML Diagram found in: http://www.w3.org/2010/POI/documents/Core/core-20111216.html#poi-data-model.

The POIType entity is an abstract entity derived from POIBaseType and adds entities for describing, labeling, categorizing and indicating the time span of a POI or group of POIs. The entity also incudes child entities for linking to other POIs, external web resources or metadata.

It is composed of:

Author:
Pedro Cruz

Constructor Summary
POIType()
          Creates an empty POIType.
 
Method Summary
 void addCategory(POITermType category)
          Adds a category to the POIType.
 void addDescription(POIBaseType description)
          Adds a description to the POIType.
 void addLabel(POITermType label)
          Adds a label to the POIType.
 void addLink(POITermType link)
          Adds a link to the POIType.
 void addTime(POITermType time)
          Adds a time to the POIType.
 java.util.List<POITermType> getCategory()
          Gets all the categories of the POIType.
 java.util.List<POIBaseType> getDescription()
          Gets all the descriptions of the POIType.
 java.util.List<POITermType> getLabel()
          Gets all the labels of the POIType.
 java.util.List<POITermType> getLink()
          Gets all the links of the POIType.
 java.util.List<POITermType> getTime()
          Gets all the times of the POIType.
 boolean hasCategories()
          Checks if there are categories in the POIType.
 boolean hasDescriptions()
          Checks if there are descriptions in the POIType.
 boolean hasLabels()
          Checks if there are labels in the POIType.
 boolean hasLinks()
          Checks if there are links in the POIType.
 boolean hasTimes()
          Checks if there are times in the POIType.
 
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

POIType

public POIType()
Creates an empty POIType.

Method Detail

addCategory

public void addCategory(POITermType category)
Adds a category to the POIType.

Parameters:
category - the category to be added.

addLabel

public void addLabel(POITermType label)
Adds a label to the POIType.

Parameters:
label - the label to be added.

addDescription

public void addDescription(POIBaseType description)
Adds a description to the POIType.

Parameters:
description - the description to be added.

addTime

public void addTime(POITermType time)
Adds a time to the POIType.

Parameters:
time - the time to be added.

addLink

public void addLink(POITermType link)
Adds a link to the POIType.

Parameters:
link - the link to be added.

getLabel

public java.util.List<POITermType> getLabel()
Gets all the labels of the POIType.

Returns:
a list of labels of the POIType.

getDescription

public java.util.List<POIBaseType> getDescription()
Gets all the descriptions of the POIType.

Returns:
a list of descriptions of the POIType.

getTime

public java.util.List<POITermType> getTime()
Gets all the times of the POIType.

Returns:
a list of times of the POIType.

getLink

public java.util.List<POITermType> getLink()
Gets all the links of the POIType.

Returns:
a list of links of the POIType.

getCategory

public java.util.List<POITermType> getCategory()
Gets all the categories of the POIType.

Returns:
a list of categories of the POIType.

hasLabels

public boolean hasLabels()
Checks if there are labels in the POIType.

Returns:
true if there are labels in the POIType, false otherwise

hasDescriptions

public boolean hasDescriptions()
Checks if there are descriptions in the POIType.

Returns:
true if there are descriptions in the POIType, false otherwise.

hasTimes

public boolean hasTimes()
Checks if there are times in the POIType.

Returns:
true if there are times in the POIType, false otherwise.

hasLinks

public boolean hasLinks()
Checks if there are links in the POIType.

Returns:
true if there are links in the POIType, false otherwise.

hasCategories

public boolean hasCategories()
Checks if there are categories in the POIType.

Returns:
true if there are categories in the POIType, false otherwise