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 Object implements org.jivesoftware.smack.packet.XmlElement
NamedElement which represents the mood. This element has the element name of the mood selected from Mood.
  • Constructor Details

  • Method Details

    • getElementName

      public String getElementName()
      Specified by:
      getElementName in interface org.jivesoftware.smack.packet.NamedElement
    • toXML

      public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment xmlEnvironment)
      Specified by:
      toXML in interface org.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 String getNamespace()
      Specified by:
      getNamespace in interface org.jivesoftware.smack.packet.XmlElement