|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.datasource.TabularDataHeader
A TabularDataHeader stores header information for a TabularData. It maps column-names to column-indexes.
| Constructor Summary | |
TabularDataHeader()
|
|
| Method Summary | |
void |
addColumn(java.lang.String name)
Adds a column. |
int |
getColumnIndex(java.lang.String colName)
Returns the index of the column with a given name. |
java.lang.String |
getColumnName(int col)
Returns the name of a column with a given index. |
int |
hashCode()
|
int |
size()
Returns the number of columns. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TabularDataHeader()
| Method Detail |
public int size()
ITabularData.size()public void addColumn(java.lang.String name)
name - the name of the columne to be added
java.lang.IllegalArgumentException - if the name is not valid or a column with that name already exists.public int getColumnIndex(java.lang.String colName)
colName - the name of the column.
public java.lang.String getColumnName(int col)
col - the index of the column.
java.lang.IllegalArgumentException - if the provided index is out of rangepublic int hashCode()
Object.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||