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 TypeMethodDescriptionvoid
finishParsingFileFormat
(String modelName) Release the data from a previously started file format parsing.Returns the format of the syntax.getParsedChannelLinks
(String modelName) Get theItemChannelLink
objects found when parsing the file format.getParsedThings
(String modelName) Get theThing
objects found when parsing the file format.@Nullable String
Parse 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 theThing
objects found when parsing the file format.- Parameters:
modelName
- the model name used for parsing- Returns:
- the collection of things
-
getParsedChannelLinks
Get theItemChannelLink
objects 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
-