Interface NamedElement

All Superinterfaces:
Element
All Known Subinterfaces:
ExtensionElement, Nonza, SaslNonza, TopLevelStreamElement, XmlElement
All Known Implementing Classes:
AbstractStreamClose, AbstractStreamOpen, AbstractTextElement, Bind, Bind.Feature, Compress, Compress.Feature, Compressed, EmptyResultIQ, ErrorIQ, Failure, IQ, Mechanisms, Message, Message.Body, Message.Subject, Message.Thread, MessageOrPresence, Presence, SaslNonza.AuthMechanism, SaslNonza.Challenge, SaslNonza.Response, SaslNonza.SASLFailure, SaslNonza.Success, Session, Session.Feature, SimpleIQ, StandardExtensionElement, Stanza, StanzaError, StanzaErrorTextElement, StartTls, StreamClose, StreamError, StreamOpen, TlsFailure, TlsProceed, UnparsedIQ

public interface NamedElement extends Element
Interface to represent a XML element. This is similar to ExtensionElement, but does not carry a single namespace, but instead is used with multiple namespaces. Examples for this include MUC's <destroy/> element.

Please note that usage of this interface is discouraged. The reason is that every XML element is fully qualified, i.e., it is qualified by a namespace. The namespace may not be explicitly given, but instead, is inherited from an outer element. Use XmlElement instead when possible.

  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the root element name.

    Methods inherited from interface org.jivesoftware.smack.packet.Element

    toXML, toXML, toXML
  • Method Details

    • getElementName

      String getElementName()
      Returns the root element name.
      Returns:
      the element name.