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

Representation of a Category object. More...

Inheritance diagram for Category:
POI POIType <Deserializable> POIBaseType

Instance Methods

(void) - addCategory:
 Adds a Category to this Category. More...
 
(NSMutableArray *) - subCategories
 
(Category *) - getCategory:
 Gets the category at a given index. More...
 
(int) - getNumCategories
 Gets the number of sub categories in the Category. More...
 
(BOOL) - hasSubCategories
 Checks whether this Category has sub-categories. More...
 
- Instance Methods inherited from POI
(BOOL) - hasAdddress
 Checks whether the POI has an address associated. More...
 
- Instance Methods inherited from POIType
(void) - addLabel:
 Adds a label to the POIType. More...
 
(void) - addDescription:
 Adds a description to the POIType. More...
 
(void) - addCategory:
 Adds a category to the POIType. More...
 
(void) - addTime:
 Adds a time to the POIType. More...
 
(void) - addLink:
 Adds a link to the POIType. More...
 
(BOOL) - hasLabels
 Checks if there are labels in the POIType. More...
 
(BOOL) - hasDescriptions
 Checks if there are descriptions in the POIType. More...
 
(BOOL) - hasCategories
 Checks if there are categories in the POIType. More...
 
(BOOL) - hasTimes
 Checks if there are times in the POIType. More...
 
(BOOL) - hasLinks
 Checks if there are links in the POIType. More...
 

Properties

NSMutableArray * subCategories
 Gets all the sub categories of the Category. More...
 
- Properties inherited from POI
Locationlocation
 
- Properties inherited from POIType
NSMutableArray * label
 a human-readable name. Multiple names are used for synonyms and multiple languages
 
NSMutableArray * poiDescription
 a human-readable description that can be discriminated with the language attribute
 
NSMutableArray * category
 a categorical classification
 
NSMutableArray * time
 a fixed time or sequence of times using iCalendar
 
NSMutableArray * link
 a link to another POI or web resource
 
- 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 a Category object.

A Category is used to characterize PointOfInterest, Event or Route. It can contain its own set of sub-categories.

Author
Pedro Cruz

Method Documentation

- (void) addCategory: (Category *)  category

Adds a Category to this Category.

Parameters
categoryCategory to be added.
- (Category *) getCategory: (int)  index

Gets the category at a given index.

Parameters
indexan index
Returns
the category at index index
- (int) getNumCategories

Gets the number of sub categories in the Category.

Returns
the total number of sub-categories.
- (BOOL) hasSubCategories

Checks whether this Category has sub-categories.

Returns
true if it has sub-categories, false otherwise

Property Documentation

- (NSMutableArray *) subCategories
readatomicretain

Gets all the sub categories of the Category.

Returns
an array of Category.

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