tigase.disco

## Class ServiceEntity

- java.lang.Object
- - tigase.disco.ServiceEntity

-     public class ServiceEntity
      extends Object

  Describe class ServiceEntity here.
  Created: Sat Feb 10 13:11:34 2007
  Version:
    $Rev$
  Author:
    Artur Hefczyc

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ServiceEntity(String jid, String node, String name)`
    `ServiceEntity(String jid, String node, String name, boolean adminOnly)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addFeatures(String... features)`
    `void` | `addIdentities(ServiceIdentity... identities)`
    `void` | `addItems(ServiceEntity... items)`
    `boolean` | `equals(Object obj)` 2 ServiceEntities are equal of JIDs are equal and NODEs are equal.
    `ServiceEntity` | `findNode(String node)`
    `Element[]` | `getDiscoFeatures(String node)`
    `Element` | `getDiscoInfo(String node)`
    `Element` | `getDiscoInfo(String node, boolean admin)`
    `Element` | `getDiscoItem(String node, String jid)`
    `List<Element>` | `getDiscoItems(String node, String jid)`
    `List<Element>` | `getDiscoItems(String node, String jid, boolean admin)`
    `List<Element>` | `getItems(String node, String jid)`
    `List<Element>` | `getItems(String node, String jid, boolean admin)`
    `String` | `getJID()`
    `String` | `getName()`
    `String` | `getNode()`
    `int` | `hashCode()`
    `boolean` | `isAdminOnly()`
    `void` | `removeItems(ServiceEntity... items)`
    `void` | `setAdminOnly(boolean adminOnly)`
    `void` | `setDescription(String description)`
    `void` | `setFeatures(String... features)`
    `void` | `setIdentities(ServiceIdentity... identities)`
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### ServiceEntity

          public ServiceEntity(String jid,
                               String node,
                               String name)

    - #### ServiceEntity

          public ServiceEntity(String jid,
                               String node,
                               String name,
                               boolean adminOnly)

  - ### Method Detail

    - #### addFeatures

          public void addFeatures(String... features)

    - #### addIdentities

          public void addIdentities(ServiceIdentity... identities)

    - #### addItems

          public void addItems(ServiceEntity... items)

    - #### equals

          public boolean equals(Object obj)

      2 ServiceEntities are equal of JIDs are equal and NODEs are equal.
      Overrides:
        `equals` in class `Object`
      Parameters:
        `obj` - an `Object` value
      Returns:
        a `boolean` value

    - #### findNode

          public ServiceEntity findNode(String node)

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### removeItems

          public void removeItems(ServiceEntity... items)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### getDiscoFeatures

          public Element[] getDiscoFeatures(String node)

    - #### getDiscoInfo

          public Element getDiscoInfo(String node)

    - #### getDiscoInfo

          public Element getDiscoInfo(String node,
                                      boolean admin)

    - #### getDiscoItem

          public Element getDiscoItem(String node,
                                      String jid)

    - #### getDiscoItems

          public List<Element> getDiscoItems(String node,
                                             String jid)

    - #### getDiscoItems

          public List<Element> getDiscoItems(String node,
                                             String jid,
                                             boolean admin)

    - #### getItems

          public List<Element> getItems(String node,
                                        String jid)

    - #### getItems

          public List<Element> getItems(String node,
                                        String jid,
                                        boolean admin)

    - #### getJID

          public String getJID()

    - #### getName

          public String getName()

    - #### getNode

          public String getNode()

    - #### isAdminOnly

          public boolean isAdminOnly()

    - #### setAdminOnly

          public void setAdminOnly(boolean adminOnly)

    - #### setDescription

          public void setDescription(String description)

    - #### setFeatures

          public void setFeatures(String... features)

    - #### setIdentities

          public void setIdentities(ServiceIdentity... identities)

Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.