1 package net.sourceforge.jarbundler; 2 3 import java.util.ArrayList ; 4 import java.util.Arrays ; 5 import java.util.List ; 6 7 8 9 59 public class Service { 60 private static final List EMPTYLIST = new ArrayList (0); 61 62 63 64 private String portName = null; 65 66 67 74 private String message = null; 75 76 77 85 private String menuItem = null; 86 87 94 private String [] sendTypes = null; 95 96 97 104 private String [] returnTypes = null; 105 106 107 115 private String keyEquivalent = null; 116 117 118 125 private String userData = null; 126 127 128 137 private String timeout = null; 138 139 140 public void setPortName(String portName) { 141 this.portName = portName; 142 } 143 144 public String getPortName() { 145 return portName; 146 } 147 148 public void setMessage(String message) { 149 this.message = message; 150 } 151 152 public String getMessage() { 153 return message; 154 } 155 156 public void setMenuItem(String menuItem) { 157 this.menuItem = menuItem; 158 159 } 160 161 public String getMenuItem() { 162 return menuItem; 163 } 164 165 public void setSendTypes(String sendTypes) { 166 this.sendTypes = sendTypes.split("[\\s,]"); 167 } 168 169 public List getSendTypes() { 170 return (sendTypes == null) ? EMPTYLIST : Arrays.asList(sendTypes); 171 } 172 173 public void setReturnTypes(String returnTypes) { 174 this.returnTypes = returnTypes.split("[\\s,]"); 175 } 176 177 public List getReturnTypes() { 178 return (returnTypes == null) ? EMPTYLIST : Arrays.asList(returnTypes); 179 } 180 181 public void setKeyEquivalent(String keyEquivalent) { 182 this.keyEquivalent = keyEquivalent; 183 } 184 185 public String getKeyEquivalent() { 186 return keyEquivalent; 187 } 188 189 public void setUserData(String userData) { 190 this.userData = userData; 191 } 192 193 public String getUserData() { 194 return userData; 195 } 196 197 public void setTimeout(String timeout) { 198 this.timeout = timeout; 199 } 200 201 public String getTimeout() { 202 return timeout; 203 } 204 } 205 | Popular Tags |