Interface ThingFileParser
@NonNullByDefault
public interface ThingFileParser
ThingFileParser is the interface to implement by any file parser for Thing object.- Author:
- Laurent Garnier - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionvoidfinishParsingFileFormat(String modelName) Release the data from a previously started file format parsing.Returns the format of the syntax.getParsedChannelLinks(String modelName) Get theItemChannelLinkobjects found when parsing the file format.getParsedThings(String modelName) Get theThingobjects found when parsing the file format.@Nullable StringParse the provided syntax in file format without impacting the thing registry.
-
Method Details
-
getFileFormatParser
String getFileFormatParser()Returns the format of the syntax.- Returns:
- the syntax format
-
startParsingFileFormat
Parse the provided syntax in file format without impacting the thing registry.- Parameters:
syntax- the syntax in file formaterrors- the list to be used to fill the errorswarnings- the list to be used to fill the warnings- Returns:
- the model name used for parsing if the parsing succeeded without errors; null otherwise
-
getParsedThings
Get theThingobjects found when parsing the file format.- Parameters:
modelName- the model name used for parsing- Returns:
- the collection of things
-
getParsedChannelLinks
Get theItemChannelLinkobjects found when parsing the file format.- Parameters:
modelName- the model name used for parsing- Returns:
- the collection of items channel links
-
finishParsingFileFormat
Release the data from a previously started file format parsing.- Parameters:
modelName- the model name used for parsing
-