14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
75
|
* file.
*/
#import "OFXMLNode.h"
@class OFString;
/**
* \brief A representation of an attribute of an XML element as an object.
*/
@interface OFXMLAttribute: OFXMLNode
{
@public
OFString *name;
OFString *ns;
OFString *stringValue;
}
#ifdef OF_HAVE_PROPERTIES
@property (readonly, copy) OFString *name;
@property (readonly, copy, getter=namespace) OFString *ns;
@property (readonly, copy) OFString *stringValue;
#endif
/**
* \brief Creates a new XML attribute.
*
* \param name The name of the attribute
* \param ns The namespace of the attribute
* \param value The string value of the attribute
* \return A new autoreleased OFXMLAttribute with the specified parameters
*/
+ (instancetype)attributeWithName: (OFString*)name
namespace: (OFString*)ns
stringValue: (OFString*)value;
/**
* \brief Initializes an already allocated OFXMLAttribute.
*
* \param name The name of the attribute
* \param ns The namespace of the attribute
* \param value The string value of the attribute
* \return An initialized OFXMLAttribute with the specified parameters
*/
- initWithName: (OFString*)name
namespace: (OFString*)ns
stringValue: (OFString*)value;
/**
* \brief Returns the name of the attribute as an autoreleased OFString.
*
* \return The name of the attribute as an autoreleased OFString
*/
- (OFString*)name;
/**
* \brief Returns the namespace of the attribute as an autoreleased OFString.
*
* \return The namespace of the attribute as an autoreleased OFString
*/
- (OFString*)namespace;
@end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
75
|
* file.
*/
#import "OFXMLNode.h"
@class OFString;
/*!
* @brief A representation of an attribute of an XML element as an object.
*/
@interface OFXMLAttribute: OFXMLNode
{
@public
OFString *name;
OFString *ns;
OFString *stringValue;
}
#ifdef OF_HAVE_PROPERTIES
@property (readonly, copy) OFString *name;
@property (readonly, copy, getter=namespace) OFString *ns;
@property (readonly, copy) OFString *stringValue;
#endif
/*!
* @brief Creates a new XML attribute.
*
* @param name The name of the attribute
* @param ns The namespace of the attribute
* @param value The string value of the attribute
* @return A new autoreleased OFXMLAttribute with the specified parameters
*/
+ (instancetype)attributeWithName: (OFString*)name
namespace: (OFString*)ns
stringValue: (OFString*)value;
/*!
* @brief Initializes an already allocated OFXMLAttribute.
*
* @param name The name of the attribute
* @param ns The namespace of the attribute
* @param value The string value of the attribute
* @return An initialized OFXMLAttribute with the specified parameters
*/
- initWithName: (OFString*)name
namespace: (OFString*)ns
stringValue: (OFString*)value;
/*!
* @brief Returns the name of the attribute as an autoreleased OFString.
*
* @return The name of the attribute as an autoreleased OFString
*/
- (OFString*)name;
/*!
* @brief Returns the namespace of the attribute as an autoreleased OFString.
*
* @return The namespace of the attribute as an autoreleased OFString
*/
- (OFString*)namespace;
@end
|