Overview
Comment: | Add more accessors to OFXMLElement. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
714aad6fba63172a57422368fd737047 |
User & Date: | js on 2010-07-09 20:45:35 |
Other Links: | manifest | tags |
Context
2010-07-25
| ||
11:23 | Update buildsys. This allows building a static and a shared lib at once. check-in: 85640ce6c1 user: js tags: trunk | |
2010-07-09
| ||
20:45 | Add more accessors to OFXMLElement. check-in: 714aad6fba user: js tags: trunk | |
2010-07-08
| ||
23:39 | Add -[bindPrefix:forNamespace] and -[bindDefaultNamespace:]. check-in: 62d6cdadb6 user: js tags: trunk | |
Changes
Modified src/OFXMLElement.h from [11a7413503] to [b47f96a6fe].
︙ | ︙ | |||
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 34 35 36 37 38 | * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #import "OFObject.h" @class OFString; @class OFMutableString; @class OFMutableArray; @class OFMutableDictionary; @class OFXMLAttribute; @interface OFXMLElement: OFObject { OFString *name; OFString *namespace; OFString *defaultNamespace; OFMutableArray *attributes; OFMutableDictionary *namespaces; OFMutableArray *children; OFString *characters; OFString *cdata; OFMutableString *comment; } /** * \param name The name for the element * \return A new autoreleased OFXMLElement with the specified element name */ + elementWithName: (OFString*)name; | > > > > > > > > > | 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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #import "OFObject.h" @class OFString; @class OFArray; @class OFMutableString; @class OFMutableArray; @class OFMutableDictionary; @class OFXMLAttribute; @interface OFXMLElement: OFObject { OFString *name; OFString *namespace; OFString *defaultNamespace; OFMutableArray *attributes; OFMutableDictionary *namespaces; OFMutableArray *children; OFString *characters; OFString *cdata; OFMutableString *comment; } #ifdef OF_HAVE_PROPERTIES @property (readonly, copy) OFString *name; @property (readonly, copy) OFString *namespace; @property (copy) OFString *defaultNamespace; @property (readonly, copy) OFArray *attributes; @property (readonly, copy) OFArray *children; #endif /** * \param name The name for the element * \return A new autoreleased OFXMLElement with the specified element name */ + elementWithName: (OFString*)name; |
︙ | ︙ | |||
160 161 162 163 164 165 166 167 168 169 170 171 172 173 | * specified comment. * * \param comment The comment the element represents * \return An initialized OFXMLElement consisting of the specified comment */ - initWithComment: (OFString*)comment; /** * \return A new autoreleased OFString representing the OFXMLElement as an * XML string */ - (OFString*)string; /** | > > > > > > > > > > > > > > > > > > > > | 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 | * specified comment. * * \param comment The comment the element represents * \return An initialized OFXMLElement consisting of the specified comment */ - initWithComment: (OFString*)comment; /** * \return The name of the element */ - (OFString*)name; /** * \return The namespace of the element */ - (OFString*)namespace; /** * \return An OFArray with the attributes of the element */ - (OFArray*)attributes; /** * \return An array with all children of the element */ - (OFArray*)children; /** * \return A new autoreleased OFString representing the OFXMLElement as an * XML string */ - (OFString*)string; /** |
︙ | ︙ |
Modified src/OFXMLElement.m from [a95f7f973f] to [9558fd2c7e].
︙ | ︙ | |||
140 141 142 143 144 145 146 147 148 149 150 151 152 153 | { self = [super init]; comment = [comment_ copy]; return self; } - (OFString*)_stringWithParentNamespaces: (OFDictionary*)parent_namespaces parentDefaultNamespace: (OFString*)parent_default_ns { OFAutoreleasePool *pool, *pool2; char *str_c; size_t len, i, j, attrs_count; | > > > > > > > > > > > > > > > > > > > > | 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 | { self = [super init]; comment = [comment_ copy]; return self; } - (OFString*)name { return [[name copy] autorelease]; } - (OFString*)namespace { return [[namespace copy] autorelease]; } - (OFArray*)attributes { return [[attributes copy] autorelease]; } - (OFArray*)children { return [[children copy] autorelease]; } - (OFString*)_stringWithParentNamespaces: (OFDictionary*)parent_namespaces parentDefaultNamespace: (OFString*)parent_default_ns { OFAutoreleasePool *pool, *pool2; char *str_c; size_t len, i, j, attrs_count; |
︙ | ︙ |