Interface ThingFileGenerator
- All Known Implementing Classes:
AbstractThingFileGenerator
@NonNullByDefault
public interface ThingFileGenerator
ThingFileGenerator is the interface to implement by any file generator for Thing object.- Author:
- Laurent Garnier - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateFileFormat(String id, OutputStream out) Generate the file format for all data that were associated to the provided identifier.Returns the format of the file.voidsetThingsToBeGenerated(String id, List<Thing> things, boolean hideDefaultChannels, boolean hideDefaultParameters) Define the list of things to be generated and associate them to an identifier.
-
Method Details
-
getFileFormatGenerator
String getFileFormatGenerator()Returns the format of the file.- Returns:
- the file format
-
setThingsToBeGenerated
void setThingsToBeGenerated(String id, List<Thing> things, boolean hideDefaultChannels, boolean hideDefaultParameters) Define the list of things to be generated and associate them to an identifier.- Parameters:
id- the identifier of the file format generationthings- the thingshideDefaultChannels- true to hide the non extensible channels having a default configurationhideDefaultParameters- true to hide the configuration parameters having the default value
-
generateFileFormat
Generate the file format for all data that were associated to the provided identifier.- Parameters:
id- the identifier of the file format generationout- the output stream to write to
-