1 18 19 package sync4j.exchange.items.common.model; 20 21 import java.util.Date ; 22 23 28 public class Item { 29 30 32 34 private String id = null ; 35 private String href = null ; 36 37 private Date creationDate = null ; 38 private Date lastModified = null ; 39 40 42 46 public Item () { 47 48 } 49 50 55 public Item (String id) { 56 57 this.id = id ; 58 this.href = null ; 59 this.creationDate = null ; 60 this.lastModified = null ; 61 62 } 63 64 71 public Item (String id, 72 Date lastModified) { 73 74 this.id = id ; 75 this.href = null ; 76 this.creationDate = null ; 77 this.lastModified = lastModified ; 78 79 } 80 81 89 public Item (String id , 90 String href , 91 String lastUpdate) { 92 93 this.id = id ; 94 this.href = null ; 95 this.lastModified = null ; 96 97 } 98 99 107 public Item (String id , 108 String href , 109 Date creationDate , 110 Date lastModified) { 111 112 this.id = id ; 113 this.href = href ; 114 this.creationDate = creationDate ; 115 this.lastModified = lastModified ; 116 117 } 118 119 121 public String getId() { 122 return this.id; 123 } 124 125 public String getHref() { 126 return this.href; 127 } 128 129 public Date getCreationDate() { 130 return this.creationDate; 131 } 132 133 public Date getLastModified() { 134 return this.lastModified; 135 } 136 137 public void setId(String id) { 138 this.id = id; 139 } 140 141 public void setHref(String href) { 142 this.href = href; 143 } 144 145 public void setCreationDate(Date creationDate) { 146 this.creationDate = creationDate; 147 } 148 149 public void setLastModified(Date lastModified) { 150 this.lastModified = lastModified; 151 } 152 153 } | Popular Tags |