Packageorg.igniterealtime.xiff.data
Classpublic class Extension
InheritanceExtension Inheritance XMLStanza Inheritance ExtensionContainer
SubclassesAbstractExtension, AuthExtension, BindExtension, DiscoExtension, FormExtension, MUCBaseExtension, MUCExtension, RegisterExtension, RosterExtension, RPCExtension, SearchExtension, SessionExtension, VCardExtension, WhiteboardExtension, XHTMLExtension

This is a base class for all data extensions.

See also

http://xmpp.org/registrar/namespaces.html
http://xmpp.org/extensions/


Public Properties
 PropertyDefined by
 Inherited_exts : Object
ExtensionContainer
 InheritedXMLData : XML
[static]
XMLStanza
 InheritedXMLFactory : XMLDocument
[static]
XMLStanza
Public Methods
 MethodDefined by
  
Extension(parent:XMLNode = null)
Extension
 Inherited
ExtensionContainer
 Inherited
addTextNode(parent:XMLNode, elementName:String, value:String):XMLNode
Adds a simple text node to the parent node specified.
XMLStanza
 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
 Inherited
getExtension(name:String):Extension
ExtensionContainer
 Inherited
getNode():XMLNode
XMLStanza
  
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
 Inherited
setNode(node:XMLNode):Boolean
Sets the XML node that should be used for this stanza's internal XML representation.
XMLStanza
  
toString():String
Converts the extension stanza XML to a string.
Extension
Constructor detail
Extension()constructor
public function Extension(parent:XMLNode = null)

Parameters
parent:XMLNode (default = null) — The parent node that this extension should be appended to
Method detail
remove()method
public function remove():void

Removes the extension from its parent.

toString()method 
public function toString():String

Converts the extension stanza XML to a string.

Returns
String — The extension XML in string form