Package org.openhab.core.model.yaml
Interface YamlModelRepository
@NonNullByDefault
public interface YamlModelRepository
The
YamlModelRepository
defines methods to update elements in a YAML model.- Author:
- Jan N. Klug - Initial contribution, Laurent Garnier - Added methods refreshModelElements and generateSyntaxFromElements
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addElementToModel
(String modelName, YamlElement element) void
generateSyntaxFromElements
(OutputStream out, List<YamlElement> elements) Generate the YAML syntax from a provided list of elements.void
refreshModelElements
(String modelName, String elementName) Triggers the refresh of a certain type of elements in a given model.void
removeElementFromModel
(String modelName, YamlElement element) void
updateElementInModel
(String modelName, YamlElement element)
-
Method Details
-
addElementToModel
-
removeElementFromModel
-
updateElementInModel
-
refreshModelElements
Triggers the refresh of a certain type of elements in a given model.- Parameters:
modelName
- the model nameelementName
- the type of elements to refresh
-
generateSyntaxFromElements
Generate the YAML syntax from a provided list of elements.- Parameters:
out
- the output stream to write the generated syntax toelements
- the list of elements to includ
-