CitySDK iOS Library
 All Classes Functions Variables Enumerations Enumerator Properties
Instance Methods | Properties | List of all members
Location Class Reference

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. More...

Inheritance diagram for Location:
POIBaseType

Instance Methods

(void) - addPoint:
 Adds a Point to the Location. More...
 
(void) - addLine:
 Adds a Line to the Location. More...
 
(void) - addPolygon:
 Adds a Polygon to the Location. More...
 
(void) - addRelationship:
 Adds a Relationship to the Location. More...
 
(BOOL) - hasPoints
 Checks if the Location has any points. More...
 
(BOOL) - hasLines
 Checks if the Location has any lines. More...
 
(BOOL) - hasPolygons
 Checks if the Location has any polygons. More...
 
(BOOL) - hasRelationships
 Checks if the Location has any relationships. More...
 

Properties

NSMutableArray * point
 Gets all points of the Location. More...
 
NSMutableArray * line
 Gets all lines of the Location. More...
 
NSMutableArray * polygon
 Gets all the polygons of the Location. More...
 
POIBaseTypeaddress
 Gets the address of the Location. More...
 
NSMutableArray * relationship
 Gets all the relationships of the Location. More...
 
- Properties inherited from POIBaseType
NSString * baseID
 a unique identifier for this POI. Can be a URI fragment
 
NSString * value
 the information content
 
NSString * href
 an absolute reference to the content type
 
NSString * type
 MIME type.
 
NSString * lang
 language type
 
NSString * base
 base URI
 
NSDate * created
 time at which this POIBaseType was created
 
NSDate * updated
 time at which this POIBaseType was updated
 
NSDate * deleted
 time at which this POIBaseType was deleted
 
POITermTypeauthor
 the author of this POIBaseType
 
POITermTypelicense
 the license restrictions of this information
 

Detailed Description

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:

Author
Pedro Cruz

Method Documentation

- (void) addLine: (Line *)  line

Adds a Line to the Location.

Parameters
linethe Line to be added.
- (void) addPoint: (GeoPoint *)  point

Adds a Point to the Location.

Parameters
pointthe GeoPoint to be added.
- (void) addPolygon: (Polygon *)  polygon

Adds a Polygon to the Location.

Parameters
polygonthe Polygon to be added.
- (void) addRelationship: (Relationship *)  relationship

Adds a Relationship to the Location.

Parameters
relationshipthe Relationship to be added.
- (BOOL) hasLines

Checks if the Location has any lines.

Returns
true if there are lines in the Location, false otherwise
- (BOOL) hasPoints

Checks if the Location has any points.

Returns
true if there are points in the Location, false otherwise.
- (BOOL) hasPolygons

Checks if the Location has any polygons.

Returns
true if there are polygons in the Location, false otherwise
- (BOOL) hasRelationships

Checks if the Location has any relationships.

Returns
true if there are relationships in the Location, false otherwise

Property Documentation

- (POIBaseType *) address
readatomicretain

Gets the address of the Location.

Returns
the address of the Location.
- (NSMutableArray *) line
readatomicretain

Gets all lines of the Location.

Returns
an array of Line of the Location.
- (NSMutableArray *) point
readatomicretain

Gets all points of the Location.

Returns
an array of GeoPoint of the Location.
- (NSMutableArray *) polygon
readatomicretain

Gets all the polygons of the Location.

Returns
an array of Polygon of the Location.
- (NSMutableArray *) relationship
readatomicretain

Gets all the relationships of the Location.

Returns
an array of Relationship of the Location.

The documentation for this class was generated from the following files: