Interface ItemParser
- All Superinterfaces:
ObjectParser<Item>
ItemParser is the interface to implement by any file parser for Item object.- Author:
- Laurent Garnier - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptiongetParsedMetadata(String modelName) Get theMetadataobjects found when parsing the format.getParsedObjects(String modelName) Get theItemobjects found when parsing the format.getParsedStateFormatters(String modelName) Get the state formatters found when parsing the format.@Nullable StringParse the providedsyntaxstring without impacting the item and metadata registries.Methods inherited from interface org.openhab.core.converter.ObjectParser
finishParsingFormat, getParserFormat
-
Method Details
-
startParsingFormat
Parse the providedsyntaxstring without impacting the item and metadata registries.- Specified by:
startParsingFormatin interfaceObjectParser<Item>- 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 theItemobjects found when parsing the format.- Specified by:
getParsedObjectsin interfaceObjectParser<Item>- Parameters:
modelName- the model name used when parsing.- Returns:
- The
CollectionofItems.
-
getParsedMetadata
Get theMetadataobjects found when parsing the format.- Parameters:
modelName- the model name used when parsing.- Returns:
- The
CollectionofMetadata.
-
getParsedStateFormatters
Get the state formatters found when parsing the format.- Parameters:
modelName- the model name used when parsing.- Returns:
- the state formatters as a
Mapper item name.
-