Interface EmbeddedPacketExtension

  • All Superinterfaces:
    org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.XmlLangElement
    All Known Implementing Classes:
    ConfigurationEvent, EventElement, ItemsExtension

    public interface EmbeddedPacketExtension
    extends org.jivesoftware.smack.packet.XmlElement
    This interface defines ExtensionElement implementations that contain other extensions. This effectively extends the idea of an extension within one of the top level Stanza types to consider any embedded element to be an extension of its parent. This more easily enables the usage of some of Smacks parsing utilities such as PacketParserUtils.parseExtensionElement(String, String, org.jivesoftware.smack.xml.XmlPullParser, org.jivesoftware.smack.packet.XmlEnvironment) to be used to parse any element of the XML being parsed.

    Top level extensions have only one element, but they can have multiple children, or their children can have multiple children. This interface is a way of allowing extensions to be embedded within one another as a partial or complete one to one mapping of extension to element.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<org.jivesoftware.smack.packet.XmlElement> getExtensions()
      Get the list of embedded ExtensionElement objects.
      • Methods inherited from interface org.jivesoftware.smack.packet.Element

        toXML, toXML, toXML
      • Methods inherited from interface org.jivesoftware.smack.packet.NamedElement

        getElementName
      • Methods inherited from interface org.jivesoftware.smack.packet.XmlElement

        getLanguage, getNamespace, getQName
    • Method Detail

      • getExtensions

        java.util.List<org.jivesoftware.smack.packet.XmlElement> getExtensions()
        Get the list of embedded ExtensionElement objects.
        Returns:
        List of embedded ExtensionElement