Package | org.igniterealtime.xiff.data.vcard |
Class | public class VCardExtension |
Inheritance | VCardExtension ![]() ![]() ![]() ![]() |
Implements | IExtension |
The basic functionality is for a user to store and retrieve an XML representation of his or her vCard using the data storage capabilities native to all existing Jabber server implementations. This is done by by sending an iq of type "set" (storage) or "get" (retrieval) to one's Jabber server containing a vCard child scoped by the 'vcard-temp' namespace, with the vCard element containing the actual vCard-XML elements as defined by the vCard-XML DTD. Other users may then view one's vCard information.
See also
Method | Defined By | ||
---|---|---|---|
VCardExtension(parent:XML = null) | VCardExtension | ||
![]() |
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 | VCardExtension | ||
![]() | 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 | VCardExtension | ||
![]() | 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 = vCard [static] | VCardExtension | ||
![]() | FLASH_NS : Namespace [static]
| XMLStanza | |
NS : String = vcard-temp [static] | VCardExtension | ||
![]() | STREAM_NS : Namespace [static]
| XMLStanza |
VCardExtension | () | Constructor |
public function VCardExtension(parent:XML = null)
Parameters
parent:XML (default = null ) — (Optional) The containing XML for this extension
|
getElementName | () | method |
public function getElementName():String
ReturnsString |
getNS | () | method |
public function getNS():String
ReturnsString |
ELEMENT_NAME | Constant |
public static const ELEMENT_NAME:String = vCard
NS | Constant |
public static const NS:String = vcard-temp