Package org.jivesoftware.smack.packet
Class Message.Body
- java.lang.Object
-
- org.jivesoftware.smack.packet.Message.Body
-
- All Implemented Interfaces:
Element,ExtensionElement,FullyQualifiedElement,NamedElement,XmlLangElement
- Enclosing class:
- Message
public static final class Message.Body extends Object implements ExtensionElement
Represents a message body, its language and the content of the message.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetElementName()Returns the root element name.StringgetLanguage()Returns the xml:lang of this XML element, or null if one has not been set.StringgetMessage()Returns the message content.StringgetNamespace()Returns the root element XML namespace.inthashCode()XmlStringBuildertoXML(XmlEnvironment enclosingXmlEnvironment)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLanguage
public String getLanguage()
Description copied from interface:XmlLangElementReturns the xml:lang of this XML element, or null if one has not been set.- Specified by:
getLanguagein interfaceFullyQualifiedElement- Specified by:
getLanguagein interfaceXmlLangElement- Returns:
- the xml:lang of this XML element, or null.
-
getMessage
public String getMessage()
Returns the message content.- Returns:
- the content of the message.
-
getElementName
public String getElementName()
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceFullyQualifiedElement- Returns:
- the namespace.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingXmlEnvironment)
-
-