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 method 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
removeElementFromModel
(String modelName, YamlElement element) void
updateElementInModel
(String modelName, YamlElement element)
-
Method Details
-
addElementToModel
-
removeElementFromModel
-
updateElementInModel
-
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
-