-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSWXMLMappingParser.h
48 lines (34 loc) · 1.18 KB
/
SWXMLMappingParser.h
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// SWXMLMappingParser.h
// This file is part of the "SWXMLMapping" project, and is distributed under the MIT License.
//
// Created by Samuel Williams on 13/11/05.
// Copyright 2005 Samuel Williams. All rights reserved.
//
#import "SWXMLMapping.h"
#import "SWXMLClassMapping.h"
#import "SWXMLStringMapping.h"
#import "SWXMLDateMapping.h"
#import "SWXMLCollectionMapping.h"
@class SWXMLMapping, SWXMLClassMapping;
@class SWXMLStringMapping, SWXMLDateMapping, SWXMLCollectionMapping, SWXMLNumberMapping, SWXMLBooleanMapping;
@interface SWXMLMappingParser : NSObject <NSXMLParserDelegate> {
/* Root state */
NSMutableDictionary *objectMappings;
NSDictionary *mappingAttributes;
/* Object state */
SWXMLClassMapping *objectMapping;
NSDictionary *objectAttributes;
/* List of object members */
NSMutableArray *memberMappings;
NSXMLParser *XMLParser;
NSDictionary *memberMappingClasses;
//NSURL *XMLURL;
}
- (instancetype) init NS_UNAVAILABLE;
- (instancetype) initWithURL: (NSURL*)loc NS_DESIGNATED_INITIALIZER;
- (instancetype) initWithData: (NSData*)data NS_DESIGNATED_INITIALIZER;
+ defaultMemberMappings;
- (NSDictionary*) parse;
- (NSDictionary*) mappingAttributes;
@end