1 18 package sync4j.framework.engine; 19 20 import sync4j.framework.engine.SyncItem; 21 import sync4j.framework.engine.SyncOperationImpl; 22 23 32 public class SyncConflict extends SyncOperationImpl { 33 34 36 public final static String STATE_DELETED_DELETED = "DD"; 37 public final static String STATE_DELETED_UPDATED = "DU"; 38 public final static String STATE_DELETED_NEW = "DN"; 39 public final static String STATE_DELETED_NONE = "DX"; 40 public final static String STATE_DELETED_CONFLICT = "DC"; 41 public final static String STATE_UPDATED_DELETED = "UD"; 42 public final static String STATE_UPDATED_UPDATED = "UU"; 43 public final static String STATE_UPDATED_NEW = "UN"; 44 public final static String STATE_UPDATED_NONE = "UX"; 45 public final static String STATE_UPDATED_CONFLICT = "UC"; 46 public final static String STATE_NEW_DELETED = "ND"; 47 public final static String STATE_NEW_UPDATED = "NU"; 48 public final static String STATE_NEW_NEW = "NN"; 49 public final static String STATE_NEW_NONE = "NX"; 50 public final static String STATE_NEW_CONFLICT = "NC"; 51 public final static String STATE_NONE_DELETED = "XD"; 52 public final static String STATE_NONE_UPDATED = "XU"; 53 public final static String STATE_NONE_NEW = "XN"; 54 public final static String STATE_NONE_CONFLICT = "XC"; 55 public final static String STATE_CONFLICT_DELETED = "CD"; 56 public final static String STATE_CONFLICT_UPDATED = "CU"; 57 public final static String STATE_CONFLICT_NEW = "CN"; 58 public final static String STATE_CONFLICT_NONE = "CX"; 59 public final static String STATE_CONFLICT_CONFLICT = "CC"; 60 61 62 64 67 private String type; 68 public String getType() { 69 return this.type; 70 } 71 72 74 public SyncConflict() { 75 } 76 77 public SyncConflict(SyncItem SyncItemA, SyncItem SyncItemB, String type) { 78 super(SyncItemA, SyncItemB, CONFLICT); 79 80 this.type = type; 81 } 82 } 83 | Popular Tags |