|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MetadataModel
Stores annotations for the rows or columns of a dataset.
| Method Summary | |
|---|---|
Vector |
add(String columnName,
Class<?> columnClass)
Appends the specified column name to the end of this meta data (optional operation). |
Vector |
get(int metadataIndex)
Returns the vector at the specified metadata index. |
Vector |
get(String name)
Returns the vector witht the specified name. |
int |
getColumnIndex(String columnName)
Returns the column index for the given column name or -1 if the name is not found. |
String |
getColumnName(int metadataIndex)
Returns the name of the column at metadataIndex. |
int |
getItemCount()
Returns the number of items that a vector in this instance contains. |
int |
getMetadataCount()
Returns the number of columns in this meta data instance. |
Object |
getValue(int itemIndex,
int metadataIndex)
Returns the value for the element at itemIndex and
metadataIndex. |
Object |
getValue(int itemIndex,
String columnName)
Returns the value for the element at metadataIndex and
columnName. |
void |
remove(int metadataIndex)
Removes the column at the specified position in this meta data instance (optional operation). |
void |
setValue(int itemIndex,
int metadataIndex,
Object aValue)
Sets the value in the cell at columnName and
itemIndex to aValue. |
void |
setValue(int itemIndex,
String columnName,
Object aValue)
Sets the value in the cell at columnName and
itemIndex to aValue. |
| Method Detail |
|---|
Vector add(String columnName,
Class<?> columnClass)
columnName - The column name to be inserted into this meta data instance.columnClass - The class of the column to be inserted.
UnsupportedOperationException - if the addColumn method is not supported by this
meta data instance.Vector get(int metadataIndex)
metadataIndex - the metadata index
Vector get(String name)
name - the vector name
String getColumnName(int metadataIndex)
metadataIndex. Note: this
name needs to be unique; two columns in a meta data instance can not have
the same name.
metadataIndex - the index of the column
int getItemCount()
int getMetadataCount()
int getColumnIndex(String columnName)
columnName - the column name
Object getValue(int itemIndex,
int metadataIndex)
itemIndex and
metadataIndex.
itemIndex - the item whose value is to be queriedmetadataIndex - the column name whose value is to be queried
Object getValue(int itemIndex,
String columnName)
metadataIndex and
columnName.
itemIndex - the item whose value is to be queriedcolumnName - the column name whose value is to be queried
void remove(int metadataIndex)
metadataIndex - the column index to remove.
UnsupportedOperationException - if the remove method is not supported by this list.
IndexOutOfBoundsException - if the index is out of range (metadataIndex < 0 || index
>= getColumnCount()).
void setValue(int itemIndex,
int metadataIndex,
Object aValue)
columnName and
itemIndex to aValue.
aValue - the new valueitemIndex - the item whose value is to be changedmetadataIndex - the metadata index whose value is to be changedgetValue(int, int)
void setValue(int itemIndex,
String columnName,
Object aValue)
columnName and
itemIndex to aValue.
aValue - the new valueitemIndex - the item whose value is to be changedcolumnName - the column name whose value is to be changedgetValue(int, int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||