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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain) OFString *name;
@property (readonly, retain, getter=namespace) OFString *ns;
@property (readonly, retain) OFString *stringValue;
#endif
/**
* \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
*/
+ attributeWithName: (OFString*)name
namespace: (OFString*)ns
stringValue: (OFString*)value;
/**
* 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;
/**
* \return The name of the attribute as an autoreleased OFString
*/
- (OFString*)name;
/**
* \return The namespace of the attribute as an autoreleased OFString
*/
- (OFString*)namespace;
/**
* \return The string value of the attribute as an autoreleased OFString
*/
- (OFString*)stringValue;
/**
* \return An integer with the decimal value of the attribute
*/
- (intmax_t)decimalValue;
/**
* \return An integer with the hexadecimal value of the attribute
*/
- (uintmax_t)hexadecimalValue;
/**
* \return A float with the float value of the attribute
*/
- (float)floatValue;
/**
* \return A double with the double value of the attribute
*/
- (double)doubleValue;
@end
|
>
>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
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
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
|
#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain) OFString *name;
@property (readonly, retain, getter=namespace) OFString *ns;
@property (readonly, retain) 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
*/
+ 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;
/**
* \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
|