1 11 package org.eclipse.update.core.model; 12 13 import java.net.MalformedURLException ; 14 import java.net.URL ; 15 16 33 public class InstallHandlerEntryModel extends ModelObject { 34 35 private String urlString; 36 private URL url; 37 private String library; 38 private String name; 39 40 45 public InstallHandlerEntryModel() { 46 super(); 47 } 48 49 55 public String getURLString() { 56 return urlString; 57 } 58 59 65 public URL getURL() { 66 return url; 67 } 68 69 75 public String getLibrary() { 76 return library; 77 } 78 79 85 public String getHandlerName() { 86 return name; 87 } 88 89 96 public void setURLString(String urlString) { 97 assertIsWriteable(); 98 this.urlString = urlString; 99 this.url = null; 100 } 101 102 109 public void setLibrary(String library) { 110 assertIsWriteable(); 111 this.library = library; 112 } 113 114 121 public void setHandlerName(String name) { 122 assertIsWriteable(); 123 this.name = name; 124 } 125 126 138 public void resolve(URL base,URL bundleURL) 139 throws MalformedURLException { 140 url = resolveURL(base,bundleURL, urlString); 142 } 143 } 144 | Popular Tags |