org.gcube.portlets.user.tdw.client.config
Class Row

java.lang.Object
  extended by org.gcube.portlets.user.tdw.client.config.Row

public class Row
extends Object

Represents a table row.

Author:
"Federico De Faveri defaveri@isti.cnr.it"

Field Summary
protected  DataRow dataRow
           
protected  Map<String,ColumnKey> keys
           
 
Constructor Summary
Row(DataRow dataRow, Map<String,ColumnKey> keys)
           
Row(Map<String,ColumnKey> keys)
           
 
Method Summary
<T> T
getField(String fieldId)
          Returns the specified field as request value type T.
 String getFieldAsText(String fieldId)
          Returns the specified field as text value.
protected  void setDataRow(DataRow dataRow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataRow

protected DataRow dataRow

keys

protected Map<String,ColumnKey> keys
Constructor Detail

Row

public Row(Map<String,ColumnKey> keys)
Parameters:
keys -

Row

public Row(DataRow dataRow,
           Map<String,ColumnKey> keys)
Parameters:
dataRow -
keys -
Method Detail

setDataRow

protected void setDataRow(DataRow dataRow)
Parameters:
dataRow - the dataRow to set

getFieldAsText

public String getFieldAsText(String fieldId)
Returns the specified field as text value.

Parameters:
fieldId - the field id.
Returns:
the text value.

getField

public <T> T getField(String fieldId)
Returns the specified field as request value type T. If a wrong type is specified a ClassCastException will be throw.

Parameters:
fieldId - the field id.
Returns:
the field value.


Copyright © 2013. All Rights Reserved.