Package | org.igniterealtime.xiff.data.xhtml |
Class | public class XHTMLExtension |
Inheritance | XHTMLExtension ![]() ![]() ![]() ![]() |
Implements | IExtension |
This class provides an extension for XHTML body text in messages.
html --> http://jabber.org/protocol/xhtml-im
body --> http://www.w3.org/1999/xhtml
See also
Property | Defined By | ||
---|---|---|---|
body : String
The XHTML body text. | XHTMLExtension | ||
![]() | xml : XML [override]
Override in order to take care of setting the Namespace and
checking for containing extensions. | Extension |
Method | Defined By | ||
---|---|---|---|
XHTMLExtension(parent:XML = null) | XHTMLExtension | ||
![]() |
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
Gets the element name associated with this extension. | XHTMLExtension | ||
![]() | 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
Gets the namespace associated with this extension. | XHTMLExtension | ||
![]() | 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 = html [static] | XHTMLExtension | ||
![]() | FLASH_NS : Namespace [static]
| XMLStanza | |
NS : String = http://jabber.org/protocol/xhtml-im [static] | XHTMLExtension | ||
![]() | STREAM_NS : Namespace [static]
| XMLStanza |
body | property |
body:String
The XHTML body text. Valid XHTML is REQUIRED. Because XMPP operates using valid XML, standard HTML, which is not necessarily XML-parser compliant, will not work.
Use null
to remove.
public function get body():String
public function set body(value:String):void
XHTMLExtension | () | Constructor |
public function XHTMLExtension(parent:XML = null)
Parameters
parent:XML (default = null ) — The parent node for this extension
|
getElementName | () | method |
public function getElementName():String
Gets the element name associated with this extension. The element for this extension is "html".
ReturnsString — The element name
|
getNS | () | method |
public function getNS():String
Gets the namespace associated with this extension. The namespace for the XHTMLExtension is "http://www.w3.org/1999/xhtml".
ReturnsString — The namespace
|
ELEMENT_NAME | Constant |
public static const ELEMENT_NAME:String = html
NS | Constant |
public static const NS:String = http://jabber.org/protocol/xhtml-im