]> err.no Git - sope/blob - sope-ical/versitSaxDriver/VSSaxDriver.h
import of overhauled version of versitSaxDriver
[sope] / sope-ical / versitSaxDriver / VSSaxDriver.h
1 /*
2  Copyright (C) 2003-2004 Max Berger
3  Copyright (C) 2004 OpenGroupware.org
4  
5  This file is part of versitSaxDriver, written for the OpenGroupware.org 
6  project (OGo).
7  
8  OGo is free software; you can redistribute it and/or modify it under
9  the terms of the GNU Lesser General Public License as published by the
10  Free Software Foundation; either version 2, or (at your option) any
11  later version.
12  
13  OGo is distributed in the hope that it will be useful, but WITHOUT ANY
14  WARRANTY; without even the implied warranty of MERCHANTABILITY or
15  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
16  License for more details.
17  
18  You should have received a copy of the GNU Lesser General Public
19  License along with OGo; see the file COPYING.  If not, write to the
20  Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
21  02111-1307, USA.
22  */
23 // $Id$
24
25 #ifndef __versitSaxDriver_VSSaxDriver_H__
26 #define __versitSaxDriver_VSSaxDriver_H__
27
28 #import <Foundation/Foundation.h>
29
30 #include <SaxObjC/SaxXMLReader.h>
31
32 @interface VSSaxDriver : NSObject < SaxXMLReader > 
33 {
34   id<NSObject,SaxContentHandler> contentHandler;
35   NSString                       *prefixURI;
36   NSMutableArray                 *cardStack;
37   NSMutableArray                 *elementList;
38   
39   NSSet                          *attributeElements;
40   NSDictionary                   *elementMapping; 
41   
42   NSMutableDictionary            *attributeMapping;
43   NSMutableDictionary            *subItemMapping;
44 }
45
46 - (NSSet *)attributeElements;
47 - (void)setAttributeElements:(NSSet *)_elements;
48
49 - (NSDictionary *)elementMapping;
50 - (void)setElementMapping:(NSDictionary *)_mapping;
51
52 - (NSString *)prefixURI;
53 - (void)setPrefixURI:(NSString*)_uri;
54
55 - (void)setAttributeMapping:(NSDictionary *)_mapping;
56 - (void)setAttributeMapping:(NSDictionary *)_mapping 
57   forElement:(NSString *)_element;
58
59 - (void)setSubItemMapping:(NSArray *)_mapping 
60   forElement:(NSString *)_element;
61
62 @end
63
64 #endif /* __versitSaxDriver_VersitSaxDriver_H__ */