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)` Creates a new `ServiceEntity` instance.
    `ServiceEntity(String jid, String node, String name, boolean adminOnly)`

  - ### Method Summary

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

    - ### 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)

      Creates a new `ServiceEntity` instance.
      Parameters:
        `jid` -
        `node` -
        `name` -

    - #### ServiceEntity

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

  - ### Method Detail

    - #### setAdminOnly

          public void setAdminOnly(boolean adminOnly)

    - #### isAdminOnly

          public boolean isAdminOnly()

    - #### 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

    - #### hashCode

          public int hashCode()

      Describe `hashCode` method here.
      Overrides:
        `hashCode` in class `Object`
      Returns:
        an `int` value

    - #### addFeatures

          public void addFeatures(String... features)

      Describe `addFeatures` method here.
      Parameters:
        `features` -

    - #### setFeatures

          public void setFeatures(String... features)

    - #### addIdentities

          public void addIdentities(ServiceIdentity... identities)

      Describe `addIdentities` method here.
      Parameters:
        `identities` -

    - #### addItems

          public void addItems(ServiceEntity... items)

      Describe `addItems` method here.
      Parameters:
        `items` -

    - #### removeItems

          public void removeItems(ServiceEntity... items)

    - #### getJID

          public String getJID()

      Describe `getJID` method here.
      Returns:
        a `String` value

    - #### getNode

          public String getNode()

      Describe `getNode` method here.
      Returns:
        a `String` value

    - #### getName

          public String getName()

      Describe `getName` method here.
      Returns:
        a `String` value

    - #### getDiscoInfo

          public tigase.xml.Element getDiscoInfo(String node)

    - #### getDiscoInfo

          public tigase.xml.Element getDiscoInfo(String node,
                                        boolean admin)

      Describe `getDiscoInfo` method here.
      Parameters:
        `node` - a `String` value
      Returns:
        an `Element` value

    - #### getDiscoFeatures

          public tigase.xml.Element[] getDiscoFeatures(String node)

    - #### getDiscoItem

          public tigase.xml.Element getDiscoItem(String node,
                                        String jid)

      Describe `getDiscoItem` method here.
      Parameters:
        `node` - a `String` value
        `jid` - a `String` value
      Returns:
        an `Element` value

    - #### getItems

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

    - #### getItems

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

    - #### getDiscoItems

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

    - #### getDiscoItems

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

    - #### findNode

          public ServiceEntity findNode(String node)

      Describe `findNode` method here.
      Parameters:
        `node` - a `String` value
      Returns:
        a `ServiceEntity` value

    - #### toString

          public String toString()

      Describe `toString` method here.
      Overrides:
        `toString` in class `Object`
      Returns:
        a `String` value

    - #### setDescription

          public void setDescription(String description)

Copyright © 2013 Tigase. All rights reserved.