1
14
15
16 package gate.event;
17
18 import junit.framework.Assert;
19
20 public class ObjectModificationEvent extends GateEvent {
21
22 public static final int OBJECT_CREATED = 1000;
23 public static final int OBJECT_MODIFIED = 1001;
24 public static final int OBJECT_DELETED = 1002;
25
26 private static int subtype;
27
28 public ObjectModificationEvent(Object source, int type, int subtype) {
29
30 super(source,type);
31
32 Assert.assertTrue(type == OBJECT_CREATED ||
33 type == OBJECT_DELETED ||
34 type == OBJECT_MODIFIED);
35
36 ObjectModificationEvent.subtype = subtype;
37 }
38
39 public int getSubType() {
40 return ObjectModificationEvent.subtype;
41 }
42 }