Packageorg.igniterealtime.xiff.data.vcard
Classpublic class VCardExtension
InheritanceVCardExtension Inheritance Extension Inheritance XMLStanza Inheritance ExtensionContainer
ImplementsIExtension

See also

http://xmpp.org/extensions/xep-0054.html


Public Properties
 PropertyDefined by
 Inherited_exts : Object
ExtensionContainer
 InheritedXMLData : XML
[static]
XMLStanza
 InheritedXMLFactory : XMLDocument
[static]
XMLStanza
Public Methods
 MethodDefined by
 Inherited
ExtensionContainer
 Inherited
addTextNode(parent:XMLNode, elementName:String, value:String):XMLNode
Adds a simple text node to the parent node specified.
XMLStanza
  
deserialize(node:XMLNode):Boolean
Called when data is retrieved from the XMLSocket, use this method to extract any state into internal state.
VCardExtension
 Inherited
ensureNode(node:XMLNode, elementName:String):XMLNode
Ensures that a node with a specific element name exists in the stanza.
XMLStanza
 Inherited
exists(value:*):Boolean
[static] A helper method to determine if a value is both not null and not undefined.
XMLStanza
 Inherited
ExtensionContainer
 Inherited
getAllExtensionsByNS(ns:String):Array
ExtensionContainer
  
getElementName():String
VCardExtension
 Inherited
getExtension(name:String):Extension
ExtensionContainer
 Inherited
getNode():XMLNode
XMLStanza
  
getNS():String
VCardExtension
 Inherited
remove():void
Removes the extension from its parent.
Extension
 Inherited
removeAllExtensions(ns:String):void
ExtensionContainer
 Inherited
ExtensionContainer
 Inherited
replaceTextNode(parent:XMLNode, original:XMLNode, elementName:String, value:String):XMLNode
Replaces one node in the stanza with another simple text node.
XMLStanza
  
serialize(parentNode:XMLNode):Boolean
Called when the library need to retrieve the state of the instance.
VCardExtension
 Inherited
setNode(node:XMLNode):Boolean
Sets the XML node that should be used for this stanza's internal XML representation.
XMLStanza
 Inherited
toString():String
Converts the extension stanza XML to a string.
Extension
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.
getElementName()method 
public function getElementName():String

Returns
String
getNS()method 
public function getNS():String

Returns
String
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.