]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.simple/src/main/java/org/argeo/slc/diff/DiffMissing.java
Introduce org.argeo.slc.support.simple
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.simple / src / main / java / org / argeo / slc / diff / DiffMissing.java
1 package org.argeo.slc.diff;
2
3 /**
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.
8 */
9 public class DiffMissing extends DiffIssueKey {
10
11 public DiffMissing(DiffPosition position, DiffKey key) {
12 super(position);
13 super.key = key;
14 }
15
16 @Override
17 public String toString() {
18 if (position.relatedFile == RelatedFile.EXPECTED) {
19 return position + ": left over " + super.toString();
20 } else if (position.relatedFile == RelatedFile.REACHED) {
21 return position + ": missing " + super.toString();
22 }
23 return super.toString();
24 }
25
26 }