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 #ifndef __SaxObjC_SaxObjectDecoder_H__
24 #define __SaxObjC_SaxObjectDecoder_H__
26 #include <SaxObjC/SaxDefaultHandler.h>
29 This SAX handler takes a model dictionary and maps the SAX events
30 to object construction commands.
32 [to be done: further description of format and function]
35 @class SaxObjectModel;
37 @interface SaxObjectDecoder : SaxDefaultHandler
39 id<NSObject,SaxLocator> locator;
43 NSMutableArray *infoStack;
44 NSMutableArray *mappingStack;
45 NSMutableArray *objectStack;
48 - (id)initWithMappingModel:(SaxObjectModel *)_model;
49 - (id)initWithMappingAtPath:(NSString *)_path;
50 - (id)initWithMappingNamed:(NSString *)_name;
62 @interface NSObject(SaxObjectCoding)
64 - (id)initWithSaxDecoder:(SaxObjectDecoder *)_decoder;
65 - (id)awakeAfterUsingSaxDecoder:(SaxObjectDecoder *)_decoder;
69 #endif /* __SaxObjC_SaxObjectDecoder_H__ */