Packageorg.igniterealtime.xiff.data.disco
Classpublic class ItemDiscoExtension
InheritanceItemDiscoExtension Inheritance DiscoExtension Inheritance Extension Inheritance XMLStanza Inheritance ExtensionContainer
ImplementsIExtension

Implements XEP-0030 for service item discovery.

See also

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


Public Properties
 PropertyDefined by
 Inherited_exts : Object
ExtensionContainer
  items : Array
[read-only] An array of objects that represent the items discovered

The objects in the array have the following possible attributes:

  • jid: the resource name
  • node: a path to a resource that can be discovered without a JID
  • name: the friendly name of the jid
  • action: the kind of action that occurs during publication of services it can be either "remove" or "update"
ItemDiscoExtension
 Inherited_service : EscapedJID
DiscoExtension
 Inheritedservice : EscapedJID
The service name of the discovery procedure
DiscoExtension
 InheritedserviceNode : String
DiscoExtension
 InheritedXMLData : XML
[static]
XMLStanza
 InheritedXMLFactory : XMLDocument
[static]
XMLStanza
Public Methods
 MethodDefined by
  
ItemDiscoExtension(xmlNode:XMLNode = null)
ItemDiscoExtension
 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
ItemDiscoExtension
  
enable():void
[static] Performs the registration of this extension into the extension registry.
ItemDiscoExtension
 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
ItemDiscoExtension
 Inherited
getExtension(name:String):Extension
ExtensionContainer
 Inherited
getNode():XMLNode
XMLStanza
  
getNS():String
ItemDiscoExtension
 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
 Inherited
serialize(parentNode:XMLNode):Boolean
DiscoExtension
 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
Public Constants
 ConstantDefined by
 InheritedELEMENT_NAME : String = "query"
[static]
DiscoExtension
  NS : String = "http://jabber.org/protocol/disco#items"
[static]
ItemDiscoExtension
Property detail
itemsproperty
items:Array  [read-only]

An array of objects that represent the items discovered

The objects in the array have the following possible attributes:

Implementation
    public function get items():Array
Constructor detail
ItemDiscoExtension()constructor
public function ItemDiscoExtension(xmlNode:XMLNode = null)Parameters
xmlNode:XMLNode (default = null)
Method detail
deserialize()method
public override function deserialize(node:XMLNode):BooleanParameters
node:XMLNode

Returns
Boolean
enable()method 
public static function enable():void

Performs the registration of this extension into the extension registry.

getElementName()method 
public function getElementName():String

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

Returns
String
Constant detail
NSconstant
public static const NS:String = "http://jabber.org/protocol/disco#items"