eu.reservoir.monitoring.core.table
Class DefaultTableRow

java.lang.Object
  extended by eu.reservoir.monitoring.core.table.DefaultTableRow
All Implemented Interfaces:
TableRow, java.io.Serializable

public class DefaultTableRow
extends java.lang.Object
implements TableRow

A default implementation of a TableRow.

See Also:
Serialized Form

Constructor Summary
DefaultTableRow()
          Construct a TableRow.
 
Method Summary
 TableRow add(java.lang.Object value)
          Add an object value to the row.
 TableRow add(TableValue value)
          Add some data value to the row.
 TableValue get(int n)
          Get the Nth element from a row.
 TableRow set(int n, TableValue value)
          Set the Nth element of a row.
 int size()
          Get the size of the row.
 java.util.List<TableValue> toList()
          Convert the Row to a List.
 java.lang.String toString()
          To string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultTableRow

public DefaultTableRow()
Construct a TableRow. It is done w.r.t the Table that the row will be in.

Method Detail

size

public int size()
Get the size of the row. It should be the same size as the number of column definitions for the table that the row is in.

Specified by:
size in interface TableRow

get

public TableValue get(int n)
Get the Nth element from a row.

Specified by:
get in interface TableRow

set

public TableRow set(int n,
                    TableValue value)
Set the Nth element of a row.

Specified by:
set in interface TableRow

add

public TableRow add(TableValue value)
Add some data value to the row.

Specified by:
add in interface TableRow

add

public TableRow add(java.lang.Object value)
             throws TypeException
Add an object value to the row. This throws an Error if the type of the value is not one supported by ProbeAttributeType.

Specified by:
add in interface TableRow
Throws:
TypeException

toList

public java.util.List<TableValue> toList()
Convert the Row to a List.

Specified by:
toList in interface TableRow

toString

public java.lang.String toString()
To string

Overrides:
toString in class java.lang.Object


RESERVOIR Monitoring 0.6.4