public class BoBExtension extends XHTMLExtension
ELEMENT, NAMESPACE
Constructor and Description |
---|
BoBExtension(BoBHash bobHash,
String alt,
String paragraph)
Bits of Binary extension constructor.
|
Modifier and Type | Method and Description |
---|---|
static BoBExtension |
from(Message message) |
String |
getAlt()
Get the alt field.
|
BoBHash |
getBoBHash()
Get the BoB hash.
|
XmlStringBuilder |
toXML(String enclosingNamespace)
Returns the XML representation of a XHTML extension according the specification.
|
addBody, getBodies, getBodiesCount, getElementName, getNamespace
public BoBExtension(BoBHash bobHash, String alt, String paragraph)
bobHash
- alt
- paragraph
- public BoBHash getBoBHash()
public XmlStringBuilder toXML(String enclosingNamespace)
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 Element
toXML
in class XHTMLExtension
enclosingNamespace
- the enclosing namespace or null
.public static BoBExtension from(Message message)