Package org.eclipse.emf.compare.utils
Class EMFComparePrettyPrinter
java.lang.Object
org.eclipse.emf.compare.utils.EMFComparePrettyPrinter
public final class EMFComparePrettyPrinter
extends java.lang.Object
This class exposes methods to serialize a "human-readable" form of the comparison model onto a given
stream.
-
Method Summary
Modifier and Type Method Description static void
printComparison(Comparison comparison, java.io.PrintStream stream)
Prints the whole comparison on the given stream (might bestream
).static void
printDifferences(Comparison comparison, java.io.PrintStream stream)
Prints all differences detected for the givencomparison
on the givenstream
.static void
printMatch(Comparison comparison, java.io.PrintStream stream)
Prints all the Match elements contained by the givencomparison
.
-
Method Details
-
printComparison
Prints the whole comparison on the given stream (might bestream
).- Parameters:
comparison
- The comparison we are to print onstream
.stream
- ThePrintStream
on which we should print this comparison model.
-
printMatch
Prints all the Match elements contained by the givencomparison
. Each Match will be displayed on its own line.For example, if the left model has two packages "package1" and "package2", but the right has "package1" and "package3", what we will display here depends on the Match : if "left.package1" is matched with "right.package1", but "package2" and "package3" did not match, this will print
On the contrary, if "package2" and "package3" did match, we will display| package1 | package1 | | package2 | | | | package3 |
| package1 | package1 | | package2 | package3 |
- Parameters:
comparison
- The comparison which Matched elements we are to print onstream
.stream
- ThePrintStream
on which we should print the matched elements of this comparison.
-
printDifferences
Prints all differences detected for the givencomparison
on the givenstream
.- Parameters:
comparison
- The comparison which differences we are to print onstream
.stream
- ThePrintStream
on which we should print these differences.
-