org.epics.pvmanager.data
Interface VTable


public interface VTable

A table. Tables are collections of columns, each of which is composed of a String representing the name of the column and an array of a particular type (all elements of the same column must be of the same type).

Author:
carcassi

Method Summary
 java.lang.Object getColumnArray(int column)
          The data for the given column.
 int getColumnCount()
          The number of columns in the table.
 java.lang.String getColumnName(int column)
          The name of the given column.
 java.lang.Class<?> getColumnType(int column)
          The type of the elements in the column.
 

Method Detail

getColumnCount

int getColumnCount()
The number of columns in the table.

Returns:
the number of columns

getColumnType

java.lang.Class<?> getColumnType(int column)
The type of the elements in the column. The column array will be an array of the given type. For primitive types, this function will return the wrapper class, while getColumnArray(int) will return an array of primitives.

Parameters:
column - the column index
Returns:
the type of this column

getColumnName

java.lang.String getColumnName(int column)
The name of the given column.

Parameters:
column - the column index
Returns:
the name of the column

getColumnArray

java.lang.Object getColumnArray(int column)
The data for the given column. You should cast this object to an array of the appropriate type.

Parameters:
column - the column index
Returns:
the data of the column


Copyright © 2011. All Rights Reserved.