PageRenderTime 25ms CodeModel.GetById 13ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/JMRSwitchMappingType.h

http://rtm2cocoa.googlecode.com/
C++ Header | 39 lines | 20 code | 8 blank | 11 comment | 0 complexity | 39ede039258c244e47f212caf39b89d3 MD5 | raw file
 1//
 2//  JMRSwitchMappingType.h
 3//  Excelsior
 4//
 5//  Created by Jim Rankin on Fri Apr 09 2004.
 6//  Copyright (c) 2004 __MyCompanyName__. All rights reserved.
 7//
 8
 9#import <Foundation/Foundation.h>
10#import "JMRMapping.h"
11#import "JMRObjectMapping.h"
12#import "XMLKeyValueElement.h"
13
14@interface JMRSwitchMappingType : JMRObjectMapping {
15    // map by xmlPath
16    NSMutableDictionary *_xmlMappingsDict;    
17    // map by class
18    NSMutableDictionary *_classMappingsDict;    
19}
20
21// constructors and initializers
22
23+(JMRSwitchMappingType *)mappingWithMappings:(NSMutableArray *)mappings;
24-(id)initWithMappings:(NSMutableArray *)mappings;
25
26// accessors
27
28-(NSMutableDictionary *)xmlMappingsDict;
29-(void)setXmlMappingsDict:(NSMutableDictionary *)value;
30-(NSMutableDictionary *)classMappingsDict;
31-(void)setClassMappingsDict:(NSMutableDictionary *)value;
32
33-(JMRMapping *)mappingForXmlTag:(NSString *)tag;
34-(JMRMapping *)mappingForClass:(Class *)c;
35-(NSString *)xmlPathForObject:(id)o;
36-(JMRObjectMapping *)objectMappingForObject:(id)o;
37-(JMRObjectMapping *)objectMappingForElement:(XMLKeyValueElement *)elt;
38
39@end