Package org.jivesoftware.smack.packet
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 Summary
Modifier and TypeMethodDescriptiondefault CharSequencetoXML()default CharSequenceReturns the XML representation of this Element.toXML(XmlEnvironment xmlEnvironment)
-
Method Details
-
toXML
-
toXML
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 ornull.- Returns:
- the stanza extension as XML.
-
toXML
-