tigase.xmpp.impl.roster

## Class RosterElement

- java.lang.Object
- - tigase.xmpp.impl.roster.RosterElement

-     public class RosterElement
      extends Object

  Describe class RosterElement here. Created: Wed Oct 29 14:21:16 2008
  Author:
    Artur Hefczyc

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected static long` | `INITIAL_LAST_SEEN_VAL` Field description

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `RosterElement(Element roster_el, XMPPResourceConnection session)`
    `RosterElement(JID jid, String name, String[] groups, XMPPResourceConnection session)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addGroups(String[] groups)`
    `double` | `getActivity()`
    `String[]` | `getGroups()`
    `JID` | `getJid()`
    `long` | `getLastSeen()`
    `String` | `getName()`
    `String` | `getOtherData()`
    `Element` | `getRosterElement()`
    `Element` | `getRosterItem()`
    `RosterAbstract.SubscriptionType` | `getSubscription()`
    `double` | `getWeight()`
    `boolean` | `isModified()`
    `boolean` | `isOnline()`
    `boolean` | `isPersistent()`
    `boolean` | `isPresence_sent()`
    `void` | `setActivity(double activity)`
    `void` | `setGroups(String[] groups)`
    `void` | `setLastSeen(long lastSeen)`
    `void` | `setName(String name)`
    `void` | `setOnline(String resource, boolean online)`
    `void` | `setOtherData(String other_data)`
    `void` | `setPersistent(boolean persistent)`
    `void` | `setPresence_sent(boolean presence_sent)`
    `void` | `setSubscription(RosterAbstract.SubscriptionType subscription)`
    `void` | `setWeight(double weight)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### INITIAL_LAST_SEEN_VAL

          protected static final long INITIAL_LAST_SEEN_VAL

      Field description
      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### RosterElement

          public RosterElement(Element roster_el,
                               XMPPResourceConnection session)
                        throws TigaseStringprepException

      Throws:
        `TigaseStringprepException`

    - #### RosterElement

          public RosterElement(JID jid,
                               String name,
                               String[] groups,
                               XMPPResourceConnection session)

  - ### Method Detail

    - #### addGroups

          public void addGroups(String[] groups)

    - #### getGroups

          public String[] getGroups()

    - #### getJid

          public JID getJid()

    - #### getName

          public String getName()

    - #### getOtherData

          public String getOtherData()

    - #### getRosterElement

          public Element getRosterElement()

    - #### getRosterItem

          public Element getRosterItem()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### getSubscription

          public RosterAbstract.SubscriptionType getSubscription()

    - #### isModified

          public boolean isModified()

    - #### isOnline

          public boolean isOnline()

    - #### isPresence_sent

          public boolean isPresence_sent()

    - #### setGroups

          public final void setGroups(String[] groups)

    - #### setName

          public final void setName(String name)

    - #### setOnline

          public void setOnline(String resource,
                                boolean online)

    - #### setOtherData

          public void setOtherData(String other_data)

    - #### setPresence_sent

          public void setPresence_sent(boolean presence_sent)

    - #### setSubscription

          public void setSubscription(RosterAbstract.SubscriptionType subscription)

    - #### isPersistent

          public boolean isPersistent()

    - #### setPersistent

          public void setPersistent(boolean persistent)

    - #### getActivity

          public double getActivity()

    - #### setActivity

          public void setActivity(double activity)

    - #### getWeight

          public double getWeight()

    - #### setWeight

          public void setWeight(double weight)

    - #### getLastSeen

          public long getLastSeen()

    - #### setLastSeen

          public void setLastSeen(long lastSeen)

Copyright © 2022 "Tigase, Inc.". All rights reserved.