ObjFW
Public Member Functions | Static Public Member Functions
OFXMLAttribute Class Reference

A representation of an attribute of an XML element as an object. More...

#import <OFXMLAttribute.h>

Inheritance diagram for OFXMLAttribute:
OFXMLNode OFObject <OFCopying> <OFSerialization> <OFObject>

List of all members.

Public Member Functions

(id) - initWithName:namespace:stringValue:
 Initializes an already allocated OFXMLAttribute.
(OFString *) - name
 Returns the name of the attribute as an autoreleased OFString.
(OFString *) - namespace
 Returns the namespace of the attribute as an autoreleased OFString.

Static Public Member Functions

(id) + attributeWithName:namespace:stringValue:
 Creates a new XML attribute.

Detailed Description

A representation of an attribute of an XML element as an object.


Member Function Documentation

+ (id) attributeWithName: (OFString*)  name
namespace: (OFString*)  ns
stringValue: (OFString*)  value 

Creates a new XML attribute.

Parameters:
nameThe name of the attribute
nsThe namespace of the attribute
valueThe string value of the attribute
Returns:
A new autoreleased OFXMLAttribute with the specified parameters
- (id) initWithName: (OFString*)  name
namespace: (OFString*)  ns
stringValue: (OFString*)  value 

Initializes an already allocated OFXMLAttribute.

Parameters:
nameThe name of the attribute
nsThe namespace of the attribute
valueThe string value of the attribute
Returns:
An initialized OFXMLAttribute with the specified parameters
- (OFString*) name

Returns the name of the attribute as an autoreleased OFString.

Returns:
The name of the attribute as an autoreleased OFString
- (OFString *) namespace

Returns the namespace of the attribute as an autoreleased OFString.

Returns:
The namespace of the attribute as an autoreleased OFString

The documentation for this class was generated from the following files:
 All Classes Functions Variables Properties