Packageorg.igniterealtime.xiff.data
Classpublic class Extension
InheritanceExtension Inheritance XMLStanza Inheritance ExtensionContainer Inheritance Object
Subclasses AbstractExtension, AuthExtension, BindExtension, DiscoExtension, FeatureNegotiationExtension, FileTransferExtension, FormExtension, IBBExtension, LastActivityExtension, MUCBaseExtension, MUCExtension, PingExtension, PrivateDataExtension, RegisterExtension, RosterExtension, RPCExtension, SearchExtension, SessionExtension, SharedGroupsExtension, SoftwareVersionExtension, StreamInitiationExtension, 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
  xml : XML
[override] Override in order to take care of setting the Namespace and checking for containing extensions.
Extension
Public Methods
 MethodDefined By
  
Extension(parent:XML = null)
Extension
 Inherited
Add extension to the list of the given namespace and insert to the XML element as a child.
ExtensionContainer
 Inherited
ExtensionContainer
 Inherited
getAllExtensionsByNS(nameSpace:String):Array
ExtensionContainer
 Inherited
getAttribute(name:String):String
Convinience method for getting element value from the XML.
XMLStanza
 Inherited
getChildAttribute(elem:String, name:String):String
Convinience method for getting child element attribute value from the XML.
XMLStanza
 Inherited
getChildField(elem:String, name:String):String
Convinience method for getting child element value from the XML.
XMLStanza
 Inherited
getExtension(elementName:String):IExtension
Get the extension having the given element name.
ExtensionContainer
 Inherited
getField(name:String):String
Convinience method for getting element value from the XML.
XMLStanza
  
remove():void
Removes the extension from its parent.
Extension
 Inherited
removeAllExtensions(nameSpace:String):void
ExtensionContainer
 Inherited
removeExtension(extension:IExtension):Boolean
ExtensionContainer
 Inherited
removeFields(name:String):void
Helper method for removing all child elements that have the given name.
XMLStanza
 Inherited
setAttribute(name:String, value:String):void
Convinience method for setting a value to a element in the XML.
XMLStanza
 Inherited
setChildAttribute(elem:String, name:String, value:String):void
Convinience method for setting an attribute for a child element of the XML.
XMLStanza
 Inherited
setChildField(elem:String, name:String, value:String):void
Convinience method for setting a value for a child element of the XML.
XMLStanza
 Inherited
setField(name:String, value:String):void
Convinience method for setting a value to a element in the XML.
XMLStanza
 Inherited
toString():String
Converts the base stanza XML to a string.
XMLStanza
Public Constants
 ConstantDefined By
 InheritedDEFAULT_NS : Namespace
[static] Default XML namespace.
XMLStanza
 InheritedFLASH_NS : Namespace
[static]
XMLStanza
 InheritedSTREAM_NS : Namespace
[static]
XMLStanza
Property Detail
xmlproperty
xml:XML[override]

Override in order to take care of setting the Namespace and checking for containing extensions.


Implementation
    public function get xml():XML
    public function set xml(value:XML):void
Constructor Detail
Extension()Constructor
public function Extension(parent:XML = null)

Parameters
parent:XML (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.