Interface ModelChange

All Known Implementing Classes:
ModelChange.RemoveProperty, ModelChange.RenameModel, ModelChange.SetProperty, ModelChange.UpdateComment

@Evolving public interface ModelChange
A model change is a change to a model. It can be used to rename a model, update the comment of a model, set a property and value pair for a model, or remove a property from a model.
  • Method Details

    • rename

      static ModelChange rename(String newName)
      Create a ModelChange for renaming a model.
      Parameters:
      newName - The new model name.
      Returns:
      A ModelChange for the rename.
    • setProperty

      static ModelChange setProperty(String property, String value)
      Create a ModelChange for setting a property and value of a model.
      Parameters:
      property - The name of the property to be set.
      value - The value to be set for the property.
      Returns:
      A ModelChange for the property set.
    • removeProperty

      static ModelChange removeProperty(String property)
      Create a ModelChange for removing a property from a model.
      Parameters:
      property - The name of the property to be removed from the model.
      Returns:
      A ModelChange for the property removal.
    • updateComment

      static ModelChange updateComment(String newComment)
      Create a ModelChange for updating the comment of a model.
      Parameters:
      newComment - The new comment of the model.
      Returns:
      A ModelChange for the comment update.