|
||||||||||
| 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.Location
public class Location
Representation of the Location class of the UML diagram found in:
http://www.w3.org/2010/POI/documents/Core/core-20111216.html#poi-data-model.
A Location is composed of:
Point, Line, Polygon representing the Location's Geometry (such as: entry/exit points);Relationship representing the relationship of this Location with other PointOfInterest or Event;Location in vCard format.
| Constructor Summary | |
|---|---|
Location()
Initializes an empty Location, with no geometries or addresses. |
|
| Method Summary | |
|---|---|
void |
addLine(Line line)
Adds a Line to the Location. |
void |
addPoint(Point point)
Adds a Point to the Location. |
void |
addPolygon(Polygon polygon)
Adds a Polygon to the Location. |
void |
addRelationship(Relationship relationship)
Adds a Relationship to the Location. |
POIBaseType |
getAddress()
Gets the address of the Location. |
java.util.List<Line> |
getLine()
Gets all lines of the Location. |
java.util.List<Point> |
getPoint()
Gets all points of the Location. |
java.util.List<Polygon> |
getPolygon()
Gets all the polygons of the Location. |
java.util.List<Relationship> |
getRelationship()
Gets all the relationships of the Location. |
boolean |
hasLines()
Checks if the Location has any lines. |
boolean |
hasPoints()
Checks if the Location has any points. |
boolean |
hasPolygons()
Checks if the Location has any polygons. |
boolean |
hasRelationships()
Checks if the Location has any relationships. |
void |
setAddress(POIBaseType address)
Sets the address of the Location. |
| 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 Location()
Location, with no geometries or addresses.
| Method Detail |
|---|
public void addPoint(Point point)
Point to the Location.
point - the Point to be added.public void addLine(Line line)
Line to the Location.
line - the Line to be added.public void addPolygon(Polygon polygon)
Polygon to the Location.
polygon - the Polygon to be added.public void addRelationship(Relationship relationship)
Relationship to the Location.
relationship - the Relationship to be added.public java.util.List<Point> getPoint()
Location.
Point of the Location.public java.util.List<Line> getLine()
Location.
Line of the Location.public java.util.List<Polygon> getPolygon()
Location.
Polygon of the Location.public java.util.List<Relationship> getRelationship()
Location.
Relationship of the Location.public POIBaseType getAddress()
Location.
Location.public void setAddress(POIBaseType address)
Location.
address - the new address for the Location.public boolean hasPoints()
Location has any points.
true if there are points in the Location, false otherwise.public boolean hasLines()
Location has any lines.
true if there are lines in the Location, false otherwisepublic boolean hasPolygons()
Location has any polygons.
true if there are polygons in the Location, false otherwisepublic boolean hasRelationships()
Location has any relationships.
true if there are relationships in the Location, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||