mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 20:31:13 +08:00
Ported RestKit to using managed object contexts with concurrency types. Numerous cleanups and API updates.
This commit is contained in:
28
Code/ObjectMapping/RKDynamicMappingMatcher.h
Normal file
28
Code/ObjectMapping/RKDynamicMappingMatcher.h
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// RKDynamicMappingMatcher.h
|
||||
// RestKit
|
||||
//
|
||||
// Created by Jeff Arena on 8/2/11.
|
||||
// Copyright (c) 2009-2012 RestKit. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "RKObjectMapping.h"
|
||||
|
||||
|
||||
@interface RKDynamicMappingMatcher : NSObject {
|
||||
NSString *_keyPath;
|
||||
id _value;
|
||||
BOOL (^_isMatchForDataBlock)(id data);
|
||||
}
|
||||
|
||||
@property (nonatomic, readonly) RKObjectMapping *objectMapping;
|
||||
@property (nonatomic, readonly) NSString *primaryKeyAttribute;
|
||||
|
||||
- (id)initWithKey:(NSString *)key value:(id)value objectMapping:(RKObjectMapping *)objectMapping;
|
||||
- (id)initWithKey:(NSString *)key value:(id)value primaryKeyAttribute:(NSString *)primaryKeyAttribute;
|
||||
- (id)initWithPrimaryKeyAttribute:(NSString *)primaryKeyAttribute evaluationBlock:(BOOL (^)(id data))block;
|
||||
- (BOOL)isMatchForData:(id)data;
|
||||
- (NSString *)matchDescription;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user