Interface UIComponentParser
- All Superinterfaces:
ObjectParser<UIComponent>
- All Known Subinterfaces:
RootUIComponentParser
UIComponentParser is the interface to implement by any format parser for UIComponent objects.- Author:
- Ravi Nadahar - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends UIComponent> getParsedObjects(String modelName) Get a copy of the collection ofUIComponentobjects that were found when parsing the format.@Nullable StringParse the providedsyntaxstring without impacting the model.Methods inherited from interface org.openhab.core.converter.ObjectParser
finishParsingFormat, getParserFormat
-
Method Details
-
startParsingFormat
Parse the providedsyntaxstring without impacting the model.- Specified by:
startParsingFormatin interfaceObjectParser<UIComponent>- 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 a copy of the collection ofUIComponentobjects that were found when parsing the format.- Specified by:
getParsedObjectsin interfaceObjectParser<UIComponent>- Parameters:
modelName- the model name used when parsing.- Returns:
- The
CollectionofUIComponents. - Implementation note:
- It's important that a copy of the
Collectionis returned, so that invokingObjectParser.finishParsingFormat(String)doesn't modify the returned result.
-