@OpenApiAll
public class ProjectsComparator
extends java.lang.Object
Constructor and Description |
---|
ProjectsComparator() |
Modifier and Type | Method and Description |
---|---|
boolean |
compare(Project prj1,
Project prj2)
Check if two given MagicDraw projects are equals by comparing their model elements and diagrams.
|
DiagramComparator |
getDiagramComparator()
DiagramComparator used for comparing project diagrams during projects comparison.
|
ModelComparator |
getModelComparator()
ModelComparator implementation used for projects comparison.
|
void |
setDiagramComparator(DiagramComparator diagramComparator)
Sets DiagramComparator implementation for comparing project diagrams during projects comparison.
|
void |
setLogTextEnd(java.lang.String text)
Text to add before projects comparison log.
|
void |
setModelComparator(ModelComparator comparator)
Set implementation of ModelComparator to use for projects comparison.
|
public boolean compare(Project prj1, Project prj2)
prj1
- first MagicDraw project to compare.prj2
- second MagicDraw project to compare.public ModelComparator getModelComparator()
public void setModelComparator(ModelComparator comparator)
comparator
- implementation of ModelComparator to use for projects comparison.public DiagramComparator getDiagramComparator()
public void setDiagramComparator(DiagramComparator diagramComparator)
diagramComparator
- implementation of DiagramComparator use for project diagrams comparison.public void setLogTextEnd(@CheckForNull java.lang.String text)
text
- String text to add.