Class MoodElement.MoodSubjectElement
- java.lang.Object
-
- org.jivesoftware.smackx.mood.element.MoodElement.MoodSubjectElement
-
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element
,org.jivesoftware.smack.packet.NamedElement
,org.jivesoftware.smack.packet.XmlElement
,org.jivesoftware.smack.packet.XmlLangElement
- Enclosing class:
- MoodElement
public static class MoodElement.MoodSubjectElement extends java.lang.Object implements org.jivesoftware.smack.packet.XmlElement
NamedElement
which represents the mood. This element has the element name of the mood selected fromMood
.
-
-
Constructor Summary
Constructors Constructor Description MoodSubjectElement(Mood mood, MoodConcretisation concretisation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MoodConcretisation
getConcretisation()
Return the concretisation of the mood.java.lang.String
getElementName()
Mood
getMood()
Return the mood of the user.java.lang.String
getNamespace()
org.jivesoftware.smack.util.XmlStringBuilder
toXML(org.jivesoftware.smack.packet.XmlEnvironment xmlEnvironment)
-
-
-
Constructor Detail
-
MoodSubjectElement
public MoodSubjectElement(Mood mood, MoodConcretisation concretisation)
-
-
Method Detail
-
getElementName
public java.lang.String getElementName()
- Specified by:
getElementName
in interfaceorg.jivesoftware.smack.packet.NamedElement
-
toXML
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment xmlEnvironment)
- Specified by:
toXML
in interfaceorg.jivesoftware.smack.packet.Element
-
getMood
public Mood getMood()
Return the mood of the user.- Returns:
- mood or null
-
getConcretisation
public MoodConcretisation getConcretisation()
Return the concretisation of the mood.- Returns:
- concretisation or null
-
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespace
in interfaceorg.jivesoftware.smack.packet.XmlElement
-
-