1 11 package org.eclipse.update.core.model; 12 13 import java.net.MalformedURLException ; 14 import java.net.URL ; 15 16 32 public class ArchiveReferenceModel extends ModelObject { 33 34 private String path; 35 private String urlString; 36 private URL url; 37 38 43 public ArchiveReferenceModel() { 44 super(); 45 } 46 47 53 public String getPath() { 54 return path; 55 } 56 57 63 public String getURLString() { 64 return urlString; 65 } 66 67 73 public URL getURL() { 74 return url; 75 } 76 77 84 public void setPath(String path) { 85 assertIsWriteable(); 86 this.path = path; 87 } 88 89 96 public void setURLString(String urlString) { 97 assertIsWriteable(); 98 this.urlString = urlString; 99 this.url = null; 100 } 101 102 114 public void resolve(URL base,URL bundleURL) 115 throws MalformedURLException { 116 url = resolveURL(base, bundleURL, urlString); 118 } 119 } 120 | Popular Tags |