18 OF_ASSUME_NONNULL_BEGIN
20 @class OFArray OF_GENERIC(ObjectType);
35 OFString *_name, *_Nullable _namespace;
52 @property OF_NULLABLE_PROPERTY (copy, nonatomic)
OFString *
namespace;
54 @property OF_NULLABLE_PROPERTY (copy, nonatomic,
55 getter=
namespace, setter=setNamespace:)
OFString *nameSpace;
61 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
67 @property OF_NULLABLE_PROPERTY (nonatomic, copy)
81 + (instancetype)elementWithName: (
OFString *)name;
91 + (instancetype)elementWithName: (
OFString *)name
92 stringValue: (nullable
OFString *)stringValue;
102 + (instancetype)elementWithName: (
OFString *)name
103 namespace: (nullable
OFString *)nameSpace;
115 + (instancetype)elementWithName: (
OFString *)name
116 namespace: (nullable
OFString *)nameSpace
117 stringValue: (nullable
OFString *)stringValue;
129 + (instancetype)elementWithXMLString: (
OFString *)
string;
142 + (instancetype)elementWithStream: (
OFStream *)stream;
144 - (instancetype)init OF_UNAVAILABLE;
152 - (instancetype)initWithName: (
OFString *)name;
163 - (instancetype)initWithName: (
OFString *)name
164 stringValue: (nullable
OFString *)stringValue;
175 - (instancetype)initWithName: (
OFString *)name
176 namespace: (nullable
OFString *)nameSpace
177 OF_DESIGNATED_INITIALIZER;
189 - (instancetype)initWithName: (
OFString *)name
190 namespace: (nullable
OFString *)nameSpace
191 stringValue: (nullable
OFString *)stringValue;
204 - (instancetype)initWithXMLString: (
OFString *)
string;
217 - (instancetype)initWithStream: (
OFStream *)stream;
254 - (
void)addAttributeWithName: (
OFString *)name
255 stringValue: (
OFString *)stringValue;
268 - (
void)addAttributeWithName: (
OFString *)name
269 namespace: (nullable
OFString *)nameSpace
270 stringValue: (
OFString *)stringValue;
288 namespace: (nullable
OFString *)attributeNS;
295 - (
void)removeAttributeForName: (
OFString *)attributeName;
303 - (
void)removeAttributeForName: (
OFString *)attributeName
304 namespace: (nullable
OFString *)attributeNS;
319 - (
void)insertChild: (
OFXMLNode *)child atIndex: (
size_t)index;
328 atIndex: (
size_t)index;
342 - (
void)removeChildAtIndex: (
size_t)index;
359 - (
void)replaceChildAtIndex: (
size_t)index withNode: (
OFXMLNode *)node;
367 elementsForNamespace: (nullable
OFString *)elementNS;
384 elementsForName: (
OFString *)elementName;
394 namespace: (nullable
OFString *)elementNS;
404 elementsForName: (
OFString *)elementName
405 namespace: (nullable
OFString *)elementNS;
418 - (
OFString *)XMLStringWithIndentation: (
unsigned int)indentation;
433 indentation: (
unsigned int)indentation;
436 OF_ASSUME_NONNULL_END
An abstract class for storing objects in an array.
Definition: OFArray.h:103
A representation of an attribute of an XML element as an object.
Definition: OFXMLAttribute.h:28
A class which stores an XML element.
Definition: OFXMLElement.h:33
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:43
A base class for different types of streams.
Definition: OFStream.h:186
A class for handling strings.
Definition: OFString.h:134
A class which stores an XML element.
Definition: OFXMLNode.h:25
An abstract class for storing and changing objects in a dictionary.
Definition: OFMutableDictionary.h:42
A class for storing and modifying strings.
Definition: OFMutableString.h:25
OFArray * attributes
The namespace of the element.
Definition: OFXMLElement.h:52