1 18 19 20 package sync4j.framework.core; 21 22 29 public final class Delete 30 extends ModificationCommand 31 implements java.io.Serializable { 32 33 35 public static final String COMMAND_NAME = "Delete"; 36 37 private Boolean archive; 39 private Boolean sftDel; 40 41 43 protected Delete() {} 44 45 59 public Delete(final CmdID cmdID, 60 final boolean noResp, 61 final boolean archive, 62 final boolean sftDel, 63 final Cred cred, 64 final Meta meta, 65 final Item[] items) { 66 super(cmdID, meta, items); 67 68 setCred(cred); 69 this.noResp = (noResp) ? new Boolean (noResp) : null; 70 this.archive = (archive) ? new Boolean (archive) : null; 71 this.sftDel = (sftDel) ? new Boolean (sftDel) : null; 72 } 73 74 76 81 public String getName() { 82 return Delete.COMMAND_NAME; 83 } 84 85 90 public boolean isArchive() { 91 return (archive != null); 92 } 93 94 99 public Boolean getArchive() { 100 if (!archive.booleanValue()) { 101 return null; 102 } 103 return archive; 104 } 105 106 111 public void setArchive(Boolean archive) { 112 this.archive = (archive.booleanValue()) ? archive : null; 113 } 114 115 121 public boolean isSftDel() { 122 return (sftDel != null); 123 } 124 125 public Boolean getSftDel() { 126 if (!sftDel.booleanValue()) { 127 return null; 128 } 129 return sftDel; 130 } 131 132 133 public void setSftDel(Boolean sftDel) { 134 this.sftDel = (sftDel.booleanValue()) ? sftDel : null; 135 } 136 } 137 | Popular Tags |