Interface Element

All Known Subinterfaces:
ExtensionElement, NamedElement, Nonza, SaslNonza, TopLevelStreamElement, XmlElement
All Known Implementing Classes:
AbstractStreamClose, AbstractStreamOpen, AbstractTextElement, Bind, Bind.Feature, Compress, Compress.Feature, Compressed, EmptyResultIQ, ErrorIQ, Failure, IQ, IQ.IQChildElementXmlStringBuilder, 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, XmlStringBuilder

public interface Element
Interface to represent a XML element. This is similar to ExtensionElement, but does not carry a namespace and is usually included as child element of an stanza extension.
  • Method Details

    • toXML

      CharSequence toXML(XmlEnvironment xmlEnvironment)
    • toXML

      default CharSequence toXML(String enclosingNamespace)
      Returns the XML representation of this Element. This method takes an optional argument for the enclosing namespace which may be null or the empty String if the value is not known.
      Parameters:
      enclosingNamespace - the enclosing namespace or null.
      Returns:
      the stanza extension as XML.
    • toXML

      default CharSequence toXML()