--- /dev/null
+/*\r
+ * Copyright (C) 2007-2012 Argeo GmbH\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+package org.argeo.slc.diff;\r
+\r
+/**\r
+ * A value missing in one of the file. If its position is related to expected,\r
+ * this means it is a left over in the reached, if its position is related to\r
+ * the reached it means that it is missing from the reached. If the value is\r
+ * null it means that the entire line is missing.\r
+ */\r
+public class DiffMissing extends DiffIssueKey {\r
+\r
+ public DiffMissing(DiffPosition position, DiffKey key) {\r
+ super(position);\r
+ super.key = key;\r
+ }\r
+\r
+ @Override\r
+ public String toString() {\r
+ if (position.relatedFile == RelatedFile.EXPECTED) {\r
+ return position + ": left over " + super.toString();\r
+ } else if (position.relatedFile == RelatedFile.REACHED) {\r
+ return position + ": missing " + super.toString();\r
+ }\r
+ return super.toString();\r
+ }\r
+\r
+}\r