mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-10 05:36:30 +08:00
Cleanup trailing whitespace. refs #743
This commit is contained in:
@@ -4,13 +4,13 @@
|
||||
//
|
||||
// Created by Blake Watters on 7/31/11.
|
||||
// Copyright (c) 2009-2012 RestKit. All rights reserved.
|
||||
//
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@@ -19,21 +19,21 @@
|
||||
//
|
||||
|
||||
/**
|
||||
RKObjectMappingDefinition is an abstract class for objects defining RestKit object mappings.
|
||||
Its interface is common to all object mapping classes, including its concrete subclasses
|
||||
RKObjectMappingDefinition is an abstract class for objects defining RestKit object mappings.
|
||||
Its interface is common to all object mapping classes, including its concrete subclasses
|
||||
RKObjectMapping and RKDynamicObjectMapping.
|
||||
*/
|
||||
@interface RKObjectMappingDefinition : NSObject
|
||||
|
||||
/**
|
||||
The root key path for the receiver.
|
||||
|
||||
|
||||
Root key paths are handled differently depending on the context in which the mapping is
|
||||
being used. If the receiver is used for object mapping, the rootKeyPath specifies a nested
|
||||
root dictionary that all attribute and relationship mappings will be considered relative to. When
|
||||
the mapping is used in a serialization context, the rootKeyPath specifies that the serialized content
|
||||
should be stored in a dictionary nested with the rootKeyPath as the key.
|
||||
|
||||
|
||||
@see RKObjectSerializer
|
||||
*/
|
||||
@property (nonatomic, copy) NSString *rootKeyPath;
|
||||
@@ -42,21 +42,21 @@
|
||||
Forces the mapper to treat the mapped keyPath as a collection even if it does not
|
||||
return an array or a set of objects. This permits mapping where a dictionary identifies
|
||||
a collection of objects.
|
||||
|
||||
|
||||
When enabled, each key/value pair in the resolved dictionary will be mapped as a separate
|
||||
entity. This is useful when you have a JSON structure similar to:
|
||||
|
||||
|
||||
{ "users":
|
||||
{
|
||||
"blake": { "id": 1234, "email": "blake@restkit.org" },
|
||||
"rachit": { "id": 5678", "email": "rachit@restkit.org" }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
By enabling forceCollectionMapping, RestKit will map "blake" => attributes and
|
||||
"rachit" => attributes as independent objects. This can be combined with
|
||||
mapKeyOfNestedDictionaryToAttribute: to properly map these sorts of structures.
|
||||
|
||||
|
||||
@default NO
|
||||
@see mapKeyOfNestedDictionaryToAttribute
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user