|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RowTemplateTableInterface
Defines an interface for modifying row template tables. Row template tables are tables where the set of column classes defines a template for each row. In other words, the class of each cell is restricted to the class, or a subclass, of its corresponding column. A SAS data set is an example of such a table.
ColumnTemplateTableInterface
,
FreeformTableInterface
Field Summary | |
---|---|
static int |
DEFAULT_INDEX
Default index constant. |
Method Summary | |
---|---|
void |
addColumn(int index,
java.lang.Class cellClass,
java.lang.Object defaultValue)
Adds a column. |
void |
addRow(int index)
Adds a default row. |
void |
addRow(int index,
java.lang.Object[] values)
Adds a row. |
void |
deleteColumn(int index)
Deletes a column. |
void |
deleteRow(int index)
Deletes a row. |
java.lang.Object |
getColumnDefaultValue(int index)
Returns the default value associated with a column. |
java.lang.Object[] |
getColumnDefaultValues(int startIndex,
int count)
Returns the default values associated with a range of columns. |
boolean |
isColumnsDeletable()
Returns the value of the columnsDeletable property. |
boolean |
isColumnsExtendable()
Returns the value of the columnsExtendable property. |
boolean |
isColumnsInsertable()
Returns the value of the columnsInsertable property. |
boolean |
isColumnsRedefinable()
Returns the value of the columnsRedefinable property. |
boolean |
isRowsDeletable()
Returns the value of the rowsDeletable property. |
boolean |
isRowsExtendable()
Returns the value of the rowsExtendable property. |
boolean |
isRowsInsertable()
Returns the value of the rowsInsertable property. |
void |
setColumnClass(int index,
java.lang.Class newValue)
Sets the class of a column. |
void |
setColumnDefaultValue(int index,
java.lang.Object newValue)
Sets the default value associated with a column. |
Methods inherited from interface com.sas.table.StaticRowTemplateTableInterface |
---|
getColumnClass, getColumnClasses |
Methods inherited from interface com.sas.table.TableInterface |
---|
isCellsModifiable, isMultipleColumnUpdateSupported, isMultipleRowUpdateSupported, setCell, setCells, setColumn, setRow |
Methods inherited from interface com.sas.table.StaticTableInterface |
---|
countColumns, countRows, getCell, getCellClass, getCellClasses, getCells, getColumn, getColumnCount, getRow, getRowCount |
Field Detail |
---|
static final int DEFAULT_INDEX
Method Detail |
---|
void addColumn(int index, java.lang.Class cellClass, java.lang.Object defaultValue) throws com.sas.table.TableException
Some implementations may not allow columns to be added. This can be determined through isColumnsExtendable. Some implementations may allow columns to be added, but not inserted; check isColumnsInsertable. If this is the case, only DEFAULT_INDEX can be specified for index.
index
- The one-based position at which to insert the column; columns already
at or above that position will be shifted-up.
If DEFAULT_INDEX is specified the position of the new column is
implementation defined, but should be at the end if possible.cellClass
- The class of the column's cells.defaultValue
- The default value for the column's cells.
TableException
- Provides a catch-all for all non-RuntimeExceptions.void deleteColumn(int index) throws com.sas.table.TableException
Some implementations may not allow columns to be deleted. This can be determined through isColumnsDeletable.
index
- A one-based index that identifies the column.
TableException
- Provides a catch-all for all non-RuntimeExceptions.
java.lang.IndexOutOfBoundsException
- Thrown if index is negative, zero, or greater than the number
of columns.java.lang.Object getColumnDefaultValue(int index) throws com.sas.table.TableException
index
- A one-based index that identifies the column.
TableException
- Provides a catch-all for all non-RuntimeExceptions.
java.lang.IndexOutOfBoundsException
- Thrown if index is negative, zero, or greater than the number
of columns.java.lang.Object[] getColumnDefaultValues(int startIndex, int count) throws com.sas.table.TableException
startIndex
- A one-based index which identifies the start of the range.count
- The number of default values to return; defines the extent of the
range.
TableException
- Provides a catch-all for all non-RuntimeExceptions.
java.lang.IndexOutOfBoundsException
- Thrown if startIndex or count is negative, zero, or greater than the
number of columns except when getColumnCount has returned -1. In
that case, the implementation should return an array whose length
is less than count and the caller should be prepared for this.boolean isColumnsDeletable() throws com.sas.table.TableException
TableException
- Provides a catch-all for all non-RuntimeExceptions.boolean isColumnsExtendable() throws com.sas.table.TableException
TableException
- Provides a catch-all for all non-RuntimeExceptions.boolean isColumnsInsertable() throws com.sas.table.TableException
TableException
- Provides a catch-all for all non-RuntimeExceptions.boolean isColumnsRedefinable() throws com.sas.table.TableException
TableException
- Provides a catch-all for all non-RuntimeExceptions.void setColumnDefaultValue(int index, java.lang.Object newValue) throws com.sas.table.TableException
index
- A one-based index that identifies the column.newValue
- The new defaultValue to associate with the column.
TableException
- Provides a catch-all for all non-RuntimeExceptions.
java.lang.IndexOutOfBoundsException
- Thrown if index is negative, zero, or greater than the number
of columns.void setColumnClass(int index, java.lang.Class newValue) throws com.sas.table.TableException
Some implementations may not allow columns to be redefined. This can be determined through isColumnsRedefinable.
index
- A one-based index that identifies the column.
TableException
- Provides a catch-all for all non-RuntimeExceptions.
java.lang.IndexOutOfBoundsException
- Thrown if index is negative, zero, or greater than the number of
columns.void addRow(int index, java.lang.Object[] values) throws com.sas.table.TableException
Some implementations may not allow rows to be added. This can be determined through isRowsExtendable. Some implementations may allow rows to be added, but not inserted; check isRowsInsertable. If this is the case, only DEFAULT_INDEX can be specified for index.
index
- The one-based position at which to insert the row; rows already
at or above that position will be shifted-up.
If DEFAULT_INDEX is specified the position of the new row is
implementation defined, but should be at the end if possible.values
- The values for each of the row's cells.
TableException
- Provides a catch-all for all non-RuntimeExceptions.void addRow(int index) throws com.sas.table.TableException
Some implementations may not allow rows to be added. This can be determined through isRowsExtendable. Some implementations may allow rows to be added, but not inserted; check isRowsInsertable. If this is the case, only DEFAULT_INDEX can be specified for index.
index
- The one-based position at which to insert the row; rows already
at or above that position will be shifted-up.
If DEFAULT_INDEX is specified the position of the new row is
implementation defined, but should be at the end if possible.
TableException
- Provides a catch-all for all non-RuntimeExceptions.boolean isRowsExtendable() throws com.sas.table.TableException
TableException
- Provides a catch-all for all non-RuntimeExceptions.boolean isRowsInsertable() throws com.sas.table.TableException
TableException
- Provides a catch-all for all non-RuntimeExceptions.void deleteRow(int index) throws com.sas.table.TableException
Some implementations may not allow rows to be deleted. This can be determined through isRowsDeletable.
index
- A one-based index that identifies the row.
TableException
- Provides a catch-all for all non-RuntimeExceptions.
java.lang.IndexOutOfBoundsException
- Thrown if index is negative, zero, or greater than the number
of rows.boolean isRowsDeletable() throws com.sas.table.TableException
TableException
- Provides a catch-all for all non-RuntimeExceptions.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |