-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOpalXMLResourceParser.h
33 lines (25 loc) · 979 Bytes
/
OpalXMLResourceParser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
// OpalXMLResourceParser.h
// Opal
//
// Created by Christian Niles on 5/22/10.
// Copyright 2010 Christian Niles. All rights reserved.
//
#import <Foundation/Foundation.h>
@class OpalXMLParser;
@interface OpalXMLResourceParser : NSObject {
}
+ (NSDictionary *)parseResourceFromString:(NSString *)resourceXML;
+ (NSDictionary *)parseResource:(OpalXMLParser *)parser;
+ (id)parseResourceValue:(OpalXMLParser *)parser;
+ (NSNumber *)parseIntegerValue:(OpalXMLParser *)parser;
+ (NSMutableArray *)parseArrayValue:(OpalXMLParser *)parser;
+ (NSDate *)parseDateValue:(OpalXMLParser *)parser;
+ (id)parseUntypedValue:(OpalXMLParser *)parser;
+ (void)writeResource:(id)resource
toXMLString:(NSMutableString *)xmlString;
+ (void)writeResourceData:(NSDictionary *)resourceData
toXMLString:(NSMutableString *)xmlString;
+ (void)writeResources:(NSEnumerator *)resourceEnumerator
toXMLString:(NSMutableString *)xmlString;
@end