arq_restore/plist/StringNode.m
Stefan Reitshamer cbe20c007e Merged in many changes from Arq mainline development.
(Sorry for the lame commit comment).
2010-08-19 13:25:23 -04:00

42 lines
658 B
Objective-C

//
// StringNode.m
// Backup
//
// Created by Stefan Reitshamer on 4/13/09.
// Copyright 2009 PhotoMinds LLC. All rights reserved.
//
#import "PListNodeType.h"
#import "StringNode.h"
@implementation StringNode
- (id)initWithString:(NSString *)theValue {
if (self = [super init]) {
value = [theValue copy];
}
return self;
}
- (void)dealloc {
[value release];
[super dealloc];
}
- (NSString *)stringValue {
return value;
}
#pragma mark PListNode protocol
- (int)type {
return PLN_STRING;
}
#pragma mark NSObject protocol
- (NSString *)description {
return [NSString stringWithFormat:@"<StringNode 0x%x \"%@\">", self, value];
}
@end