Package | org.igniterealtime.xiff.data.disco |
Class | public class InfoDiscoExtension |
Inheritance | InfoDiscoExtension ![]() ![]() ![]() ![]() ![]() |
Implements | IExtension |
See also
Property | Defined By | ||
---|---|---|---|
features : Array
An array of namespaces this service supports for feature negotiation. | InfoDiscoExtension | ||
identities : Array
An array of objects that represent the identities of a resource discovered. | InfoDiscoExtension | ||
![]() | node : String | DiscoExtension | |
![]() | xml : XML [override]
Override in order to take care of setting the Namespace and
checking for containing extensions. | Extension |
Method | Defined By | ||
---|---|---|---|
InfoDiscoExtension(parent:XML = null)
In case you enable the FormExtension, you might get the extended disco information... | InfoDiscoExtension | ||
![]() |
Add extension to the list of the given namespace and insert to the XML element as a child. | ExtensionContainer | |
InfoDiscoExtension | |||
addFeatures(varNames:Array):Array
Add features as a list of namespace strings. | InfoDiscoExtension | ||
InfoDiscoExtension | |||
![]() | getAllExtensions():Array | ExtensionContainer | |
![]() | getAllExtensionsByNS(nameSpace:String):Array | ExtensionContainer | |
![]() | getAttribute(name:String):String
Convinience method for getting element value from the XML. | XMLStanza | |
![]() | getChildAttribute(elem:String, name:String):String
Convinience method for getting child element attribute value from the XML. | XMLStanza | |
![]() | getChildField(elem:String, name:String):String
Convinience method for getting child element value from the XML. | XMLStanza | |
getElementName():String | InfoDiscoExtension | ||
![]() | getExtension(elementName:String):IExtension
Get the extension having the given element name. | ExtensionContainer | |
![]() | getField(name:String):String
Convinience method for getting element value from the XML. | XMLStanza | |
getNS():String | InfoDiscoExtension | ||
![]() | remove():void
Removes the extension from its parent. | Extension | |
![]() | removeAllExtensions(nameSpace:String):void | ExtensionContainer | |
![]() | removeExtension(extension:IExtension):Boolean | ExtensionContainer | |
![]() | removeFields(name:String):void
Helper method for removing all child elements that have the given name. | XMLStanza | |
![]() | setAttribute(name:String, value:String):void
Convinience method for setting a value to a element in the XML. | XMLStanza | |
![]() | setChildAttribute(elem:String, name:String, value:String):void
Convinience method for setting an attribute for a child element of the XML. | XMLStanza | |
![]() | setChildField(elem:String, name:String, value:String):void
Convinience method for setting a value for a child element of the XML. | XMLStanza | |
![]() | setField(name:String, value:String):void
Convinience method for setting a value to a element in the XML. | XMLStanza | |
![]() | toString():String
Converts the base stanza XML to a string. | XMLStanza |
Constant | Defined By | ||
---|---|---|---|
![]() | DEFAULT_NS : Namespace [static]
Default XML namespace. | XMLStanza | |
![]() | ELEMENT_NAME : String = query [static] | DiscoExtension | |
![]() | FLASH_NS : Namespace [static]
| XMLStanza | |
NS : String = http://jabber.org/protocol/disco#info [static] | InfoDiscoExtension | ||
![]() | STREAM_NS : Namespace [static]
| XMLStanza |
features | property |
features:Array
An array of namespaces this service supports for feature negotiation.
public function get features():Array
public function set features(value:Array):void
See also
identities | property |
identities:Array
An array of objects that represent the identities of a resource discovered.
The DiscoIdentity objects in the array have the following possible attributes:
category
- a category of the kind of identitytype
- a path to a resource that can be discovered without a JIDname
- the friendly name of the identity public function get identities():Array
public function set identities(value:Array):void
See also
InfoDiscoExtension | () | Constructor |
public function InfoDiscoExtension(parent:XML = null)
In case you enable the FormExtension, you might get the extended disco information...
Parametersparent:XML (default = null )
|
addFeature | () | method |
public function addFeature(feature:DiscoFeature):DiscoFeature
Parameters
feature:DiscoFeature |
DiscoFeature — |
addFeatures | () | method |
public function addFeatures(varNames:Array):Array
Add features as a list of namespace strings.
Parameters
varNames:Array |
Array — List of DiscoFeature elements created
|
addIdentity | () | method |
public function addIdentity(identity:DiscoIdentity):DiscoIdentity
Parameters
identity:DiscoIdentity |
DiscoIdentity — |
getElementName | () | method |
public function getElementName():String
ReturnsString |
getNS | () | method |
public function getNS():String
ReturnsString |
NS | Constant |
public static const NS:String = http://jabber.org/protocol/disco#info