Class OriginIdElement

  • All Implemented Interfaces:
    org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.ExtensionElement, org.jivesoftware.smack.packet.FullyQualifiedElement, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlLangElement

    public class OriginIdElement
    extends StableAndUniqueIdElement
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ELEMENT  
      static java.lang.String NAMESPACE  
      static javax.xml.namespace.QName QNAME  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static OriginIdElement addOriginId​(org.jivesoftware.smack.packet.Message message)
      Deprecated.
      static OriginIdElement addTo​(org.jivesoftware.smack.packet.MessageBuilder messageBuilder)
      Add an origin-id element to a message and set the stanzas id to the same id as in the origin-id element.
      boolean equals​(java.lang.Object other)  
      java.lang.String getElementName()  
      java.lang.String getNamespace()  
      static OriginIdElement getOriginId​(org.jivesoftware.smack.packet.Message message)
      Return the origin-id element of a message or null, if absent.
      int hashCode()  
      static boolean hasOriginId​(org.jivesoftware.smack.packet.Message message)
      Return true, if the message contains a origin-id element.
      java.lang.CharSequence toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.jivesoftware.smack.packet.Element

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

        getLanguage, getQName
    • Field Detail

      • QNAME

        public static final javax.xml.namespace.QName QNAME
    • Constructor Detail

      • OriginIdElement

        public OriginIdElement()
      • OriginIdElement

        public OriginIdElement​(java.lang.String id)
    • Method Detail

      • addOriginId

        @Deprecated
        public static OriginIdElement addOriginId​(org.jivesoftware.smack.packet.Message message)
        Deprecated.
        Add an origin-id element to a message and set the stanzas id to the same id as in the origin-id element.
        Parameters:
        message - message.
        Returns:
        the added origin-id element.
      • addTo

        public static OriginIdElement addTo​(org.jivesoftware.smack.packet.MessageBuilder messageBuilder)
        Add an origin-id element to a message and set the stanzas id to the same id as in the origin-id element.
        Parameters:
        messageBuilder - the message builder to add an origin ID to.
        Returns:
        the added origin-id element.
      • hasOriginId

        public static boolean hasOriginId​(org.jivesoftware.smack.packet.Message message)
        Return true, if the message contains a origin-id element.
        Parameters:
        message - message
        Returns:
        true if the message contains a origin-id, false otherwise.
      • getOriginId

        public static OriginIdElement getOriginId​(org.jivesoftware.smack.packet.Message message)
        Return the origin-id element of a message or null, if absent.
        Parameters:
        message - message
        Returns:
        origin-id element
      • getNamespace

        public java.lang.String getNamespace()
      • getElementName

        public java.lang.String getElementName()
      • toXML

        public java.lang.CharSequence toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object