Class DiscoverInfo.Feature

java.lang.Object
org.jivesoftware.smackx.disco.packet.DiscoverInfo.Feature
Enclosing class:
DiscoverInfo

public static final class DiscoverInfo.Feature extends Object
Represents the features offered by the item. This information helps the requester to determine what actions are possible with regard to this item (registration, search, join, etc.) as well as specific feature types of interest, if any (e.g., for the purpose of feature negotiation).
  • Constructor Details

    • Feature

      public Feature(DiscoverInfo.Feature feature)
    • Feature

      public Feature(CharSequence variable)
    • Feature

      public Feature(String variable)
      Creates a new feature offered by an XMPP entity or item.
      Parameters:
      variable - the feature's variable.
  • Method Details

    • getVar

      public String getVar()
      Returns the feature's variable.
      Returns:
      the feature's variable.
    • toXML

      public org.jivesoftware.smack.util.XmlStringBuilder toXML()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object