Class MoodElement.MoodSubjectElement
- java.lang.Object
-
- org.jivesoftware.smackx.mood.element.MoodElement.MoodSubjectElement
-
- All Implemented Interfaces:
Element
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Enclosing class:
- MoodElement
public static class MoodElement.MoodSubjectElement extends Object implements FullyQualifiedElement
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.String
getElementName()
Returns the root element name.Mood
getMood()
Return the mood of the user.String
getNamespace()
Returns the root element XML namespace.XmlStringBuilder
toXML(XmlEnvironment xmlEnvironment)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Constructor Detail
-
MoodSubjectElement
public MoodSubjectElement(Mood mood, MoodConcretisation concretisation)
-
-
Method Detail
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment xmlEnvironment)
-
getConcretisation
public MoodConcretisation getConcretisation()
Return the concretisation of the mood.- Returns:
- concretisation or null
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
-