2 Copyright (C) 2000-2004 SKYRIX Software AG
4 This file is part of OpenGroupware.org.
6 OGo is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 OGo is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with OGo; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
23 #include "SaxLocator.h"
26 @implementation SaxLocator
31 - (id)initWithLocator:(id<SaxLocator>)_locator {
32 if ((self = [self init])) {
33 self->column = [_locator columnNumber];
34 self->line = [_locator lineNumber];
35 self->pubId = [[_locator publicId] copy];
36 self->sysId = [[_locator systemId] copy];
42 [self->pubId release];
43 [self->sysId release];
49 - (void)setColumnNumber:(int)_col {
56 - (void)setLineNumber:(int)_line {
63 - (void)setPublicId:(NSString *)_pubId {
65 self->pubId = [_pubId copy];
68 - (NSString *)publicId {
72 - (void)setSystemId:(NSString *)_sysId {
74 self->sysId = [_sysId copy];
77 - (NSString *)systemId {
83 - (id)copyWithZone:(NSZone *)_zone {
84 return [[[self class] allocWithZone:_zone] initWithLocator:self];