Packageorg.igniterealtime.xiff.data.muc
Classpublic class MUCOwnerExtension
InheritanceMUCOwnerExtension Inheritance MUCBaseExtension Inheritance Extension Inheritance XMLStanza Inheritance ExtensionContainer Inheritance Object
Implements IExtension

Implements the administration command data model in XEP-0045 for multi-user chat.

See also

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


Public Properties
 PropertyDefined By
 Inheriteditems : Array
Item interface to MUCItems if they are contained in this extension
MUCBaseExtension
 Inheritedxml : XML
[override] Override in order to take care of setting the Namespace and checking for containing extensions.
Extension
Public Methods
 MethodDefined By
  
MUCOwnerExtension(parent:XML = null)
MUCOwnerExtension
 Inherited
Add extension to the list of the given namespace and insert to the XML element as a child.
ExtensionContainer
 Inherited
addItem(affiliation:String = null, role:String = null, nick:String = null, jid:EscapedJID = null, actor:String = null, reason:String = null):MUCItem
Use this method to create a new item.
MUCBaseExtension
  
destroy(reason:String, alternateJID:EscapedJID = null):void
Replaces the destroy node with a new node and sets the reason element and jid attribute
MUCOwnerExtension
 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
  
MUCOwnerExtension
 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
  
getNS():String
MUCOwnerExtension
 Inherited
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
  ELEMENT_NAME : String = query
[static]
MUCOwnerExtension
 InheritedFLASH_NS : Namespace
[static]
XMLStanza
  NS : String = http://jabber.org/protocol/muc#owner
[static]
MUCOwnerExtension
 InheritedSTREAM_NS : Namespace
[static]
XMLStanza
Constructor Detail
MUCOwnerExtension()Constructor
public function MUCOwnerExtension(parent:XML = null)

Parameters
parent:XML (default = null) — (Optional) The containing XML for this extension
Method Detail
destroy()method
public function destroy(reason:String, alternateJID:EscapedJID = null):void

Replaces the destroy node with a new node and sets the reason element and jid attribute

Parameters

reason:String — A string describing the reason for room destruction. Use null to remove.
 
alternateJID:EscapedJID (default = null) — A string containing a JID that room members can use instead of this room

getElementName()method 
public function getElementName():String

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

Returns
String
Constant Detail
ELEMENT_NAMEConstant
public static const ELEMENT_NAME:String = query

NSConstant 
public static const NS:String = http://jabber.org/protocol/muc#owner