Interface ModelComparator


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

      • 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

        java.lang.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