public static final class Message.Body extends Object implements ExtensionElement
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT |
static String |
NAMESPACE |
Constructor and Description |
---|
Body(String language,
String message) |
Body(String language,
String message,
org.jivesoftware.smack.packet.Message.Body.BodyElementNamespace namespace) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getElementName()
Returns the root element name.
|
String |
getLanguage()
Returns the language of this message body or
null if the body extension element does not explicitly
set a language, but instead inherits it from the outer element (usually a Message stanza). |
String |
getMessage()
Returns the message content.
|
String |
getNamespace()
Returns the root element XML namespace.
|
int |
hashCode() |
XmlStringBuilder |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
public static final String ELEMENT
public static final String NAMESPACE
public String getLanguage()
null
if the body extension element does not explicitly
set a language, but instead inherits it from the outer element (usually a Message
stanza).null
.public String getMessage()
public String getElementName()
NamedElement
getElementName
in interface NamedElement
public String getNamespace()
ExtensionElement
getNamespace
in interface ExtensionElement
public XmlStringBuilder toXML(String enclosingNamespace)
Element