ObjFW
Instance Methods | List of all members
<OFSerialization> Protocol Reference

A protocol for serializing objects. More...

#import <ObjFW/OFSerialization.h>

Inheritance diagram for <OFSerialization>:
OFArray OFData OFDate OFDictionary OFList OFNull OFNumber OFSet OFString OFURL OFXMLNode

Instance Methods

(id) - initWithSerialization:
 Initializes the object with the specified XML element serialization. More...
 
(OFXMLElement *) - XMLElementBySerializing
 Serializes the object into an XML element. More...
 

Detailed Description

A protocol for serializing objects.

Method Documentation

◆ initWithSerialization:()

- (id) initWithSerialization: (OFXMLElement *)  element

Initializes the object with the specified XML element serialization.

Parameters
elementAn OFXMLElement with the serialized object
Returns
An initialized object

Reimplemented in OFXMLNode, OFXMLElement, OFXMLAttribute, OFXMLProcessingInstructions, OFXMLCDATA, OFXMLCharacters, and OFXMLComment.

◆ XMLElementBySerializing()

- (OFXMLElement *) XMLElementBySerializing

Serializes the object into an XML element.

Returns
The object serialized into an XML element

The documentation for this protocol was generated from the following file: