10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
*
* Alternatively, it may be distributed under the terms of the GNU General
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#import "OFObject.h"
#import "OFSerialization.h"
@class OFString;
/**
* \brief A representation of an attribute of an XML element as an object.
*/
@interface OFXMLAttribute: OFObject <OFSerialization>
{
@public
OFString *name;
OFString *ns;
OFString *stringValue;
}
|
|
<
|
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
*
* Alternatively, it may be distributed under the terms of the GNU General
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* 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;
}
|
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
100
101
102
103
104
105
106
107
108
109
110
111
|
/**
* \brief Returns the namespace of the attribute as an autoreleased OFString.
*
* \return The namespace of the attribute as an autoreleased OFString
*/
- (OFString*)namespace;
/**
* \brief Returns the string value of the attribute as an autoreleased OFString.
*
* \return The string value of the attribute as an autoreleased OFString
*/
- (OFString*)stringValue;
/**
* \brief Returns an integer with the decimal value of the attribute.
*
* \return An integer with the decimal value of the attribute
*/
- (intmax_t)decimalValue;
/**
* \brief Returns an integer with the hexadecimal value of the attribute.
*
* \return An integer with the hexadecimal value of the attribute
*/
- (uintmax_t)hexadecimalValue;
/**
* \brief Returns a float with the float value of the attribute.
*
* \return A float with the float value of the attribute
*/
- (float)floatValue;
/**
* \brief Returns a double with the double value of the attribute.
*
* \return A double with the double value of the attribute
*/
- (double)doubleValue;
@end
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
68
69
70
71
72
73
74
75
|
/**
* \brief Returns the namespace of the attribute as an autoreleased OFString.
*
* \return The namespace of the attribute as an autoreleased OFString
*/
- (OFString*)namespace;
@end
|