]>
git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.core/src/main/java/org/argeo/slc/diff/DiffMissing.java
da4476660f02b4ef41d38c802941528e04b4be8f
1 package org
.argeo
.slc
.diff
;
4 * A value missing in one of the file. If its position is related to expected,
5 * this means it is a left over in the reached, if its position is related to
6 * the reached it means that it is missing from the reached. If the value is
7 * null it means that the entire line is missing.
9 public class DiffMissing
extends DiffIssue
{
10 private final DiffKey key
;
12 public DiffMissing(DiffPosition position
, DiffKey key
) {
17 public Object
getKey() {
22 public String
toString() {
23 if (position
.relatedFile
== RelatedFile
.EXPECTED
) {
24 return position
+ ": left over " + key
;
25 } else if (position
.relatedFile
== RelatedFile
.REACHED
) {
26 return position
+ ": missing " + key
;
28 return super.toString();