]> git.argeo.org Git - gpl/argeo-slc.git/blob - legacy/org.argeo.slc.support/src/org/argeo/slc/diff/DiffIssueKey.java
Adapt to changes in Argeo Commons
[gpl/argeo-slc.git] / legacy / org.argeo.slc.support / src / org / argeo / slc / diff / DiffIssueKey.java
1 package org.argeo.slc.diff;
2
3 /** Intermediate class that can hold the key to be displayed. */
4 public abstract class DiffIssueKey extends DiffIssue {
5 /** The position of this issue. */
6 protected DiffKey key;
7
8 /** Constructor without key */
9 public DiffIssueKey(DiffPosition position) {
10 super(position);
11 }
12
13 /** Constructor with key */
14 public DiffIssueKey(DiffPosition position, DiffKey key) {
15 super(position);
16 this.key = key;
17 }
18
19 public Object getKey() {
20 return key;
21 }
22
23 @Override
24 public String toString() {
25 if (key != null) {
26 return key.toString();
27 } else {
28 return "";
29 }
30 }
31
32 // Hibernate
33 @SuppressWarnings("unused")
34 private void setKey(DiffKey key) {
35 this.key = key;
36 }
37 }