org.pentaho.reporting.engine.classic.core.util
Class ReportParameterValues

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.util.ReportParameterValues
All Implemented Interfaces:
Serializable, Cloneable, DataRow

public class ReportParameterValues
extends Object
implements Cloneable, Serializable, DataRow

Todo: Document Me

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
ReportParameterValues()
           
ReportParameterValues(ReportParameterValues values)
           
 
Method Summary
 void clear()
           
 Object clone()
           
 Object get(String col)
          Returns the value of the function, expression or column using its specific name.
 String[] getColumnNames()
          Returns the known column names, this data-row understands.
 boolean isChanged(String name)
          Checks whether the value contained in the column has changed since the last advance-operation.
 Object put(String col, Object value)
           
 void putAll(DataRow dataRow)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReportParameterValues

public ReportParameterValues()

ReportParameterValues

public ReportParameterValues(ReportParameterValues values)
Method Detail

put

public Object put(String col,
                  Object value)

get

public Object get(String col)
Returns the value of the function, expression or column using its specific name. The given name is translated into a valid column number and the the column is queried. For functions and expressions, the getValue() method is called and for columns from the tablemodel the tablemodel method getValueAt(row, column) gets called.

Specified by:
get in interface DataRow
Parameters:
col - the item index.
Returns:
the value.

getColumnNames

public String[] getColumnNames()
Description copied from interface: DataRow
Returns the known column names, this data-row understands. The column names may change over time but do not change while a event is processed by a function. The array returned is a copy of the internal data-storage and can be safely modified.

Specified by:
getColumnNames in interface DataRow
Returns:
the column names as array.

isChanged

public boolean isChanged(String name)
Checks whether the value contained in the column has changed since the last advance-operation.

Specified by:
isChanged in interface DataRow
Parameters:
name - the name of the column.
Returns:
always false, as parameters are considered static during the report processing.

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

putAll

public void putAll(DataRow dataRow)

clear

public void clear()

toString

public String toString()
Overrides:
toString in class Object