Class Mood


  • public final class Mood
    extends Object
    The implementation of the <mood/> element in the http://jabber.org/protocol/mood namespace.

    XEP-0107: User Mood

    This specification defines a payload format for communicating information about user moods, such as whether a person is currently happy, sad, angy, or annoyed. The payload format is typically transported using the personal eventing protocol, a profile of XMPP publish-subscribe specified in XEP-0163.

    This class is immutable.
    See Also:
    XEP-0107: User Mood, XML Schema
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Mood.Afraid
      Impressed with fear or apprehension; in fear; apprehensive.
      static class  Mood.Amazed
      Astonished; confounded with fear, surprise or wonder.
      static class  Mood.Amorous
      Inclined to love; having a propensity to love, or to sexual enjoyment; loving, fond, affectionate, passionate, lustful, sexual, etc.
      static class  Mood.Angry
      Displaying or feeling anger, i.e., a strong feeling of displeasure, hostility or antagonism towards someone or something, usually combined with an urge to harm.
      static class  Mood.Annoyed
      To be disturbed or irritated, especially by continued or repeated acts.
      static class  Mood.Anxious
      Full of anxiety or disquietude; greatly concerned or solicitous, esp. respecting something future or unknown; being in painful suspense.
      static class  Mood.Aroused
      To be stimulated in one's feelings, especially to be sexually stimulated.
      static class  Mood.Ashamed
      To be stimulated in one's feelings, especially to be sexually stimulated.
      static class  Mood.Bored
      Suffering from boredom; uninterested, without attention.
      static class  Mood.Brave
      Strong in the face of fear; courageous.
      static class  Mood.Calm
      Peaceful, quiet.
      static class  Mood.Cautious
      Taking care or caution; tentative.
      static class  Mood.Cold
      Feeling the sensation of coldness, especially to the point of discomfort.
      static class  Mood.Confident
      Feeling very sure of or positive about something, especially about one's own capabilities.
      static class  Mood.Confused
      Chaotic, jumbled or muddled.
      static class  Mood.Contemplative
      Feeling introspective or thoughtful.
      static class  Mood.Contented
      Pleased at the satisfaction of a want or desire; satisfied.
      static class  Mood.Cranky
      Grouchy, irritable; easily upset.
      static class  Mood.Crazy
      Feeling out of control; feeling overly excited or enthusiastic.
      static class  Mood.Creative
      Feeling original, expressive, or imaginative.
      static class  Mood.Curious
      Inquisitive; tending to ask questions, investigate, or explore.
      static class  Mood.Dejected
      Feeling sad and dispirited.
      static class  Mood.Depressed
      Severely despondent and unhappy.
      static class  Mood.Disappointed
      Defeated of expectation or hope; let down.
      static class  Mood.Disgusted
      Filled with disgust; irritated and out of patience.
      static class  Mood.Dismayed
      Feeling a sudden or complete loss of courage in the face of trouble or danger.
      static class  Mood.Distracted
      Having one's attention diverted; preoccupied.
      static class  Mood.Embarrassed
      Having a feeling of shameful discomfort.
      static class  Mood.Envious
      Feeling pain by the excellence or good fortune of another.
      static class  Mood.Excited
      Having great enthusiasm.
      static class  Mood.Flirtatious
      In the mood for flirting.
      static class  Mood.Frustrated
      Suffering from frustration; dissatisfied, agitated, or discontented because one is unable to perform an action or fulfill a desire.
      static class  Mood.Grateful
      Feeling appreciation or thanks.
      static class  Mood.Grieving
      Feeling very sad about something, especially something lost; mournful; sorrowful.
      static class  Mood.Grumpy
      Unhappy and irritable.
      static class  Mood.Guilty
      Feeling responsible for wrongdoing; feeling blameworthy.
      static class  Mood.Happy
      Experiencing the effect of favourable fortune; having the feeling arising from the consciousness of well-being or of enjoyment; enjoying good of any kind, as peace, tranquillity, comfort; contented; joyous.
      static class  Mood.Hopeful
      Having a positive feeling, belief, or expectation that something wished for can or will happen.
      static class  Mood.Hot
      Feeling the sensation of heat, especially to the point of discomfort.
      static class  Mood.Humbled
      Having or showing a modest or low estimate of one's own importance; feeling lowered in dignity or importance.
      static class  Mood.Humiliated
      Feeling deprived of dignity or self-respect.
      static class  Mood.Hungry
      Having a physical need for food.
      static class  Mood.Hurt
      Wounded, injured, or pained, whether physically or emotionally.
      static class  Mood.Impressed
      Favourably affected by something or someone.
      static class  Mood.InAwe
      Feeling amazement at something or someone; or feeling a combination of fear and reverence.
      static class  Mood.Indignant
      Showing anger or indignation, especially at something unjust or wrong.
      static class  Mood.InLove
      Feeling strong affection, care, liking, or attraction..
      static class  Mood.Interested
      Showing great attention to something or someone; having or showing interest.
      static class  Mood.Intoxicated
      Under the influence of alcohol; drunk.
      static class  Mood.Invincible
      Feeling as if one cannot be defeated, overcome or denied.
      static class  Mood.Jealous
      Fearful of being replaced in position or affection.
      static class  Mood.Lonely
      Feeling isolated, empty, or abandoned.
      static class  Mood.Lost
      Unable to find one's way, either physically or emotionally.
      static class  Mood.Lucky
      Feeling as if one will be favored by luck.
      static class  Mood.Mean
      Causing or intending to cause intentional harm; bearing ill will towards another; cruel; malicious.
      static class  Mood.Moody
      Given to sudden or frequent changes of mind or feeling; temperamental.
      static class  Mood.Nervous
      Easily agitated or alarmed; apprehensive or anxious.
      static class  Mood.Neutral
      Not having a strong mood or emotional state.
      static class  Mood.Offended
      Feeling emotionally hurt, displeased, or insulted.
      static class  Mood.Outraged
      Feeling resentful anger caused by an extremely violent or vicious attack, or by an offensive, immoral, or indecent act.
      static class  Mood.Playful
      Interested in play; fun, recreational, unserious, lighthearted; joking, silly.
      static class  Mood.Proud
      Feeling a sense of one's own worth or accomplishment.
      static class  Mood.Relaxed
      Having an easy-going mood; not stressed; calm.
      static class  Mood.Relieved
      Feeling uplifted because of the removal of stress or discomfort.
      static class  Mood.Remorseful
      Feeling regret or sadness for doing something wrong.
      static class  Mood.Restless
      Without rest; unable to be still or quiet; uneasy; continually moving.
      static class  Mood.Sad
      Feeling sorrow; sorrowful, mournful.
      static class  Mood.Sarcastic
      Mocking and ironical.
      static class  Mood.Satisfied
      Pleased at the fulfillment of a need or desire.
      static class  Mood.Serious
      Without humor or expression of happiness; grave in manner or disposition; earnest; thoughtful; solemn.
      static class  Mood.Shocked
      Surprised, startled, confused, or taken aback.
      static class  Mood.Shy
      Feeling easily frightened or scared; timid; reserved or coy.
      static class  Mood.Sick
      Feeling in poor health; ill.
      static class  Mood.Sleepy
      Feeling the need for sleep.
      static class  Mood.Spontaneous
      Acting without planning; natural; impulsive.
      static class  Mood.Stressed
      Suffering emotional pressure.
      static class  Mood.Strong
      Capable of producing great physical force; or, emotionally forceful, able, determined, unyielding.
      static class  Mood.Surprised
      Experiencing a feeling caused by something unexpected.
      static class  Mood.Thankful
      Showing appreciation or gratitude.
      static class  Mood.Thirsty
      Feeling the need to drink.
      static class  Mood.Tired
      In need of rest or sleep.
      static class  Mood.Undefined
      Feeling any emotion.
      static class  Mood.Value
      An abstract base class for all possible mood values.
      static class  Mood.Weak
      Lacking in force or ability, either physical or emotional.
      static class  Mood.Worried
      Thinking about unpleasant things that have happened or that might happen; feeling afraid and unhappy.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String NAMESPACE
      http://jabber.org/protocol/mood
    • Constructor Summary

      Constructors 
      Constructor Description
      Mood()
      Creates an empty mood, which indicates that no mood is used.
      Mood​(Mood.Value value)
      Creates a mood with a specific value.
      Mood​(Mood.Value value, String text)
      Creates a mood with a specific value and a text.
    • Constructor Detail

      • Mood

        public Mood()
        Creates an empty mood, which indicates that no mood is used.
      • Mood

        public Mood​(Mood.Value value)
        Creates a mood with a specific value.
        Parameters:
        value - The mood value.
      • Mood

        public Mood​(Mood.Value value,
                    String text)
        Creates a mood with a specific value and a text.
        Parameters:
        value - The mood value.
        text - A natural-language description of, or reason for, the mood.
    • Method Detail

      • getText

        public final String getText()
        Gets a natural-language description of, or reason for, the mood.
        Returns:
        The description.
      • getValue

        public final Mood.Value getValue()
        Gets the mood value.
        Returns:
        The mood value.
      • toString

        public final String toString()
        Gets the mood value.
        Overrides:
        toString in class Object
        Returns:
        The mood value.