mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-20 23:51:11 +08:00
Added support for configuring objectClass using the class name instead of Class object.
This commit is contained in:
@@ -59,6 +59,13 @@ relationship. Relationships are processed using an object mapping as well.
|
||||
*/
|
||||
@property (nonatomic, assign) Class objectClass;
|
||||
|
||||
/**
|
||||
The name of the target class the receiver defines a mapping for.
|
||||
|
||||
@see objectClass
|
||||
*/
|
||||
@property (nonatomic, copy) NSString *objectClassName;
|
||||
|
||||
/**
|
||||
The aggregate collection of attribute and relationship mappings within this object mapping
|
||||
*/
|
||||
@@ -146,6 +153,14 @@ relationship. Relationships are processed using an object mapping as well.
|
||||
*/
|
||||
+ (id)mappingForClass:(Class)objectClass;
|
||||
|
||||
/**
|
||||
Creates and returns an object mapping for the class with the given name
|
||||
|
||||
@param objectClassName The name of the class the mapping is for.
|
||||
@return A new object mapping with for the class with given name.
|
||||
*/
|
||||
+ (id)mappingForClassWithName:(NSString *)objectClassName;
|
||||
|
||||
/**
|
||||
Returns an object mapping useful for configuring a serialization mapping. The object
|
||||
class is configured as NSMutableDictionary
|
||||
|
||||
Reference in New Issue
Block a user