Class OriginIdElement

    • Method Detail

      • addOriginId

        @Deprecated
        public static OriginIdElement addOriginId​(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​(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​(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​(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()
        Description copied from interface: FullyQualifiedElement
        Returns the root element XML namespace.
        Returns:
        the namespace.
      • getElementName

        public java.lang.String getElementName()
        Description copied from interface: NamedElement
        Returns the root element name.
        Returns:
        the element name.
      • 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