|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcitysdk.tourism.client.poi.base.POIBaseType
citysdk.tourism.client.poi.base.POITermType
citysdk.tourism.client.poi.base.Relationship
public class Relationship
Representation of the Relationship class of the UML diagram found in: http://www.w3.org/2010/POI/documents/Core/core-20111216.html#poi-data-model.
The Relationship entity is derived from POITermType and establishes 1-to-1 or
1-to-many relationships between POIs
| Constructor Summary | |
|---|---|
Relationship()
Initializes an empty Relationship. |
|
| Method Summary | |
|---|---|
java.lang.String |
getTargetEvent()
Returns which target is a given Event related with. |
java.lang.String |
getTargetPOI()
Returns which target is a given POI related with. |
boolean |
hasTargetEvent()
Checks whether this relationship has a event as a target |
boolean |
hasTargetPOI()
Checks whether this relationship has a POI as a target |
void |
setTargetEvent(java.lang.String targetEvent)
Sets the Event that a given Event is related with. |
void |
setTargetPOI(java.lang.String targetPOI)
Sets the POI that a given POI is related with. |
| Methods inherited from class citysdk.tourism.client.poi.base.POITermType |
|---|
getScheme, getTerm, setScheme, setTerm |
| 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 |
|---|
public Relationship()
Relationship.
| Method Detail |
|---|
public java.lang.String getTargetPOI()
public java.lang.String getTargetEvent()
public void setTargetPOI(java.lang.String targetPOI)
targetPOI - POI id related with another POI/Eventpublic void setTargetEvent(java.lang.String targetEvent)
targetEvent - Event id related with another POI/Eventpublic boolean hasTargetEvent()
true if has an Event as a target, false otherwisepublic boolean hasTargetPOI()
true if has a POI as a target, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||