-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOTRestModelMapper_Private.h
More file actions
28 lines (25 loc) · 1.13 KB
/
OTRestModelMapper_Private.h
File metadata and controls
28 lines (25 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* OTRestModelMapper_Private.h
* OTRestFramework
*
* Created by Jeremy Ellison on 8/18/09.
* Copyright 2009 Two Toasters. All rights reserved.
*
*/
@interface OTRestModelMapper (Private)
- (id)buildModelFromJSON:(NSString*)JSON;
- (id)buildModelFromJSONDictionary:(NSDictionary*)dict;
- (void)setPropertiesOfModel:(id)model fromJSONDictionary:(NSDictionary*)dict;
- (void)setRelationshipsOfModel:(id)model fromJSONDictionary:(NSDictionary*)dict;
- (id)createOrUpdateInstanceOf:(Class)class fromJSONDictionary:(NSDictionary*)dict;
- (void)setAttributes:(id)object fromJSONDictionary:(NSDictionary*)dict;
- (id)buildModelFromXML:(Element*)XML;
- (id)createOrUpdateInstanceOf:(Class)class fromXML:(Element*)XML;
- (void)setAttributes:(id)object fromXML:(Element*)XML;
- (void)setPropertiesOfModel:(id)model fromXML:(Element*)XML;
- (void)setRelationshipsOfModel:(id)model fromXML:(Element*)XML;
- (NSString*)nameForProperty:(NSString*)property ofClass:(Class)class;
- (BOOL)isParentSelector:(NSString*)key;
- (NSString*)containingElementNameForSelector:(NSString*)selector;
- (NSString*)childElementNameForSelelctor:(NSString*)selector;
@end