Class ReportedData


  • public class ReportedData
    extends java.lang.Object
    Represents a set of data results returned as part of a search. The report is structured in columns and rows.
    • Constructor Detail

      • ReportedData

        public ReportedData()
    • Method Detail

      • getReportedDataFrom

        public static ReportedData getReportedDataFrom​(org.jivesoftware.smack.packet.Stanza packet)
        Returns a new ReportedData if the stanza is used for reporting data and includes an extension that matches the elementName and namespace "x","jabber:x:data".
        Parameters:
        packet - the stanza used for reporting data.
        Returns:
        ReportedData from the packet if present, otherwise null.
      • addRow

        public void addRow​(ReportedData.Row row)
        Adds a new Row.
        Parameters:
        row - the new row to add.
      • addColumn

        public void addColumn​(ReportedData.Column column)
        Adds a new Column.
        Parameters:
        column - the column to add.
      • getRows

        public java.util.List<ReportedData.Row> getRows()
        Returns a List of the rows returned from a search.
        Returns:
        a List of the rows returned from a search.
      • getColumns

        public java.util.List<ReportedData.Column> getColumns()
        Returns a List of the columns returned from a search.
        Returns:
        a List of the columns returned from a search.
      • getTitle

        public java.lang.String getTitle()
        Returns the report's title. It is similar to the title on a web page or an X window.
        Returns:
        title of the report.