Package rocks.xmpp.extensions.mood.model
Class Mood
- java.lang.Object
-
- rocks.xmpp.extensions.mood.model.Mood
-
public final class Mood extends Object
The implementation of the<mood/>element in thehttp://jabber.org/protocol/moodnamespace.
This class is immutable.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.
- See Also:
- XEP-0107: User Mood, XML Schema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMood.AfraidImpressed with fear or apprehension; in fear; apprehensive.static classMood.AmazedAstonished; confounded with fear, surprise or wonder.static classMood.AmorousInclined to love; having a propensity to love, or to sexual enjoyment; loving, fond, affectionate, passionate, lustful, sexual, etc.static classMood.AngryDisplaying 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 classMood.AnnoyedTo be disturbed or irritated, especially by continued or repeated acts.static classMood.AnxiousFull of anxiety or disquietude; greatly concerned or solicitous, esp. respecting something future or unknown; being in painful suspense.static classMood.ArousedTo be stimulated in one's feelings, especially to be sexually stimulated.static classMood.AshamedTo be stimulated in one's feelings, especially to be sexually stimulated.static classMood.BoredSuffering from boredom; uninterested, without attention.static classMood.BraveStrong in the face of fear; courageous.static classMood.CalmPeaceful, quiet.static classMood.CautiousTaking care or caution; tentative.static classMood.ColdFeeling the sensation of coldness, especially to the point of discomfort.static classMood.ConfidentFeeling very sure of or positive about something, especially about one's own capabilities.static classMood.ConfusedChaotic, jumbled or muddled.static classMood.ContemplativeFeeling introspective or thoughtful.static classMood.ContentedPleased at the satisfaction of a want or desire; satisfied.static classMood.CrankyGrouchy, irritable; easily upset.static classMood.CrazyFeeling out of control; feeling overly excited or enthusiastic.static classMood.CreativeFeeling original, expressive, or imaginative.static classMood.CuriousInquisitive; tending to ask questions, investigate, or explore.static classMood.DejectedFeeling sad and dispirited.static classMood.DepressedSeverely despondent and unhappy.static classMood.DisappointedDefeated of expectation or hope; let down.static classMood.DisgustedFilled with disgust; irritated and out of patience.static classMood.DismayedFeeling a sudden or complete loss of courage in the face of trouble or danger.static classMood.DistractedHaving one's attention diverted; preoccupied.static classMood.EmbarrassedHaving a feeling of shameful discomfort.static classMood.EnviousFeeling pain by the excellence or good fortune of another.static classMood.ExcitedHaving great enthusiasm.static classMood.FlirtatiousIn the mood for flirting.static classMood.FrustratedSuffering from frustration; dissatisfied, agitated, or discontented because one is unable to perform an action or fulfill a desire.static classMood.GratefulFeeling appreciation or thanks.static classMood.GrievingFeeling very sad about something, especially something lost; mournful; sorrowful.static classMood.GrumpyUnhappy and irritable.static classMood.GuiltyFeeling responsible for wrongdoing; feeling blameworthy.static classMood.HappyExperiencing 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 classMood.HopefulHaving a positive feeling, belief, or expectation that something wished for can or will happen.static classMood.HotFeeling the sensation of heat, especially to the point of discomfort.static classMood.HumbledHaving or showing a modest or low estimate of one's own importance; feeling lowered in dignity or importance.static classMood.HumiliatedFeeling deprived of dignity or self-respect.static classMood.HungryHaving a physical need for food.static classMood.HurtWounded, injured, or pained, whether physically or emotionally.static classMood.ImpressedFavourably affected by something or someone.static classMood.InAweFeeling amazement at something or someone; or feeling a combination of fear and reverence.static classMood.IndignantShowing anger or indignation, especially at something unjust or wrong.static classMood.InLoveFeeling strong affection, care, liking, or attraction..static classMood.InterestedShowing great attention to something or someone; having or showing interest.static classMood.IntoxicatedUnder the influence of alcohol; drunk.static classMood.InvincibleFeeling as if one cannot be defeated, overcome or denied.static classMood.JealousFearful of being replaced in position or affection.static classMood.LonelyFeeling isolated, empty, or abandoned.static classMood.LostUnable to find one's way, either physically or emotionally.static classMood.LuckyFeeling as if one will be favored by luck.static classMood.MeanCausing or intending to cause intentional harm; bearing ill will towards another; cruel; malicious.static classMood.MoodyGiven to sudden or frequent changes of mind or feeling; temperamental.static classMood.NervousEasily agitated or alarmed; apprehensive or anxious.static classMood.NeutralNot having a strong mood or emotional state.static classMood.OffendedFeeling emotionally hurt, displeased, or insulted.static classMood.OutragedFeeling resentful anger caused by an extremely violent or vicious attack, or by an offensive, immoral, or indecent act.static classMood.PlayfulInterested in play; fun, recreational, unserious, lighthearted; joking, silly.static classMood.ProudFeeling a sense of one's own worth or accomplishment.static classMood.RelaxedHaving an easy-going mood; not stressed; calm.static classMood.RelievedFeeling uplifted because of the removal of stress or discomfort.static classMood.RemorsefulFeeling regret or sadness for doing something wrong.static classMood.RestlessWithout rest; unable to be still or quiet; uneasy; continually moving.static classMood.SadFeeling sorrow; sorrowful, mournful.static classMood.SarcasticMocking and ironical.static classMood.SatisfiedPleased at the fulfillment of a need or desire.static classMood.SeriousWithout humor or expression of happiness; grave in manner or disposition; earnest; thoughtful; solemn.static classMood.ShockedSurprised, startled, confused, or taken aback.static classMood.ShyFeeling easily frightened or scared; timid; reserved or coy.static classMood.SickFeeling in poor health; ill.static classMood.SleepyFeeling the need for sleep.static classMood.SpontaneousActing without planning; natural; impulsive.static classMood.StressedSuffering emotional pressure.static classMood.StrongCapable of producing great physical force; or, emotionally forceful, able, determined, unyielding.static classMood.SurprisedExperiencing a feeling caused by something unexpected.static classMood.ThankfulShowing appreciation or gratitude.static classMood.ThirstyFeeling the need to drink.static classMood.TiredIn need of rest or sleep.static classMood.UndefinedFeeling any emotion.static classMood.ValueAn abstract base class for all possible mood values.static classMood.WeakLacking in force or ability, either physical or emotional.static classMood.WorriedThinking about unpleasant things that have happened or that might happen; feeling afraid and unhappy.
-
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetText()Gets a natural-language description of, or reason for, the mood.Mood.ValuegetValue()Gets the mood value.StringtoString()Gets the mood value.
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
http://jabber.org/protocol/mood- See Also:
- Constant Field Values
-
-
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.
-
-