1 19 20 package com.sslexplorer.agent.client.util; 21 22 import java.io.File ; 23 import java.util.Vector ; 24 25 26 31 public class DownloadableFile { 32 33 35 private String applicationName; 36 private boolean executable; 37 private boolean readOnly; 38 private Vector aliases; 39 private File target; 40 private String name; 41 private long checksum; 42 43 53 public DownloadableFile(String name, String applicationName, boolean executable, boolean readOnly, File target, long checksum) { 54 super(); 55 this.name = name; 56 this.applicationName = applicationName; 57 this.executable = executable; 58 this.readOnly = readOnly; 59 this.target = target; 60 this.checksum = checksum; 61 aliases = new Vector (); 62 } 63 64 public void addAlias(String alias) { 65 aliases.addElement(alias); 66 } 67 68 71 public void setApplicationName(String applicationName) { 72 this.applicationName = applicationName; 73 } 74 75 78 public void setExecutable(boolean executable) { 79 this.executable = executable; 80 } 81 82 85 public boolean isReadOnly() { 86 return readOnly; 87 } 88 89 92 public void setReadOnly(boolean readOnly) { 93 this.readOnly = readOnly; 94 } 95 96 99 public String getApplicationName() { 100 return applicationName; 101 } 102 103 106 public boolean isExecutable() { 107 return executable; 108 } 109 110 113 public Vector getAliases() { 114 return aliases; 115 } 116 117 120 public File getTarget() { 121 return target; 122 } 123 124 127 public void setTarget(File target) { 128 this.target = target; 129 } 130 131 134 public String getName() { 135 return name; 136 } 137 138 141 public void setName(String name) { 142 this.name = name; 143 } 144 145 148 public long getChecksum() { 149 return checksum; 150 } 151 152 155 public void setChecksum(long checksum) { 156 this.checksum = checksum; 157 } 158 159 160 } | Popular Tags |