Smack

org.jivesoftware.smackx
Class ReportedData

java.lang.Object
  extended by org.jivesoftware.smackx.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.

Author:
Gaston Dombiak

Nested Class Summary
static class ReportedData.Column
          Represents the columns definition of the reported data.
static class ReportedData.Field
           
static class ReportedData.Row
           
 
Constructor Summary
ReportedData()
           
 
Method Summary
 void addColumn(ReportedData.Column column)
          Adds a new Column
 void addRow(ReportedData.Row row)
          Adds a new Row.
 java.util.Iterator<ReportedData.Column> getColumns()
          Returns an Iterator for the columns returned from a search.
static ReportedData getReportedDataFrom(Packet packet)
          Returns a new ReportedData if the packet is used for reporting data and includes an extension that matches the elementName and namespace "x","jabber:x:data".
 java.util.Iterator<ReportedData.Row> getRows()
          Returns an Iterator for the rows returned from a search.
 java.lang.String getTitle()
          Returns the report's title.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportedData

public ReportedData()
Method Detail

getReportedDataFrom

public static ReportedData getReportedDataFrom(Packet packet)
Returns a new ReportedData if the packet is used for reporting data and includes an extension that matches the elementName and namespace "x","jabber:x:data".

Parameters:
packet - the packet used for reporting data.

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.Iterator<ReportedData.Row> getRows()
Returns an Iterator for the rows returned from a search.

Returns:
an Iterator for the rows returned from a search.

getColumns

public java.util.Iterator<ReportedData.Column> getColumns()
Returns an Iterator for the columns returned from a search.

Returns:
an Iterator for 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.

Smack

Copyright © 2003-2007 Jive Software.