Package org.jivesoftware.smack.packet
Class Message.Body
java.lang.Object
org.jivesoftware.smack.packet.Message.Body
- All Implemented Interfaces:
Element,ExtensionElement,NamedElement,XmlElement,XmlLangElement
- Enclosing class:
- Message
Represents a message body, its language and the content of the message.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the root element name.Returns the xml:lang of this XML element, or null if one has not been set.Returns the message content.Returns the root element XML namespace.inthashCode()toXML(XmlEnvironment enclosingXmlEnvironment) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getQName
-
Field Details
-
ELEMENT
- See Also:
-
NAMESPACE
- See Also:
-
QNAME
-
-
Constructor Details
-
Body
-
Body
-
-
Method Details
-
getLanguage
Description copied from interface:XmlLangElementReturns the xml:lang of this XML element, or null if one has not been set.- Specified by:
getLanguagein interfaceXmlElement- Specified by:
getLanguagein interfaceXmlLangElement- Returns:
- the xml:lang of this XML element, or null.
-
getMessage
Returns the message content.- Returns:
- the content of the message.
-
hashCode
public int hashCode() -
equals
-
getElementName
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- the namespace.
-
toXML
-