public class DataRow extends Object
Modifier and Type | Method and Description |
---|---|
String |
get(String columnCode)
Returns this row's content for the given column.
|
List<String> |
getAll()
Returns this row's entire content.
|
List<DataColumn> |
getColumns()
Returns all columns in this table.
|
DataRow |
set(String columnCode,
String value)
Sets this row's content for the given column.
|
DataRow |
setAll(int offset,
String... values)
Sets multiple columns of this row, starting from the given offset.
|
DataRow |
setAll(String... values)
Sets multiple columns of this row, starting from the first column.
|
com.fasterxml.jackson.databind.JsonNode |
toJson()
Returns this row in JSON representation.
|
public String get(String columnCode) throws UnknownColumnException
columnCode
- the column to readUnknownColumnException
- if the column doesn't existpublic List<String> getAll()
public DataRow set(String columnCode, String value) throws UnknownColumnException
columnCode
- the column to setvalue
- the value to enterUnknownColumnException
- if the column doesn't existpublic DataRow setAll(String... values) throws TooManyColumnsException
values
- the column values to setTooManyColumnsException
- if more values are given than columns are
availablepublic DataRow setAll(int offset, String... values) throws TooManyColumnsException
values
- the column values to setTooManyColumnsException
- if more values are given than columns are
available after the offsetpublic List<DataColumn> getColumns()
public com.fasterxml.jackson.databind.JsonNode toJson()
Copyright © 2014. All rights reserved.