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.FullyQualifiedElement,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlLangElement
- Enclosing class:
- MoodElement
public static class MoodElement.MoodSubjectElement extends java.lang.Object implements org.jivesoftware.smack.packet.FullyQualifiedElementNamedElementwhich 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 MoodConcretisationgetConcretisation()Return the concretisation of the mood.java.lang.StringgetElementName()MoodgetMood()Return the mood of the user.java.lang.StringgetNamespace()org.jivesoftware.smack.util.XmlStringBuildertoXML(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:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
toXML
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment xmlEnvironment)
- Specified by:
toXMLin 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:
getNamespacein interfaceorg.jivesoftware.smack.packet.FullyQualifiedElement
-
-