18 OF_ASSUME_NONNULL_BEGIN
20 @class OFArray OF_GENERIC(ObjectType);
35 OFString *_name, *_Nullable _namespace, *_Nullable _defaultNamespace;
52 @property OF_NULLABLE_PROPERTY (copy, nonatomic)
OFString *
namespace;
54 @property OF_NULLABLE_PROPERTY (copy, nonatomic,
55 getter=
namespace, setter=setNamespace:)
OFString *namespace_;
67 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
73 @property OF_NULLABLE_PROPERTY (nonatomic, copy)
87 + (instancetype)elementWithName: (
OFString *)name;
97 + (instancetype)elementWithName: (
OFString *)name
98 stringValue: (nullable
OFString *)stringValue;
108 + (instancetype)elementWithName: (
OFString *)name
109 namespace: (nullable
OFString *)namespace_;
121 + (instancetype)elementWithName: (
OFString *)name
122 namespace: (nullable
OFString *)namespace_
123 stringValue: (nullable
OFString *)stringValue;
132 + (instancetype)elementWithElement: (
OFXMLElement *)element;
140 + (instancetype)elementWithXMLString: (
OFString *)
string;
149 + (instancetype)elementWithStream: (
OFStream *)stream;
151 - (instancetype)init OF_UNAVAILABLE;
159 - (instancetype)initWithName: (
OFString *)name;
170 - (instancetype)initWithName: (
OFString *)name
171 stringValue: (nullable
OFString *)stringValue;
182 - (instancetype)initWithName: (
OFString *)name
183 namespace: (nullable
OFString *)namespace_;
195 - (instancetype)initWithName: (
OFString *)name
196 namespace: (nullable
OFString *)namespace_
197 stringValue: (nullable
OFString *)stringValue;
207 - (instancetype)initWithElement: (
OFXMLElement *)element;
216 - (instancetype)initWithXMLString: (
OFString *)
string;
225 - (instancetype)initWithStream: (
OFStream *)stream;
227 - (instancetype)initWithSerialization: (
OFXMLElement *)element;
243 - (
void)bindPrefix: (
OFString *)prefix forNamespace: (
OFString *)namespace_;
264 - (
void)addAttributeWithName: (
OFString *)name
265 stringValue: (
OFString *)stringValue;
278 - (
void)addAttributeWithName: (
OFString *)name
279 namespace: (nullable
OFString *)namespace_
280 stringValue: (
OFString *)stringValue;
298 namespace: (nullable
OFString *)attributeNS;
305 - (
void)removeAttributeForName: (
OFString *)attributeName;
313 - (
void)removeAttributeForName: (
OFString *)attributeName
314 namespace: (nullable
OFString *)attributeNS;
329 - (
void)insertChild: (
OFXMLNode *)child atIndex: (
size_t)index;
338 atIndex: (
size_t)index;
353 - (
void)removeChildAtIndex: (
size_t)index;
369 - (
void)replaceChildAtIndex: (
size_t)index withNode: (
OFXMLNode *)node;
404 namespace: (nullable
OFString *)elementNS;
414 elementsForName: (
OFString *)elementName
415 namespace: (nullable
OFString *)elementNS;
418 OF_ASSUME_NONNULL_END
420 #import "OFXMLElement+Serialization.h"
An abstract class for storing objects in an array.
Definition: OFArray.h:92
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:44
An abstract class for storing and changing objects in a dictionary.
Definition: OFMutableDictionary.h:44
A class for storing and modifying strings.
Definition: OFMutableString.h:30
A base class for different types of streams.
Definition: OFStream.h:191
A class for handling strings.
Definition: OFString.h:132
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:34
OFString * defaultNamespace
The namespace of the element.
Definition: OFXMLElement.h:52
A class which stores an XML element.
Definition: OFXMLNode.h:30