Source code: org/bdgp/apps/dagedit/datamodel/HistoryItem.java
1 package org.bdgp.apps.dagedit.datamodel;
2
3 import java.util.*;
4 import java.io.Serializable;
5
6 public abstract class HistoryItem implements Serializable {
7
8 public static final int STRUCTURAL_MERGE = 1;
9 public static final int STRUCTURAL_SPLIT = 2;
10 public static final int STRUCTURAL_COPY = 3;
11 public static final int STRUCTURAL_DELETE = 4;
12 public static final int STRUCTURAL_MOVE = 5;
13 public static final int STRUCTURAL_ADD = 6;
14 public static final int STRUCTURAL_COMMITANDOBSOLETE = 7;
15 public static final int MACRO = 8;
16 public static final int STRUCTURAL_REBUILD = 9;
17
18 public static final int TEXT_EDIT = 10;
19 public static final int TEXT_TEXT = 11;
20 public static final int TEXT_DBXREF = 12;
21 public static final int TEXT_SYNONYM = 13;
22 public static final int TEXT_CATEGORY = 14;
23
24 public static final int REL_CHANGE = 15;
25
26 protected int type = -1;
27 protected Term target;
28
29 public Term getTarget() {
30 return target;
31 }
32
33 public int getType() {
34 return type;
35 }
36
37 public abstract Vector getTouchedNodes();
38 }