org.jivesoftware.xiff.data
interface ISerializable
All Known Implementing Classes: AuthExtension, BrowseExtension, BrowseItem, DiscoExtension, Fill, FormExtension, FormField, IQ, Message, MUCBaseExtension, MUCExtension, MUCItem, Path, Presence, RegisterExtension, RosterExtension, RosterItem, RPCExtension, Stroke, WhiteboardExtension, XMPPStanzainterface ISerializable
All XMPP stanzas that will interact with the library should implement this interface.
- Author:Sean Voisen
- Since:2.0.0
Method Summary
Called when data is retrieved from the XMLSocket, use this method to extract any state into internal state.
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.
Method Documentation
deserialize
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) The node that should be used as the data container. - Returns:On success, return true.
serialize
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) The container of the XML. - Returns:On success, return true.
- ISerializable.as, Last Modified: 3/10/2005 10:15:38 PM