| Package | org.igniterealtime.xiff.data.disco |
| Class | public class ItemDiscoExtension |
| Inheritance | ItemDiscoExtension DiscoExtension Extension XMLStanza ExtensionContainer |
| Implements | IExtension |
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | _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:
| ItemDiscoExtension | ||
![]() | _service : EscapedJID | DiscoExtension | |
![]() | service : EscapedJID
The service name of the discovery procedure
| DiscoExtension | |
![]() | serviceNode : String | DiscoExtension | |
![]() | XMLData : XML [static]
| XMLStanza | |
![]() | XMLFactory : XMLDocument [static]
| XMLStanza | |
| Method | Defined by | ||
|---|---|---|---|
|
ItemDiscoExtension(xmlNode:XMLNode = null)
| ItemDiscoExtension | ||
![]() | ExtensionContainer | ||
![]() |
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 | ||
![]() |
ensureNode(node:XMLNode, elementName:String):XMLNode
Ensures that a node with a specific element name exists in the stanza.
| XMLStanza | |
![]() |
exists(value:*):Boolean
[static]
A helper method to determine if a value is both not null
and not undefined.
| XMLStanza | |
![]() |
getAllExtensions():Array
| ExtensionContainer | |
![]() |
getAllExtensionsByNS(ns:String):Array
| ExtensionContainer | |
|
getElementName():String
| ItemDiscoExtension | ||
![]() |
getExtension(name:String):Extension
| ExtensionContainer | |
![]() |
getNode():XMLNode
| XMLStanza | |
|
getNS():String
| ItemDiscoExtension | ||
![]() |
remove():void
Removes the extension from its parent.
| Extension | |
![]() |
removeAllExtensions(ns:String):void
| ExtensionContainer | |
![]() |
removeExtension(ext:IExtension):Boolean
| ExtensionContainer | |
![]() |
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
| DiscoExtension | |
![]() |
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 | |
| Constant | Defined by | ||
|---|---|---|---|
![]() | ELEMENT_NAME : String = "query" [static]
| DiscoExtension | |
| NS : String = "http://jabber.org/protocol/disco#items" [static]
| ItemDiscoExtension | ||
| items | property |
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 namenode: a path to a resource that can be discovered
without a JIDname: the friendly name of the jidaction: the kind of action that occurs during
publication of services it can be either "remove" or "update" public function get items():Array
| ItemDiscoExtension | () | constructor |
public function ItemDiscoExtension(xmlNode:XMLNode = null)Parameters
xmlNode:XMLNode (default = null) |
| deserialize | () | method |
public override function deserialize(node:XMLNode):BooleanParameters
node:XMLNode |
Boolean |
| enable | () | method |
public static function enable():voidPerforms 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 |
| NS | constant |
public static const NS:String = "http://jabber.org/protocol/disco#items"