public static final class AbstractMessage.Subject extends Object
<subject/> element.
The
<subject/>element contains human-readable XML character data that specifies the topic of the message.There are no attributes defined for the
<subject/>element, with the exception of the 'xml:lang' attribute inherited from [XML]. Multiple instances of the<subject/>element MAY be included for the purpose of providing alternate versions of the same subject, but only if each instance possesses an 'xml:lang' attribute with a distinct language value.
| Constructor and Description |
|---|
Subject(String text)
Constructs a default subject.
|
Subject(String text,
String language)
Constructs a subject with a language attribute.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLanguage()
Gets the language.
|
String |
getText()
Gets the text.
|
void |
setLanguage(String language)
Deprecated.
Use constructor.
|
void |
setText(String text)
Deprecated.
Use constructor.
|
String |
toString() |
public Subject(String text)
text - The text.public String getLanguage()
@Deprecated public void setLanguage(String language)
language - The language.public String getText()
@Deprecated public void setText(String text)
text - The text.Copyright © 2014–2015 XMPP.rocks. All rights reserved.