PageRenderTime 50ms CodeModel.GetById 46ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/JMRConstantMappingType.m

http://rtm2cocoa.googlecode.com/
Objective C | 32 lines | 16 code | 7 blank | 9 comment | 1 complexity | 03fb7617bcd2d7c9c5087423225969b0 MD5 | raw file
 1//
 2//  JMRConstantMappingType.m
 3//  Excelsior
 4//
 5
 6/*
 7 
 8 This work is licensed under the Creative Commons Attribution License. To view a copy of this license, visit http://creativecommons.org/licenses/by/1.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
 9 
10 */
11
12#import "JMRConstantMappingType.h"
13
14@implementation JMRConstantMappingType
15
16-(BOOL)isConstant {
17    return YES;
18}
19
20-(id)initWithDefaultString:(NSString *)value {
21    if (self = [super init]) {
22        [self setDefaultString:value];
23        return self;
24    }
25    return nil;
26}
27
28+(JMRConstantMappingType *)constantMappingWithDefaultString:(NSString *)value {
29    return [[[JMRConstantMappingType alloc] initWithDefaultString:value] autorelease];
30}
31
32@end