Interface ModelCsvTransformer
- All Superinterfaces:
CsvTransformer
,Transformer
- All Known Implementing Classes:
ModelJsonCsvTransformer
public interface ModelCsvTransformer extends CsvTransformer
Interface to be implemented by clients who wish to transform a List of
models to row of Comma-Separated Values.
-
Method Summary
Modifier and Type Method Description void
transform(Model model, CsvRow row, CsvTransformContext context)
This method is used to transform a model to a csv row.
-
Method Details
-
transform
This method is used to transform a model to a csv row. This is invoked from the Model result handler, when converting each model to csv- Parameters:
model
- model being transformedrow
- default CSV representation of the model - can be further modified by the transformcontext
- additional context information relevant to the current transform- Throws:
CsvTransformException
- thrown to abort the transform
-