-
Notifications
You must be signed in to change notification settings - Fork 0
/
SWXMLClassMapping.h
37 lines (26 loc) · 1.04 KB
/
SWXMLClassMapping.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
//
// SWXMLClassMapping.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 "SWXMLMemberMapping.h"
@class SWXMLMapping, SWXMLMemberMapping;
@interface SWXMLClassMapping : NSObject {
NSString * _objectClassName;
NSString * _tag;
// List of tags (SWXMLMemberMapping)
NSArray * _members;
NSDictionary * _attributes;
}
@property(nonatomic,strong) NSString * objectClassName;
@property(nonatomic,strong) NSString * tag;
@property(nonatomic,strong) NSArray * members;
@property(nonatomic,strong) NSDictionary * attributes;
- (instancetype) init NS_UNAVAILABLE;
- (instancetype) initWithTag:(NSString*)tag forClass:(NSString*)objectClassName attributes:(NSDictionary *)attributes NS_DESIGNATED_INITIALIZER;
- (NSArray *)membersForObject:(id)object withMapping:(SWXMLMapping *)mapping;
- (NSString *)serializeObject:(id)object withMapping:(SWXMLMapping *)mapping;
@end