Interface ModelComparator


@OpenApiAll public interface ModelComparator
Base interface for model comparing used by ProjectsComparator.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds filter for skipping unnecessary model elements during models comparison.
    boolean
    Check if models of two given MagicDraw projects are equals.
    Textual information about differences found in compared projects.
  • Method Details

    • compareModels

      boolean compareModels(Project p1, Project p2)
      Check if models of two given MagicDraw projects are equals.
      Parameters:
      p1 - first MagicDraw project
      p2 - second MagicDraw project
      Returns:
      true if models of compared projects are equals
    • getDiffInfo

      String getDiffInfo()
      Textual information about differences found in compared projects.
      Returns:
      String representing differences found in compared projects
    • addFilter

      void addFilter(ModelComparatorFilter filter)
      Adds filter for skipping unnecessary model elements during models comparison.
      Parameters:
      filter - model element filter to add