Class CsvEntityProperty
- 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 Summary
Constructors Constructor Description CsvEntityProperty(String headerName, de.fraunhofer.iosb.ilt.frostserver.property.EntityProperty property)Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteData(CsvRowCollector collector, de.fraunhofer.iosb.ilt.frostserver.model.core.Entity source)Collect data for CSV data rows.voidwriteHeader(CsvRowCollector collector)Collect data for the CSV header row.
-
-
-
Constructor Detail
-
CsvEntityProperty
public CsvEntityProperty(String headerName, de.fraunhofer.iosb.ilt.frostserver.property.EntityProperty property)
Create a new instance.- Parameters:
headerName- The name of the property in the CSV file.property- The property.
-
-
Method Detail
-
writeHeader
public void writeHeader(CsvRowCollector collector)
Description copied from interface:CsvEntityEntryCollect data for the CSV header row.- Specified by:
writeHeaderin interfaceCsvEntityEntry- Parameters:
collector- The collector to collect the data in.
-
writeData
public void writeData(CsvRowCollector collector, de.fraunhofer.iosb.ilt.frostserver.model.core.Entity source)
Description copied from interface:CsvEntityEntryCollect data for CSV data rows.- Specified by:
writeDatain interfaceCsvEntityEntry- Parameters:
collector- The collector to collect the data in.source- The source entity to collect the data from.
-
-