Interface ThingParser
- All Superinterfaces:
ObjectParser<Thing>
ThingParser is the interface to implement by any Thing parser.- Author:
- Laurent Garnier - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptiongetParsedChannelLinks(String modelName) Get theItemChannelLinkobjects found when parsing the format.getParsedObjects(String modelName) Get theThingobjects found when parsing the format.@Nullable StringParse the providedsyntaxstring without impacting the thing registry.Methods inherited from interface org.openhab.core.converter.ObjectParser
finishParsingFormat, getParserFormat
-
Method Details
-
startParsingFormat
Parse the providedsyntaxstring without impacting the thing registry.- Specified by:
startParsingFormatin interfaceObjectParser<Thing>- Parameters:
syntax- the syntax in format.errors- theListto use to report errors.warnings- theListto be used to report warnings.- Returns:
- The model name used for parsing if the parsing succeeded without errors;
nullotherwise.
-
getParsedObjects
Get theThingobjects found when parsing the format.- Specified by:
getParsedObjectsin interfaceObjectParser<Thing>- Parameters:
modelName- the model name used when parsing.- Returns:
- The
CollectionofThings.
-
getParsedChannelLinks
Get theItemChannelLinkobjects found when parsing the format.- Parameters:
modelName- the model name used when parsing.- Returns:
- The
CollectionofItemChannelLinks.
-