public class Friend extends Object implements ExtensionElement
| Modifier and Type | Field and Description |
|---|---|
static String |
ELEMENT |
static String |
NAMESPACE |
| Constructor and Description |
|---|
Friend(org.jxmpp.jid.BareJid friend) |
| Modifier and Type | Method and Description |
|---|---|
static Friend |
from(Message message) |
String |
getElementName()
Returns the root element name.
|
org.jxmpp.jid.BareJid |
getFriend() |
String |
getNamespace()
Returns the root element XML namespace.
|
XmlStringBuilder |
toXML()
Returns the XML representation of this Element.
|
public static final String ELEMENT
public static final String NAMESPACE
public Friend(org.jxmpp.jid.BareJid friend)
public String getElementName()
NamedElementgetElementName in interface NamedElementpublic String getNamespace()
ExtensionElementgetNamespace in interface ExtensionElementpublic XmlStringBuilder toXML()
Elementpublic org.jxmpp.jid.BareJid getFriend()