|
Cytoscape 3.0.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CyRow
This interface represents one row in a CyTable.
| Method Summary | ||
|---|---|---|
|
get(String columnName,
Class<? extends T> type)
Returns the value found for this row in the specified column with the specified type. |
|
|
get(String columnName,
Class<? extends T> type,
T defaultValue)
Returns the value found for this row in the specified column with the specified type. |
|
Map<String,Object> |
getAllValues()
Returns a map of column names to Objects that contain the values contained in this Row. |
|
|
getList(String columnName,
Class<T> listElementType)
Returns a list which is a view on the underlying column value for this row. |
|
|
getList(String columnName,
Class<T> listElementType,
List<T> defaultValue)
Returns a list which is a view on the underlying column value for this row. |
|
Object |
getRaw(String columnName)
Returns the Object that contains the value for the specified column. |
|
CyTable |
getTable()
Returns the CyTable that this row belongs to. |
|
boolean |
isSet(String columnName)
Indicates whether the column of the specified type contains a non-null value. |
|
|
set(String columnName,
T value)
Sets the specified column for this row to the specified value. |
|
| Method Detail |
|---|
<T> T get(String columnName,
Class<? extends T> type)
T - The generic type of the specified column.columnName - The name identifying the attribute.type - The type of the column.
<T> T get(String columnName,
Class<? extends T> type,
T defaultValue)
T - The generic type of the specified column.columnName - The name identifying the attribute.type - The type of the column.defaultValue - The value to return if the column has not previously been set.
<T> List<T> getList(String columnName,
Class<T> listElementType)
T - the generic type of the elements of the list we wish to retrieve.columnName - The name identifying the attribute.listElementType - The type of the elements of the list that we wish to retrieve.
<T> List<T> getList(String columnName,
Class<T> listElementType,
List<T> defaultValue)
T - the generic type of the elements of the list we wish to retrieve.columnName - The name identifying the attribute.listElementType - The type of the elements of the list that we wish to retrieve.defaultValue - The List to return if the column has not previously been set.
<T> void set(String columnName,
T value)
getList() and update the resulting list.
T - The generic type of the value to assign the specified column in this row.columnName - The name identifying the attribute.value - The value to assign the specified column in this row
Please note that if "value" is a List it is your responsibility that all the
elements are of the type specified when the column was created with
CyTable.createListColumn(java.lang.String, java.lang.Class, boolean) !
IllegalArgumentException - If the column does not yet exist or if the
the value does not match the column type.boolean isSet(String columnName)
columnName - The name identifying the attribute.
Map<String,Object> getAllValues()
Object getRaw(String columnName)
columnName - The name identifying the attribute.
CyTable getTable()
CyTable that this row belongs to.
CyTable that this row belongs to.
|
Cytoscape 3.0.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||