Package org.jivesoftware.smackx.search
Class ReportedData
java.lang.Object
org.jivesoftware.smackx.search.ReportedData
Represents a set of data results returned as part of a search. The report is structured
in columns and rows.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the columns definition of the reported data.static classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumn(ReportedData.Column column) Adds a newColumn.voidaddRow(ReportedData.Row row) Adds a newRow.Returns a List of the columns returned from a search.static ReportedDatagetReportedDataFrom(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".getRows()Returns a List of the rows returned from a search.getTitle()Returns the report's title.
-
Constructor Details
-
ReportedData
public ReportedData()
-
-
Method Details
-
getReportedDataFrom
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
Adds a newRow.- Parameters:
row- the new row to add.
-
addColumn
Adds a newColumn.- Parameters:
column- the column to add.
-
getRows
Returns a List of the rows returned from a search.- Returns:
- a List of the rows returned from a search.
-
getColumns
Returns a List of the columns returned from a search.- Returns:
- a List of the columns returned from a search.
-
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.
-