Begin versioning.
[fits.git] / src / nom / tam / util / DataTable.java
1 package nom.tam.util;
2
3 /* Copyright: Thomas McGlynn 1997-1998.
4  * This code may be used for any purpose, non-commercial
5  * or commercial so long as this copyright notice is retained
6  * in the source code or included in or referred to in any
7  * derived software.
8  */
9 /** This interface defines the properties that
10  * a generic table should have.
11  */
12 public interface DataTable {
13
14     public abstract void setRow(int row, Object newRow)
15             throws TableException;
16
17     public abstract Object getRow(int row);
18
19     public abstract void setColumn(int column, Object newColumn)
20             throws TableException;
21
22     public abstract Object getColumn(int column);
23
24     public abstract void setElement(int row, int col, Object newElement)
25             throws TableException;
26
27     public abstract Object getElement(int row, int col);
28
29     public abstract int getNRows();
30
31     public abstract int getNCols();
32 }