@@ -29,19 +29,19 @@ { @public OFString *_name, *_namespace, *_stringValue; } -#ifdef OF_HAVE_PROPERTIES +/*! + * The name of the attribute. + */ @property (readonly, copy) OFString *name; -# ifdef __cplusplus -@property OF_NULLABLE_PROPERTY (readonly, copy, getter=namespace) - OFString *namespace_; -# else + +/*! + * The namespace of the attribute. + */ @property OF_NULLABLE_PROPERTY (readonly, copy) OFString *namespace; -# endif -#endif /*! * @brief Creates a new XML attribute. * * @param name The name of the attribute @@ -82,22 +82,8 @@ * @return An initialized OFXMLAttribute with the specified parameters */ - initWithName: (OFString*)name namespace: (nullable OFString*)namespace_ stringValue: (OFString*)stringValue; - -/*! - * @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 - */ -- (nullable OFString*)namespace; @end OF_ASSUME_NONNULL_END