Interface RuleTemplateParser
- All Superinterfaces:
ObjectParser<RuleTemplate>
RuleTemplateParser is the interface to implement by any file parser for RuleTemplate object.- Author:
- Ravi Nadahar - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptiongetParsedObjects(String modelName) Get theRuleTemplateobjects found when parsing the format.@Nullable StringParse the providedsyntaxstring without impacting the rule template registry.Methods inherited from interface org.openhab.core.converter.ObjectParser
finishParsingFormat, getParserFormat
-
Method Details
-
startParsingFormat
Parse the providedsyntaxstring without impacting the rule template registry.- Specified by:
startParsingFormatin interfaceObjectParser<RuleTemplate>- 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 theRuleTemplateobjects found when parsing the format.- Specified by:
getParsedObjectsin interfaceObjectParser<RuleTemplate>- Parameters:
modelName- the model name used when parsing.- Returns:
- The
CollectionofRuleTemplates.
-