Package | org.igniterealtime.xiff.data.version |
Class | public class SoftwareVersionExtension |
Inheritance | SoftwareVersionExtension ![]() ![]() ![]() ![]() |
Implements | IExtension |
The 'jabber:iq:version' namespace provides a standard way for Jabber entities
to exchange information about the software version used by the entities.
The information is communicated in a request/response pair using an iq
element that contains a query
scoped by the 'jabber:iq:version' namespace.
See also
Property | Defined By | ||
---|---|---|---|
name : String
The natural-language name of the software. | SoftwareVersionExtension | ||
os : String
The operating system of the queried entity. | SoftwareVersionExtension | ||
version : String
The specific version of the software. | SoftwareVersionExtension | ||
![]() | xml : XML [override]
Override in order to take care of setting the Namespace and
checking for containing extensions. | Extension |
Method | Defined By | ||
---|---|---|---|
SoftwareVersionExtension(parent:XML = null) | SoftwareVersionExtension | ||
![]() |
Add extension to the list of the given namespace and insert to the XML element as a child. | ExtensionContainer | |
![]() | 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 | SoftwareVersionExtension | ||
![]() | 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 | SoftwareVersionExtension | ||
![]() | 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] | SoftwareVersionExtension | ||
![]() | FLASH_NS : Namespace [static]
| XMLStanza | |
NS : String = jabber:iq:version [static] | SoftwareVersionExtension | ||
![]() | STREAM_NS : Namespace [static]
| XMLStanza |
name | property |
name:String
The natural-language name of the software. This element is REQUIRED in a result.
public function get name():String
public function set name(value:String):void
os | property |
os:String
The operating system of the queried entity. This element is OPTIONAL in a result, mind the Security Considerations.
public function get os():String
public function set os(value:String):void
See also
version | property |
version:String
The specific version of the software. This element is REQUIRED in a result.
public function get version():String
public function set version(value:String):void
SoftwareVersionExtension | () | Constructor |
public function SoftwareVersionExtension(parent:XML = null)
Parameters
parent:XML (default = null )
|
getElementName | () | method |
public function getElementName():String
ReturnsString |
getNS | () | method |
public function getNS():String
ReturnsString |
ELEMENT_NAME | Constant |
public static const ELEMENT_NAME:String = query
NS | Constant |
public static const NS:String = jabber:iq:version