PageRenderTime 19ms CodeModel.GetById 11ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/JMRXMLNode.h

http://rtm2cocoa.googlecode.com/
C++ Header | 48 lines | 33 code | 7 blank | 8 comment | 0 complexity | 2f0ae850c3e708275ea5d6b1dfae23d8 MD5 | raw file
 1//
 2//  JMRXMLNode.h
 3
 4/*
 5
 6This work is licensed under the Creative Commons Attribution License. To view a copy of this license, visit http://creativecommons.org/licenses/by/1.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
 7
 8*/
 9
10#import <Foundation/Foundation.h>
11#include <CoreFoundation/CoreFoundation.h>
12
13@interface JMRXMLNode : NSObject {
14    CFXMLNodeRef _xmlNode;
15    NSMutableDictionary *_attributes;
16    NSMutableArray *_attributeOrder;
17}
18
19// accessors
20-(NSMutableDictionary *)getAttributes;
21-(void)setAttributes:(NSMutableDictionary *)value;
22-(NSMutableArray *)getAttributeOrder;
23-(void)setAttributeOrder:(NSMutableArray *)value;
24
25-(id)initWithString:(NSString *)string type:(int)type info:(CFXMLElementInfo *)info;
26-(id)initWithCFXMLNodeRef:(CFXMLNodeRef)nodeRef;
27-(id)initWithName:(NSString *)tagName;
28-(id)initWithText:(NSString *)text;
29-(id)initWithCdata:(NSString *)cdata;
30
31+(JMRXMLNode *)nodeWithCFXMLNodeRef:(CFXMLNodeRef)nodeRef;
32+(JMRXMLNode *)nodeWithName:(NSString *)tagName;
33+(JMRXMLNode *)nodeWithText:(NSString *)text;
34+(JMRXMLNode *)nodeWithCdata:(NSString *)cdata;
35
36-(CFXMLNodeRef)nodeRef;
37-(NSString *)getString;
38-(NSString *)getAttributeForKey:(NSString *)key;
39-(void)setAttribute:(NSString *)value forKey:(NSString *)key;
40-(BOOL)isType:(int)type;
41-(BOOL)isElement;
42-(BOOL)isComment;
43-(BOOL)isProcessingInstruction;
44-(BOOL)isText;
45-(BOOL)isCdata;
46-(BOOL)isDocument;
47-(void)dealloc;
48@end