-
Notifications
You must be signed in to change notification settings - Fork 0
/
SWXMLMemberMapping.h
31 lines (21 loc) · 1014 Bytes
/
SWXMLMemberMapping.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
//
// SWXMLMemberMapping.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 "SWXMLTags.h"
@class SWXMLMapping;
typedef NSDictionary<NSString *, NSString *> NSAttributeDictionary;
@interface SWXMLMemberMapping : NSObject
@property(nonatomic,strong) NSString * tag;
@property(nonatomic,strong) NSString * keyPath;
@property(nonatomic,strong) NSAttributeDictionary * attributes;
// Remap the class name of a given object with this name if specified:
@property(nonatomic,strong) NSString * objectClassName;
- (instancetype) init NS_UNAVAILABLE;
- (instancetype) initWithTag: (NSString*)tag keyPath: (NSString*)keyPath attributes: (NSAttributeDictionary* )attributes NS_DESIGNATED_INITIALIZER;
- (instancetype) initWithAttributes: (NSDictionary*)attributes;
- (NSString*) serializedObjectMember:(id)object withMapping:(SWXMLMapping*)mapping;
@end