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.

    Methods inherited from interface com.onenetwork.platform.integ.csv.CsvTransformer

    transform
  • Method Details

    • transform

      void transform​(Model model, CsvRow row, CsvTransformContext context) throws CsvTransformException
      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 transformed
      row - default CSV representation of the model - can be further modified by the transform
      context - additional context information relevant to the current transform
      Throws:
      CsvTransformException - thrown to abort the transform