Package com.veeva.vault.sdk.api.csv
Interface RowBuilder
public interface RowBuilder
Builds CSV
Row
s.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns the row.Sets a value on the row at the column specified by its index.setValueByName
(String columnName, Object value) Sets a value on the row at the column specified by its name.
-
Method Details
-
setValue
Sets a value on the row at the column specified by its index.- Parameters:
index
- the index at which to set the value. Cannot be negative.value
- the value to add; the instance must be a type defined byCsvValueType
- Returns:
- the current builder
-
setValueByName
Sets a value on the row at the column specified by its name.- Parameters:
columnName
- the name of the column in which to set the value. Cannot be null or empty.value
- the value to add; the instance must be a type defined byCsvValueType
- Returns:
- the current builder
-
build
Row build()Builds and returns the row.You may continue to use the builder after this is called, but any previously added values are cleared out.
- Returns:
- the built
Row
-