eu.reservoir.monitoring.core.table
Class DefaultTableHeader

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

public class DefaultTableHeader
extends java.lang.Object
implements TableHeader

A default implementation of a TableHeader.

See Also:
Serialized Form

Constructor Summary
DefaultTableHeader()
          Construct a TableHeader.
 
Method Summary
 TableHeader add(java.lang.String name, ProbeAttributeType type)
          Add a column definition to the header.
 TableAttribute get(int n)
          Get the Nth element from a header.
 TableHeader set(int n, TableAttribute value)
          Set the Nth element of a header.
 int size()
          Get the size of the header.
 java.util.List<TableAttribute> toList()
          Convert the TableHeader 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

DefaultTableHeader

public DefaultTableHeader()
Construct a TableHeader. It is done w.r.t the Table that the header will be in.

Method Detail

size

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

Specified by:
size in interface TableHeader

get

public TableAttribute get(int n)
Get the Nth element from a header.

Specified by:
get in interface TableHeader

set

public TableHeader set(int n,
                       TableAttribute value)
Set the Nth element of a header.

Specified by:
set in interface TableHeader

add

public TableHeader add(java.lang.String name,
                       ProbeAttributeType type)
Add a column definition to the header.

Specified by:
add in interface TableHeader

toList

public java.util.List<TableAttribute> toList()
Convert the TableHeader to a List.

Specified by:
toList in interface TableHeader

toString

public java.lang.String toString()
To string

Overrides:
toString in class java.lang.Object


RESERVOIR Monitoring 0.6.4