Used as an aid to get data from a POI-based object. More...
Class Methods | |
| (void) | + setDefaultLocale: |
| Sets the default locale. If locale is nil, it defaults to en_GB. More... | |
| (NSDictionary *) | + getAvailableLangs:fromField: |
| Gets a mapping of all the available languages in a given field (description or label) of the POI object. More... | |
| (NSString *) | + getLabel:withTerm:andLocale: |
| Gets the label with the given term in a given language. More... | |
| (NSString *) | + getDescription:withLocale: |
| Gets the description in a given language. More... | |
| (NSString *) | + getPrice:withLocale: |
| Gets the price in a given language. More... | |
| (NSString *) | + getWaitingTime: |
| Gets the waiting time in a given language. More... | |
| (NSString *) | + getOccupation: |
| Gets the occupation in a given language. More... | |
| (NSArray *) | + getThumbnails: |
| Gets all the thumbnails in 64-base bytecode or URI. More... | |
| (NSArray *) | + getLocationGeometry:withTerm: |
| Gets a list of points of the POI object with the given term. More... | |
| (NSArray *) | + getLocationPoint:withTerm: |
| Gets a list of points of the POI object with the given term. It only checks the GeoPoint geometry. More... | |
| (NSArray *) | + getLocationLine:withTerm: |
| Gets a list of lines of the POI object with the given term. It only checks the Line geometry. More... | |
| (NSArray *) | + getLocationPolygon:withTerm: |
| Gets a list of polygons of the POI object with the given term. It only checks the Polygon geometry. More... | |
| (NSString *) | + getContacts: |
| Gets the contacts in vCard format. More... | |
| (NSString *) | + getCalendar:withTerm: |
| Returns an a calendar in iCalendar format of the given term. More... | |
| (NSArray *) | + getImagesUri: |
| Gets all the URI images of the given POI object. More... | |
| (NSString *) | + getRelationshipBase:withTerm: |
| Gets the relationship base with a given term. More... | |
| (NSString *) | + getRelationshipId:withTerm: |
| Gets the relationship id with a given term. More... | |
| (NSString *) | + getLink:withTerm: |
| Returns the link with a given term. More... | |
| (NSArray *) | + getTags:withLocale: |
| Gets the tags within the list of tags in a given language. More... | |
Protected Types | |
| enum | field { FIELD_LABELS, FIELD_DESCRIPTIONS } |
| typedef enum DataReader::field | Field |
Used as an aid to get data from a POI-based object.
It abstract the parsing of data and gets the information needed specified by the application using a given set of terms or languages. In case a given language is not found, it defaults to en_GB.
|
protected |
| + (NSDictionary *) getAvailableLangs: | (POI *) | poi | |
| fromField: | (Field) | field | |
Gets a mapping of all the available languages in a given field (description or label) of the POI object.
| poi | the object to get the data. |
| field | the desired field to check (FIELD_LABELS or FIELD_DESCRIPTIONS) |
| + (NSString *) getCalendar: | (POI *) | poi | |
| withTerm: | (Term) | term | |
Returns an a calendar in iCalendar format of the given term.
| poi | the object to get the data. |
| term | the term to search for. |
| + (NSString *) getContacts: | (POI *) | poi |
Gets the contacts in vCard format.
| poi | the object to get the data. |
| + (NSString *) getDescription: | (POI *) | poi | |
| withLocale: | (NSLocale *) | locale | |
Gets the description in a given language.
| poi | the object to get the data. |
| locale | the wanted language. |
| + (NSArray *) getImagesUri: | (POI *) | poi |
Gets all the URI images of the given POI object.
| poi | the object to get the data. |
| + (NSString *) getLabel: | (POI *) | poi | |
| withTerm: | (Term) | term | |
| andLocale: | (NSLocale *) | locale | |
Gets the label with the given term in a given language.
| poi | the object to get the data. |
| term | the term used. |
| locale | the wanted language. |
| + (NSString *) getLink: | (POI *) | poi | |
| withTerm: | (Term) | term | |
Returns the link with a given term.
| poi | the object to get the data. |
| term | the term used |
| + (NSArray *) getLocationGeometry: | (POI *) | poi | |
| withTerm: | (Term) | term | |
Gets a list of points of the POI object with the given term.
| poi | the object to get the data. |
| term | the term to be used. |
| + (NSArray *) getLocationLine: | (POI *) | poi | |
| withTerm: | (Term) | term | |
Gets a list of lines of the POI object with the given term. It only checks the Line geometry.
| poi | the object to get the data. |
| term | the term to be used. |
| + (NSArray *) getLocationPoint: | (POI *) | poi | |
| withTerm: | (Term) | term | |
Gets a list of points of the POI object with the given term. It only checks the GeoPoint geometry.
| poi | the object to get the data. |
| term | the term to be used. |
| + (NSArray *) getLocationPolygon: | (POI *) | poi | |
| withTerm: | (Term) | term | |
Gets a list of polygons of the POI object with the given term. It only checks the Polygon geometry.
| poi | the object to get the data. |
| term | the term to be used. |
| + (NSString *) getOccupation: | (POI *) | poi |
Gets the occupation in a given language.
| poi | the object to get the data. |
| + (NSString *) getPrice: | (POI *) | poi | |
| withLocale: | (NSLocale *) | locale | |
Gets the price in a given language.
| poi | the object to get the data. |
| locale | the wanted language. |
| + (NSString *) getRelationshipBase: | (POI *) | poi | |
| withTerm: | (Term) | term | |
Gets the relationship base with a given term.
| poi | the object to get the data. |
| term | the term used. |
| + (NSString *) getRelationshipId: | (POI *) | poi | |
| withTerm: | (Term) | term | |
Gets the relationship id with a given term.
| poi | the object to get the data. |
| term | the term used. |
| + (NSArray *) getTags: | (ListTag *) | tags | |
| withLocale: | (NSLocale *) | locale | |
Gets the tags within the list of tags in a given language.
| tags | the list of tags. |
| locale | the wanted language. |
| + (NSArray *) getThumbnails: | (POI *) | poi |
Gets all the thumbnails in 64-base bytecode or URI.
| poi | the object to get the data. |
| + (NSString *) getWaitingTime: | (POI *) | poi |
Gets the waiting time in a given language.
| poi | the object to get the data. |
| + (void) setDefaultLocale: | (NSLocale *) | locale |
Sets the default locale. If locale is nil, it defaults to en_GB.
| locale | the wanted default locale. |
1.8.3.1-20130324