19 OF_ASSUME_NONNULL_BEGIN
21 @class OFArray OF_GENERIC(ObjectType);
35 OFString *_name, *_Nullable _namespace, *_Nullable _defaultNamespace;
54 getter=
namespace, setter=setNamespace:)
OFString *namespace_;
68 + (instancetype)elementWithName: (
OFString *)name;
78 + (instancetype)elementWithName: (
OFString *)name
79 stringValue: (nullable
OFString *)stringValue;
89 + (instancetype)elementWithName: (
OFString *)name
90 namespace: (nullable
OFString *)namespace_;
102 + (instancetype)elementWithName: (
OFString *)name
103 namespace: (nullable
OFString *)namespace_
104 stringValue: (nullable
OFString *)stringValue;
113 + (instancetype)elementWithElement: (
OFXMLElement *)element;
121 + (instancetype)elementWithXMLString: (
OFString *)string;
131 + (instancetype)elementWithFile: (
OFString *)path;
134 -
init OF_UNAVAILABLE;
154 stringValue: (nullable
OFString *)stringValue;
166 namespace: (nullable
OFString *)namespace_;
179 namespace: (nullable
OFString *)namespace_
180 stringValue: (nullable
OFString *)stringValue;
199 - initWithXMLString: (
OFString *)string;
220 - (void)setPrefix: (
OFString *)prefix
221 forNamespace: (
OFString *)namespace_;
229 - (void)bindPrefix: (
OFString *)prefix
230 forNamespace: (
OFString *)namespace_;
258 - (void)addAttributeWithName: (
OFString *)name
259 stringValue: (
OFString *)stringValue;
272 - (void)addAttributeWithName: (
OFString *)name
273 namespace: (nullable
OFString *)namespace_
274 stringValue: (
OFString *)stringValue;
292 namespace: (nullable
OFString *)attributeNS;
299 - (void)removeAttributeForName: (
OFString *)attributeName;
307 - (void)removeAttributeForName: (
OFString *)attributeName
308 namespace: (nullable
OFString *)attributeNS;
338 atIndex: (
size_t)index;
347 atIndex: (
size_t)index;
362 - (void)removeChildAtIndex: (
size_t)index;
379 - (void)replaceChildAtIndex: (
size_t)index
422 namespace: (nullable
OFString *)elementNS;
432 elementsForName: (
OFString *)elementName
433 namespace: (nullable
OFString *)elementNS;
436 OF_ASSUME_NONNULL_END
438 #import "OFXMLElement+Serialization.h" A class which stores an XML element.
Definition: OFXMLNode.h:29
id copy()
Returns the class.
Definition: OFObject.m:1133
A class for storing and modifying strings.
Definition: OFMutableString.h:26
A class for handling strings.
Definition: OFString.h:114
nonatomic
Definition: OFXMLElement.h:51
id init()
Initializes an already allocated object.
Definition: OFObject.m:488
OFString * name
Definition: OFXMLElement.h:45
An abstract class for storing and changing objects in a dictionary.
Definition: OFMutableDictionary.h:39
nullable OFArray * attributes()
Returns an OFArray with the attributes of the element.
Definition: OFXMLElement.m:376
A class which stores an XML element.
Definition: OFXMLElement.h:33
An abstract class for storing objects in an array.
Definition: OFArray.h:89
A representation of an attribute of an XML element as an object.
Definition: OFXMLAttribute.h:28
OFArray * elements()
Returns all children that are elements.
Definition: OFXMLElement.m:956
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:40