-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathDCCustomParser.h
More file actions
25 lines (19 loc) · 850 Bytes
/
DCCustomParser.h
File metadata and controls
25 lines (19 loc) · 850 Bytes
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
//
// DCCustomParser.h
// KeyValueObjectMapping
//
// Created by Diego Chohfi on 9/3/12.
// Copyright (c) 2012 dchohfi. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef id(^DCCustomParserBlock)(__weak NSDictionary *dictionary, __weak NSString *attributeName, __weak Class destinationClass, __weak id value);
@interface DCCustomParser : NSObject
@property(nonatomic, readonly) NSString *attributeName;
@property(nonatomic, readonly) Class destinationClass;
@property(nonatomic, readonly) DCCustomParserBlock blockParser;
- (id) initWithBlockParser: (DCCustomParserBlock) blockParser
forAttributeName: (NSString *) attributeName
onDestinationClass: (Class) classe;
- (BOOL) isValidToPerformBlockOnAttributeName: (NSString *) attributeName
forClass: (Class) classe;
@end