5 // Created by Sam McCall on 4/05/09.
6 // Copyright 2009 University of Otago. All rights reserved.
12 @interface NJMapping
: NSObject
14 @
property (nonatomic
, copy
) NSString
*name
;
15 @
property (nonatomic
, readonly
) NSMutableDictionary
*entries
;
17 - (id
)initWithName
:(NSString
*)name
;
18 - (NJOutput
*)objectForKeyedSubscript
:(NJInput
*)input
;
19 - (void)setObject
:(NJOutput
*)output forKeyedSubscript
:(NJInput
*)input
;
20 - (NSDictionary
*)serialize
;
21 - (BOOL
)writeToURL
:(NSURL
*)url error
:(NSError
**)error
;
23 + (id
)mappingWithContentsOfURL
:(NSURL
*)url mappings
:(NSArray
*)mappings error
:(NSError
**)error
;