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 Details

    • addElementToModel

      void addElementToModel(String modelName, YamlElement element)
    • removeElementFromModel

      void removeElementFromModel(String modelName, YamlElement element)
    • updateElementInModel

      void updateElementInModel(String modelName, YamlElement element)
    • refreshModelElements

      void refreshModelElements(String modelName, String elementName)
      Triggers the refresh of a certain type of elements in a given model.
      Parameters:
      modelName - the model name
      elementName - the type of elements to refresh
    • generateSyntaxFromElements

      void generateSyntaxFromElements(OutputStream out, List<YamlElement> elements)
      Generate the YAML syntax from a provided list of elements.
      Parameters:
      out - the output stream to write the generated syntax to
      elements - the list of elements to includ