Class BoBExtension
- java.lang.Object
-
- org.jivesoftware.smackx.xhtmlim.packet.XHTMLExtension
-
- org.jivesoftware.smackx.bob.element.BoBExtension
-
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.ExtensionElement,org.jivesoftware.smack.packet.FullyQualifiedElement,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlLangElement
public class BoBExtension extends XHTMLExtension
Bits of Binary extension element.- See Also:
- XEP-0231: Bits of Binary
-
-
Field Summary
-
Fields inherited from class org.jivesoftware.smackx.xhtmlim.packet.XHTMLExtension
ELEMENT, NAMESPACE, QNAME
-
-
Constructor Summary
Constructors Constructor Description BoBExtension(BoBHash bobHash, java.lang.String alt, java.lang.String paragraph)Bits of Binary extension constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BoBExtensionfrom(org.jivesoftware.smack.packet.Message message)java.lang.StringgetAlt()Get the alt field.BoBHashgetBoBHash()Get the BoB hash.org.jivesoftware.smack.util.XmlStringBuildertoXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)Returns the XML representation of a XHTML extension according the specification.-
Methods inherited from class org.jivesoftware.smackx.xhtmlim.packet.XHTMLExtension
addBody, from, getBodies, getBodiesCount, getElementName, getNamespace
-
-
-
-
Constructor Detail
-
BoBExtension
public BoBExtension(BoBHash bobHash, java.lang.String alt, java.lang.String paragraph)
Bits of Binary extension constructor.- Parameters:
bobHash- TODO javadoc me pleasealt- TODO javadoc me pleaseparagraph- TODO javadoc me please
-
-
Method Detail
-
getBoBHash
public BoBHash getBoBHash()
Get the BoB hash.- Returns:
- the BoB hash
-
getAlt
public java.lang.String getAlt()
Get the alt field.- Returns:
- the alt field
-
toXML
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
Description copied from class:XHTMLExtensionReturns the XML representation of a XHTML extension according the specification. Usually the XML representation will be inside of a Message XML representation like in the following example:<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>- Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element- Overrides:
toXMLin classXHTMLExtension
-
from
public static BoBExtension from(org.jivesoftware.smack.packet.Message message)
-
-