Package | org.igniterealtime.xiff.data.xhtml |
Class | public class XHTMLExtension |
Inheritance | XHTMLExtension ![]() ![]() ![]() |
Implements | IExtension |
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 | ||
![]() | _exts : Object | ExtensionContainer | |
![]() | XMLData : XML [static]
| XMLStanza | |
![]() | XMLFactory : XMLDocument [static]
| XMLStanza |
Method | Defined by | ||
---|---|---|---|
XHTMLExtension(parent:XMLNode = null)
| XHTMLExtension | ||
![]() | ExtensionContainer | ||
![]() |
addTextNode(parent:XMLNode, elementName:String, value:String):XMLNode
Adds a simple text node to the parent node specified.
| XMLStanza | |
deserialize(node:XMLNode):Boolean
| XHTMLExtension | ||
enable():void
[static]
Performs the registration of this extension into the extension registry.
| XHTMLExtension | ||
![]() |
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
Gets the element name associated with this extension.
| XHTMLExtension | ||
![]() |
getExtension(name:String):Extension
| ExtensionContainer | |
![]() |
getNode():XMLNode
| XMLStanza | |
getNS():String
Gets the namespace associated with this extension.
| XHTMLExtension | ||
![]() |
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(parent:XMLNode):Boolean
| XHTMLExtension | ||
![]() |
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 = "html" [static]
| XHTMLExtension | ||
NS : String = "http://jabber.org/protocol/xhtml-im" [static]
| XHTMLExtension |
body | property |
body:String
[read-write]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.
Implementation public function get body():String
public function set body(value:String):void
XHTMLExtension | () | constructor |
public function XHTMLExtension(parent:XMLNode = null)
Parameters
parent:XMLNode (default = null ) — The parent node for this extension
|
deserialize | () | method |
public function deserialize(node:XMLNode):Boolean
Parameters
node:XMLNode — The parent node for this extension
|
Boolean |
See also
enable | () | method |
public static function enable():void
Performs the registration of this extension into the extension registry.
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
|
serialize | () | method |
public function serialize(parent:XMLNode):Boolean
Parameters
parent:XMLNode — The parent node for this extension
|
Boolean |
ELEMENT_NAME | constant |
public static const ELEMENT_NAME:String = "html"
NS | constant |
public static const NS:String = "http://jabber.org/protocol/xhtml-im"