1 11 12 package org.eclipse.ui.internal.cheatsheets.data; 13 14 import java.net.MalformedURLException ; 15 import java.net.URL ; 16 17 21 22 public class ParserInput { 23 private URL url; 24 private String xml; 25 private String pluginId; 26 27 public ParserInput() { 28 url = null; 29 xml = null; 30 } 31 32 public ParserInput(String xml, String basePath) { 33 this.xml = xml; 34 this.url = null; 35 if (basePath != null) { 36 try { 37 this.url = new URL (basePath); 38 } catch (MalformedURLException e) { 39 } 41 } 42 } 43 44 public ParserInput(URL url, String pluginId) { 45 this.url = url; 46 this.xml = null; 47 this.pluginId = pluginId; 48 } 49 50 public URL getUrl() { 51 return url; 52 } 53 54 public String getXml() { 55 return xml; 56 } 57 58 public String getPluginId() { 59 return pluginId; 60 } 61 62 } 63 | Popular Tags |