19 OF_ASSUME_NONNULL_BEGIN
21 @class OFArray OF_GENERIC(ObjectType);
35 OFString *_name, *_namespace, *_defaultNamespace;
53 getter=
namespace, setter=setNamespace:)
OFString *namespace_;
67 + (instancetype)elementWithName: (
OFString *)name;
77 + (instancetype)elementWithName: (
OFString *)name
78 stringValue: (nullable
OFString *)stringValue;
88 + (instancetype)elementWithName: (
OFString *)name
89 namespace: (nullable
OFString *)namespace_;
101 + (instancetype)elementWithName: (
OFString *)name
102 namespace: (nullable
OFString *)namespace_
103 stringValue: (nullable
OFString *)stringValue;
112 + (instancetype)elementWithElement: (
OFXMLElement *)element;
120 + (instancetype)elementWithXMLString: (
OFString *)string;
130 + (instancetype)elementWithFile: (
OFString *)path;
133 -
init OF_UNAVAILABLE;
153 stringValue: (nullable
OFString *)stringValue;
165 namespace: (nullable
OFString *)namespace_;
178 namespace: (nullable
OFString *)namespace_
179 stringValue: (nullable
OFString *)stringValue;
198 - initWithXMLString: (
OFString *)string;
219 - (void)setPrefix: (
OFString *)prefix
220 forNamespace: (
OFString *)namespace_;
228 - (void)bindPrefix: (
OFString *)prefix
229 forNamespace: (
OFString *)namespace_;
257 - (void)addAttributeWithName: (
OFString *)name
258 stringValue: (
OFString *)stringValue;
271 - (void)addAttributeWithName: (
OFString *)name
272 namespace: (nullable
OFString *)namespace_
273 stringValue: (
OFString *)stringValue;
291 namespace: (nullable
OFString *)attributeNS;
298 - (void)removeAttributeForName: (
OFString *)attributeName;
306 - (void)removeAttributeForName: (
OFString *)attributeName
307 namespace: (nullable
OFString *)attributeNS;
337 atIndex: (
size_t)index;
346 atIndex: (
size_t)index;
361 - (void)removeChildAtIndex: (
size_t)index;
378 - (void)replaceChildAtIndex: (
size_t)index
421 namespace: (nullable
OFString *)elementNS;
431 elementsForName: (
OFString *)elementName
432 namespace: (nullable
OFString *)elementNS;
435 OF_ASSUME_NONNULL_END
437 #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:50
id init()
Initializes an already allocated object.
Definition: OFObject.m:488
OFString * name
Definition: OFXMLElement.h:44
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