1 18 package sync4j.syncclient.spap; 19 20 import java.util.Vector ; 21 22 import sync4j.syncclient.sps.common.DataStoreMetadata; 23 import sync4j.syncclient.common.StringTools; 24 25 31 public class Application { 32 33 40 public Application(String uri) { 41 this.uri = uri; 42 this.dataStoresMetadata = new Vector (); 43 } 44 45 48 private String uri; 49 50 public String getUri() { 51 return this.uri; 52 } 53 54 public void setUri(String uri) { 55 this.uri = uri; 56 } 57 58 61 private String displayName; 62 63 public String getDisplayName() { 64 return this.displayName; 65 } 66 67 public void setDisplayName(String displayName) { 68 this.displayName = displayName; 69 } 70 71 74 private String creatorId; 75 76 public String getCreatorId() { 77 return this.creatorId; 78 } 79 80 public void setCreatorId(String creatorId) { 81 this.creatorId = creatorId; 82 } 83 84 87 private String dataStoreType; 88 89 public String getDataStoreType() { 90 return this.dataStoreType; 91 } 92 93 public void setDataStoreType(String dataStoreType) { 94 this.dataStoreType = dataStoreType; 95 } 96 97 100 private String description; 101 102 public String getDescription() { 103 return this.description; 104 } 105 106 public void setDescription(String description) { 107 this.description = description; 108 } 109 110 113 private String supportUrl; 114 115 public String getSupportUrl() { 116 return this.supportUrl; 117 } 118 119 public void setSupportUrl(String supportUrl) { 120 this.supportUrl = supportUrl; 121 } 122 123 126 private String supportEmail; 127 128 public String getSupportEmail() { 129 return this.supportEmail; 130 } 131 132 public void setSupportEmail(String supportEmail) { 133 this.supportEmail = supportEmail; 134 } 135 136 139 private boolean sync; 140 141 public boolean isSync() { 142 return this.sync; 143 } 144 145 public void setSync(boolean sync) { 146 this.sync = sync; 147 } 148 151 private String storeManagerPkg; 152 153 public String getStoreManagerPkg() { 154 return this.storeManagerPkg; 155 } 156 157 public void setStoreManagerPkg(String storeManagerPkg) { 158 this.storeManagerPkg = storeManagerPkg; 159 } 160 161 164 private Vector dataStoresMetadata; 165 166 public Vector getDataStoresMetadata() { 167 return this.dataStoresMetadata; 168 } 169 170 public void setDataStoresMetadata(Vector storeManagerPkg) { 171 this.dataStoresMetadata = dataStoresMetadata; 172 } 173 174 177 private String contentId; 178 179 public String getContentId() { 180 return this.contentId; 181 } 182 183 public void setContentId(String contentId) { 184 this.contentId = contentId; 185 } 186 187 190 private String author; 191 192 public String getAuthor() { 193 return this.author; 194 } 195 196 public void setAuthor(String author) { 197 this.author = author; 198 } 199 200 203 private String version; 204 205 public String getVersion() { 206 return this.version; 207 } 208 209 public void setVersion(String version) { 210 this.version = version; 211 } 212 213 216 private String assetId; 217 218 public String getAssetId() { 219 return this.assetId; 220 } 221 222 public void setAssetId(String assetId) { 223 this.assetId = assetId; 224 } 225 226 228 233 public String getFixedURI() { 234 return StringTools.replaceSpecial(uri); 235 } 236 237 243 public void addDataStoreMetadata(DataStoreMetadata md) { 244 dataStoresMetadata.addElement(md); 245 } 246 247 252 public String toString() { 253 return getDisplayName(); 254 } 255 256 } | Popular Tags |