ObjFW  Diff

Differences From Artifact [5a18b5fda7]:

To Artifact [666bc65512]:


13
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
76
77


78
79
80
81
82



83
84
85
86
87
13
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


76
77
78
79



80
81
82
83
84
85
86
87







-
-
+
+


-
-
+
+

-
+



-
-
+
+

-
+



-
-
+
+

-
+



-
-
+
+

-
+



-
-
+
+

-
+



-
-
+
+

-
+



-
-
+
+


-
-
+
+




-
-
+
+


-
-
-
+
+
+





 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#import "OFObject.h"
#import "OFSerialization.h"

/**
 * \brief A class which stores an XML element.
/*!
 * @brief A class which stores an XML element.
 */
@interface OFXMLNode: OFObject <OFCopying, OFSerialization>
/**
 * \brief Returns the contents of the receiver as a string value.
/*!
 * @brief Returns the contents of the receiver as a string value.
 *
 * \return A string with the string value
 * @return A string with the string value
 */
- (OFString*)stringValue;

/**
 * \brief Returns the contents of the receiver as a decimal value.
/*!
 * @brief Returns the contents of the receiver as a decimal value.
 *
 * \return An integer with the decimal value
 * @return An integer with the decimal value
 */
- (intmax_t)decimalValue;

/**
 * \brief Returns the contents of the receiver as a hexadecimal value.
/*!
 * @brief Returns the contents of the receiver as a hexadecimal value.
 *
 * \return An integer with the hexadecimal value
 * @return An integer with the hexadecimal value
 */
- (uintmax_t)hexadecimalValue;

/**
 * \brief Returns the contents of the receiver as a float value.
/*!
 * @brief Returns the contents of the receiver as a float value.
 *
 * \return A float with the float value
 * @return A float with the float value
 */
- (float)floatValue;

/**
 * \brief Returns the contents of the receiver as a double value.
/*!
 * @brief Returns the contents of the receiver as a double value.
 *
 * \return A double with the double value
 * @return A double with the double value
 */
- (double)doubleValue;

/**
 * \brief Returns an OFString representing the OFXMLNode as an XML string.
/*!
 * @brief Returns an OFString representing the OFXMLNode as an XML string.
 *
 * \return An OFString representing the OFXMLNode as an XML string
 * @return An OFString representing the OFXMLNode as an XML string
 */
- (OFString*)XMLString;

/**
 * \brief Returns an OFString representing the OFXMLNode as an XML string with
/*!
 * @brief Returns an OFString representing the OFXMLNode as an XML string with
 *	  indentation.
 *
 * \param indentation The indentation for the XML string
 * \return An OFString representing the OFXMLNode as an XML string with
 * @param indentation The indentation for the XML string
 * @return An OFString representing the OFXMLNode as an XML string with
 *	   indentation
 */
- (OFString*)XMLStringWithIndentation: (unsigned int)indentation;

/**
 * \brief Returns an OFString representing the OFXMLNode as an XML string with
/*!
 * @brief Returns an OFString representing the OFXMLNode as an XML string with
 *	  indentation for the specified level.
 *
 * \param indentation The indentation for the XML string
 * \param level The level of indentation
 * \return An OFString representing the OFXMLNode as an XML string with
 * @param indentation The indentation for the XML string
 * @param level The level of indentation
 * @return An OFString representing the OFXMLNode as an XML string with
 *	   indentation
 */
- (OFString*)XMLStringWithIndentation: (unsigned int)indentation
				level: (unsigned int)level;
@end