public class BoBExtension extends XHTMLExtension
ELEMENT, NAMESPACE| Constructor and Description |
|---|
BoBExtension(BoBHash bobHash,
java.lang.String alt,
java.lang.String paragraph)
Bits of Binary extension constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static BoBExtension |
from(Message message) |
java.lang.String |
getAlt()
Get the alt field.
|
BoBHash |
getBoBHash()
Get the BoB hash.
|
XmlStringBuilder |
toXML()
Returns the XML representation of a XHTML extension according the specification.
|
addBody, getBodies, getBodiesCount, getElementName, getNamespacepublic BoBExtension(BoBHash bobHash, java.lang.String alt, java.lang.String paragraph)
bobHash - alt - paragraph - public BoBHash getBoBHash()
public java.lang.String getAlt()
public XmlStringBuilder toXML()
XHTMLExtension
<message id="MlIpV-4" to="gato1@gato.home" from="gato3@gato.home/Smack">
<subject>Any subject you want</subject>
<body>This message contains something interesting.</body>
<html xmlns="http://jabber.org/protocol/xhtml-im">
<body><p style='font-size:large'>This message contains something <em>interesting</em>.</p></body>
</html>
</message>
toXML in interface ElementtoXML in class XHTMLExtensionpublic static BoBExtension from(Message message)