Rows contains {@link AttributeValue}, one for each column. Rows are not stored in columns and nor in tables, they are stored in the object that possess the row, for instance
Nodes
or
Edges
.
But colums are fixed, stored in AttributeTable
. Rows always contains the values in the same order as columns are described in the table.
For instance, if an table contains a single column label, the column index is equal to 0 and the value can be retrieved in the following ways:
row.getValue(column);
row.getValue("label");
row.getValue(0);
Rows are build from a {@link AttributeRowFactory}, that can be get from the {@link AttributeModel}.
Nodes and edges
Nodes and edges elements are build from
Graph API, and already have a default row that can be found with {@link NodeData#getAttributes()} and{@link EdgeData#getAttributes()}. Please cast
Attributes
in
AttributesRow
to profit from the complete API.
@author Mathieu Bastian
@author Cezary Bartosiak
@see AttributeColumn
@see AttributeTable
@see AttributeValue