Overview
Context
Changes
Modified src/OFXMLAttribute.h
from [f2e8a3a290]
to [facd4b4e2b].
︙ | | |
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
-
+
-
+
-
+
-
+
-
+
|
/**
* @brief The namespace of the attribute.
*/
#ifndef __cplusplus
@property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFString *namespace;
#else
@property OF_NULLABLE_PROPERTY (readonly, nonatomic, getter=namespace)
OFString *namespace_;
OFString *nameSpace;
#endif
/**
* @brief Creates a new XML attribute.
*
* @param name The name of the attribute
* @param stringValue The string value of the attribute
* @return A new autoreleased OFXMLAttribute with the specified parameters
*/
+ (instancetype)attributeWithName: (OFString *)name
stringValue: (OFString *)stringValue;
/**
* @brief Creates a new XML attribute.
*
* @param name The name of the attribute
* @param namespace_ The namespace of the attribute
* @param nameSpace The namespace of the attribute
* @param stringValue The string value of the attribute
* @return A new autoreleased OFXMLAttribute with the specified parameters
*/
+ (instancetype)attributeWithName: (OFString *)name
namespace: (nullable OFString *)namespace_
namespace: (nullable OFString *)nameSpace
stringValue: (OFString *)stringValue;
/**
* @brief Initializes an already allocated OFXMLAttribute.
*
* @param name The name of the attribute
* @param stringValue The string value of the attribute
* @return An initialized OFXMLAttribute with the specified parameters
*/
- (instancetype)initWithName: (OFString *)name
stringValue: (OFString *)stringValue;
/**
* @brief Initializes an already allocated OFXMLAttribute.
*
* @param name The name of the attribute
* @param namespace_ The namespace of the attribute
* @param nameSpace The namespace of the attribute
* @param stringValue The string value of the attribute
* @return An initialized OFXMLAttribute with the specified parameters
*/
- (instancetype)initWithName: (OFString *)name
namespace: (nullable OFString *)namespace_
namespace: (nullable OFString *)nameSpace
stringValue: (OFString *)stringValue;
- (instancetype)initWithSerialization: (OFXMLElement *)element;
@end
OF_ASSUME_NONNULL_END
|
Modified src/OFXMLElement.h
from [cd0b555138]
to [470c1e0790].
︙ | | |
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
-
+
|
/**
* @brief The namespace of the element.
*/
#ifndef __cplusplus
@property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *namespace;
#else
@property OF_NULLABLE_PROPERTY (copy, nonatomic,
getter=namespace, setter=setNamespace:) OFString *namespace_;
getter=namespace, setter=setNamespace:) OFString *nameSpace;
#endif
/**
* @brief The default namespace for the element to be used if there is no
* parent.
*/
@property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *defaultNamespace;
|
︙ | | |
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
-
+
-
+
-
+
-
+
|
+ (instancetype)elementWithName: (OFString *)name
stringValue: (nullable OFString *)stringValue;
/**
* @brief Creates a new XML element with the specified name and namespace.
*
* @param name The name for the element
* @param namespace_ The namespace for the element
* @param nameSpace The namespace for the element
* @return A new autoreleased OFXMLElement with the specified element name and
* namespace
*/
+ (instancetype)elementWithName: (OFString *)name
namespace: (nullable OFString *)namespace_;
namespace: (nullable OFString *)nameSpace;
/**
* @brief Creates a new XML element with the specified name, namespace and
* string value.
*
* @param name The name for the element
* @param namespace_ The namespace for the element
* @param nameSpace The namespace for the element
* @param stringValue The value for the element
* @return A new autoreleased OFXMLElement with the specified element name,
* namespace and value
*/
+ (instancetype)elementWithName: (OFString *)name
namespace: (nullable OFString *)namespace_
namespace: (nullable OFString *)nameSpace
stringValue: (nullable OFString *)stringValue;
/**
* @brief Creates a new element with the specified element.
*
* @param element An OFXMLElement to initialize the OFXMLElement with
* @return A new autoreleased OFXMLElement with the contents of the specified
|
︙ | | |
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
203
|
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
203
|
-
+
-
+
-
+
-
+
|
stringValue: (nullable OFString *)stringValue;
/**
* @brief Initializes an already allocated OFXMLElement with the specified name
* and namespace.
*
* @param name The name for the element
* @param namespace_ The namespace for the element
* @param nameSpace The namespace for the element
* @return An initialized OFXMLElement with the specified element name and
* namespace
*/
- (instancetype)initWithName: (OFString *)name
namespace: (nullable OFString *)namespace_;
namespace: (nullable OFString *)nameSpace;
/**
* @brief Initializes an already allocated OFXMLElement with the specified name,
* namespace and value.
*
* @param name The name for the element
* @param namespace_ The namespace for the element
* @param nameSpace The namespace for the element
* @param stringValue The value for the element
* @return An initialized OFXMLElement with the specified element name,
* namespace and value
*/
- (instancetype)initWithName: (OFString *)name
namespace: (nullable OFString *)namespace_
namespace: (nullable OFString *)nameSpace
stringValue: (nullable OFString *)stringValue;
/**
* @brief Initializes an already allocated OFXMLElement with the specified
* element.
*
* @param element An OFXMLElement to initialize the OFXMLElement with
|
︙ | | |
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
|
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
|
-
+
-
+
-
+
-
+
|
- (instancetype)initWithSerialization: (OFXMLElement *)element;
/**
* @brief Sets a prefix for a namespace.
*
* @param prefix The prefix for the namespace
* @param namespace_ The namespace for which the prefix is set
* @param nameSpace The namespace for which the prefix is set
*/
- (void)setPrefix: (OFString *)prefix forNamespace: (OFString *)namespace_;
- (void)setPrefix: (OFString *)prefix forNamespace: (OFString *)nameSpace;
/**
* @brief Binds a prefix for a namespace.
*
* @param prefix The prefix for the namespace
* @param namespace_ The namespace for which the prefix is bound
* @param nameSpace The namespace for which the prefix is bound
*/
- (void)bindPrefix: (OFString *)prefix forNamespace: (OFString *)namespace_;
- (void)bindPrefix: (OFString *)prefix forNamespace: (OFString *)nameSpace;
/**
* @brief Adds the specified attribute.
*
* If an attribute with the same name and namespace already exists, it is not
* added.
*
|
︙ | | |
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
|
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
|
-
+
-
+
|
* @brief Adds the specified attribute with the specified namespace and string
* value.
*
* If an attribute with the same name and namespace already exists, it is not
* added.
*
* @param name The name of the attribute
* @param namespace_ The namespace of the attribute
* @param nameSpace The namespace of the attribute
* @param stringValue The value of the attribute
*/
- (void)addAttributeWithName: (OFString *)name
namespace: (nullable OFString *)namespace_
namespace: (nullable OFString *)nameSpace
stringValue: (OFString *)stringValue;
/**
* @brief Returns the attribute with the specified name.
*
* @param attributeName The name of the attribute
* @return The attribute with the specified name
|
︙ | | |
Modified src/OFXMLElementBuilder.h
from [2657d84bdf]
to [657f65f42e].
︙ | | |
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
-
+
-
+
|
*
* If this method is not implemented in the delegate, the default is to throw
* an OFMalformedXMLException.
*
* @param builder The builder which did not expect the close tag
* @param name The name of the close tag
* @param prefix The prefix of the close tag
* @param namespace_ The namespace of the close tag
* @param nameSpace The namespace of the close tag
*/
- (void)elementBuilder: (OFXMLElementBuilder *)builder
didNotExpectCloseTag: (OFString *)name
prefix: (nullable OFString *)prefix
namespace: (nullable OFString *)namespace_;
namespace: (nullable OFString *)nameSpace;
/**
* @brief This callback is called when the XML parser for the element builder
* found an unknown entity.
*
* @param builder The element builder which found an unknown entity
* @param entity The name of the entity
|
︙ | | |
Modified src/OFXMLParser.h
from [19e7e242ac]
to [e4ba7bdb79].
︙ | | |
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
|
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
|
-
+
|
* @brief The current line number.
*/
@property (readonly, nonatomic) size_t lineNumber;
/**
* @brief Whether the XML parser has finished parsing.
*/
@property (readonly, nonatomic) bool hasFinishedParsing;
@property (readonly, nonatomic, getter=hasFinishedParsing) bool finishedParsing;
/**
* @brief The depth limit for the XML parser.
*
* If the depth limit is exceeded, an OFMalformedXMLException is thrown.
*
* The default is 32. 0 means unlimited (insecure!).
|
︙ | | |
Modified src/exceptions/OFUnboundNamespaceException.h
from [36fcc2bc20]
to [abee82b29b].
︙ | | |
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
-
+
-
+
-
+
-
+
-
+
|
/**
* @brief The unbound namespace.
*/
#ifndef __cplusplus
@property (readonly, nonatomic) OFString *namespace;
#else
@property (readonly, nonatomic, getter=namespace) OFString *namespace_;
@property (readonly, nonatomic, getter=namespace) OFString *nameSpace;
#endif
/**
* @brief The element in which the namespace was not bound.
*/
@property (readonly, nonatomic) OFXMLElement *element;
+ (instancetype)exception OF_UNAVAILABLE;
/**
* @brief Creates a new, autoreleased unbound namespace exception.
*
* @param namespace_ The namespace which is unbound
* @param nameSpace The namespace which is unbound
* @param element The element in which the namespace was not bound
* @return A new, autoreleased unbound namespace exception
*/
+ (instancetype)exceptionWithNamespace: (OFString *)namespace_
+ (instancetype)exceptionWithNamespace: (OFString *)nameSpace
element: (OFXMLElement *)element;
- (instancetype)init OF_UNAVAILABLE;
/**
* @brief Initializes an already allocated unbound namespace exception.
*
* @param namespace_ The namespace which is unbound
* @param nameSpace The namespace which is unbound
* @param element The element in which the namespace was not bound
* @return An initialized unbound namespace exception
*/
- (instancetype)initWithNamespace: (OFString *)namespace_
- (instancetype)initWithNamespace: (OFString *)nameSpace
element: (OFXMLElement *)element
OF_DESIGNATED_INITIALIZER;
@end
OF_ASSUME_NONNULL_END
|