java.lang.Object
de.fraunhofer.iosb.ilt.frostserver.plugin.format.csv.tools.CsvEntityProperty
All Implemented Interfaces:
CsvEntityEntry

public class CsvEntityProperty extends Object implements CsvEntityEntry
A class for gathering data from an Property of an Entity into a CSV file.
Author:
scf
  • Constructor Details

    • CsvEntityProperty

      public CsvEntityProperty(String headerName, EntityProperty property)
      Create a new instance.
      Parameters:
      headerName - The name of the property in the CSV file.
      property - The property.
  • Method Details

    • writeHeader

      public void writeHeader(CsvRowCollector collector)
      Description copied from interface: CsvEntityEntry
      Collect data for the CSV header row.
      Specified by:
      writeHeader in interface CsvEntityEntry
      Parameters:
      collector - The collector to collect the data in.
    • writeData

      public void writeData(CsvRowCollector collector, Entity source)
      Description copied from interface: CsvEntityEntry
      Collect data for CSV data rows.
      Specified by:
      writeData in interface CsvEntityEntry
      Parameters:
      collector - The collector to collect the data in.
      source - The source entity to collect the data from.