com.day.cq.reporting
Class DataRow

java.lang.Object
  extended by com.day.cq.reporting.DataRow

public class DataRow
extends Object

This class implements a row of Data.


Constructor Summary
DataRow(int colCnt)
          Creates a new row of report data.
 
Method Summary
 void add(String property, CellValue value)
          Adds cell data.
protected  void compact()
          Compacts row data
protected  void ensureMutable()
          Ensures that the data is still mutable.
 CellValue get(String property)
          Gets the data of the specified cell.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataRow

public DataRow(int colCnt)
Creates a new row of report data.

Parameters:
colCnt - Number of columns (should be set appropriately to save memory)
Method Detail

ensureMutable

protected void ensureMutable()
Ensures that the data is still mutable. Throws an IllegalStateException otherwise.


compact

protected void compact()
Compacts row data


add

public void add(String property,
                CellValue value)

Adds cell data.

If there's already cell data available for the specified property, the existing cell data gets overwritten by the new value.

Parameters:
property - Name of the property
value - The property's value for the eow

get

public CellValue get(String property)
Gets the data of the specified cell.

Parameters:
property - Name of property for which the data has to be retrieved
Returns:
The property's value for the row; null if no value is available

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.