CitySDK iOS Library
 All Classes Functions Variables Enumerations Enumerator Properties
UriTemplate.h
1 /*
2  * COPYRIGHT NOTICE:
3  *
4  * This file is part of CitySDK WP5 Tourism Objective-C Library.
5  *
6  * CitySDK WP5 Tourism Objective-C Library is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * CitySDK WP5 Tourism Objective-C Library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with CitySDK WP5 Tourism Objective-C Library. If not, see <http://www.gnu.org/licenses/>.
18  *
19  * Copyright 2013, IST
20  */
21 #import <Foundation/Foundation.h>
22 #import "Operator.h"
23 
24 @interface UriTemplate : NSObject
25 @property (nonatomic, copy) NSString *template;
26 @property (nonatomic, retain) NSMutableDictionary *values;
27 
28 + (UriTemplate *) fromTemplate:(NSString *) template;
29 - (void) set:(NSString *) name withValue:(id) value;
30 - (BOOL) hasParameter:(NSString *) parameter;
31 - (NSString *) build;
32 @end