Class JingleReason

  • All Implemented Interfaces:
    org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.XmlLangElement
    Direct Known Subclasses:
    JingleReason.AlternativeSession

    public class JingleReason
    extends java.lang.Object
    implements org.jivesoftware.smack.packet.XmlElement
    The Jingle 'reason' element.
    See Also:
    XEP-0166 ยง 7.4
    • Constructor Detail

      • JingleReason

        public JingleReason​(JingleReason.Reason reason,
                            java.lang.String text,
                            org.jivesoftware.smack.packet.XmlElement element)
    • Method Detail

      • getElementName

        public java.lang.String getElementName()
        Specified by:
        getElementName in interface org.jivesoftware.smack.packet.NamedElement
      • getNamespace

        public java.lang.String getNamespace()
        Specified by:
        getNamespace in interface org.jivesoftware.smack.packet.XmlElement
      • getText

        public java.lang.String getText()
        An optional text that provides human-readable information about the reason for the action.
        Returns:
        a human-readable text with information regarding this reason or null.
        Since:
        4.4.5
      • getElement

        public org.jivesoftware.smack.packet.XmlElement getElement()
        An optional element that provides more detailed machine-readable information about the reason for the action.
        Returns:
        an element with machine-readable information about this reason or null.
        Since:
        4.4.5
      • toXML

        public org.jivesoftware.smack.util.XmlStringBuilder toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingXmlEnvironment)
        Specified by:
        toXML in interface org.jivesoftware.smack.packet.Element