Class DiscoverInfo.Feature
- java.lang.Object
-
- org.jivesoftware.smackx.disco.packet.DiscoverInfo.Feature
-
- Enclosing class:
- DiscoverInfo
public static final class DiscoverInfo.Feature extends java.lang.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 Summary
Constructors Constructor Description Feature(java.lang.CharSequence variable)
Feature(java.lang.String variable)
Creates a new feature offered by an XMPP entity or item.Feature(DiscoverInfo.Feature feature)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getVar()
Returns the feature's variable.int
hashCode()
java.lang.String
toString()
XmlStringBuilder
toXML()
-
-
-
Constructor Detail
-
Feature
public Feature(DiscoverInfo.Feature feature)
-
Feature
public Feature(java.lang.CharSequence variable)
-
Feature
public Feature(java.lang.String variable)
Creates a new feature offered by an XMPP entity or item.- Parameters:
variable
- the feature's variable.
-
-
Method Detail
-
getVar
public java.lang.String getVar()
Returns the feature's variable.- Returns:
- the feature's variable.
-
toXML
public XmlStringBuilder toXML()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-