Packageorg.igniterealtime.xiff.data
Interfacepublic interface ISerializable
SubinterfacesIExtension, IXMPPStanza
ImplementorsAbstractExtension, BrowseItem, DiscoExtension, Fill, FormField, GroupChatBookmark, MUCBaseExtension, MUCItem, Path, RosterItem, SearchItem, Stroke, UrlBookmark



Public Methods
 MethodDefined by
  
deserialize(node:XMLNode):Boolean
Called when data is retrieved from the XMLSocket, use this method to extract any state into internal state.
ISerializable
  
serialize(parentNode:XMLNode):Boolean
Called when the library need to retrieve the state of the instance.
ISerializable
Method detail
deserialize()method
public function deserialize(node:XMLNode):Boolean

Called when data is retrieved from the XMLSocket, use this method to extract any state into internal state.

Parameters
node:XMLNode — (XMLNode) The node that should be used as the data container.

Returns
Boolean — On success, return true.
serialize()method 
public function serialize(parentNode:XMLNode):Boolean

Called when the library need to retrieve the state of the instance. If the instance manages its own state, then the state should be copied into the XMLNode passed. If the instance also implements INodeProxy, then the parent should be verified against the parent XMLNode passed to determine if the serialization is in the same namespace.

Parameters
parentNode:XMLNode — (XMLNode) The container of the XML.

Returns
Boolean — On success, return true.