Files
RestKit/Code/Support/RKParser.h
Blake Watters f3c0995d5e Implementation of Object Mapping 2.0 design:
* Removed RestKit from inheritance hierarchy
  * Mappings are implemented as concrete classes
  * Mapper is much more flexible & powerful
  * Much more robust error handling
  * Serialization is reimplemented as an object mapping operation
  * Added ability to serialize to JSON natively
  * Reworked Core Data integration
  * Simplified the codebase substantially
2011-06-11 19:26:56 -04:00

25 lines
631 B
Objective-C

//
// RKParser.h
// RestKit
//
// Created by Blake Watters on 10/1/10.
// Copyright 2010 Two Toasters. All rights reserved.
//
/**
* A Parser is responsible for transforming a string
* of data into a dictionary. This allows the model mapper to
* map properties using key-value coding
*/
@protocol RKParser
/**
* Return a key-value coding compliant representation of a payload.
* Object attributes are encoded as a dictionary and collections
* of objects are returned as arrays.
*/
- (id)objectFromString:(NSString*)string error:(NSError**)error;
- (NSString*)stringFromObject:(id)object error:(NSError**)error;
@end