]> err.no Git - sope/blob - sope-ical/versitSaxDriver/VSSaxDriver.h
fixed a syntax error in the .xmap
[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  SOPE 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  SOPE 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 SOPE; 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
24 #ifndef __versitSaxDriver_VSSaxDriver_H__
25 #define __versitSaxDriver_VSSaxDriver_H__
26
27 #import <Foundation/Foundation.h>
28
29 #include <SaxObjC/SaxXMLReader.h>
30
31 @interface VSSaxDriver : NSObject < SaxXMLReader > 
32 {
33   id<NSObject,SaxContentHandler> contentHandler;
34   NSString                       *prefixURI;
35   NSMutableArray                 *cardStack;
36   NSMutableArray                 *elementList;
37   
38   NSSet                          *attributeElements;
39   NSDictionary                   *elementMapping; 
40   
41   NSMutableDictionary            *attributeMapping;
42   NSMutableDictionary            *subItemMapping;
43 }
44
45 - (NSSet *)attributeElements;
46 - (void)setAttributeElements:(NSSet *)_elements;
47
48 - (NSDictionary *)elementMapping;
49 - (void)setElementMapping:(NSDictionary *)_mapping;
50
51 - (NSString *)prefixURI;
52 - (void)setPrefixURI:(NSString*)_uri;
53
54 - (void)setAttributeMapping:(NSDictionary *)_mapping;
55 - (void)setAttributeMapping:(NSDictionary *)_mapping 
56   forElement:(NSString *)_element;
57
58 - (void)setSubItemMapping:(NSArray *)_mapping 
59   forElement:(NSString *)_element;
60
61 @end
62
63 #endif /* __versitSaxDriver_VersitSaxDriver_H__ */