1 5 package xdoclet.modules.wsee; 6 7 import xdoclet.XDocletException; 8 import xdoclet.XmlSubTask; 9 import xdoclet.util.Translator; 10 11 22 public class WebServicesXmlSubTask extends XmlSubTask 23 { 24 27 private static String DEFAULT_TEMPLATE_FILE = 28 "resources/web-services_xml.xdt"; 29 private static String GENERATED_FILE_NAME = "webservices.xml"; 30 private static String XSD_SERVICES_11 = 31 "http://java.sun.com/xml/ns/j2ee/j2ee_web_services_1_1.xsd"; 32 33 36 protected String smallIcon = ""; 37 protected String largeIcon = ""; 38 protected String displayName = ""; 39 protected String description = ""; 40 protected String name; 41 42 45 public WebServicesXmlSubTask() 46 { 47 setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE)); 48 setDestinationFile(GENERATED_FILE_NAME); 49 } 50 51 56 public String getDescription() 57 { 58 return description; 59 } 60 61 64 public String getDisplayName() 65 { 66 return displayName; 67 } 68 69 72 public String getLargeIcon() 73 { 74 return largeIcon; 75 } 76 77 80 public String getName() 81 { 82 return name; 83 } 84 85 88 public String getSmallIcon() 89 { 90 return smallIcon; 91 } 92 93 98 public void setDescription(String description) 99 { 100 this.description = description; 101 } 102 103 108 public void setDisplayName(String string) 109 { 110 displayName = string; 111 } 112 113 118 public void setLargeIcon(String string) 119 { 120 largeIcon = string; 121 } 122 123 128 public void setName(String string) 129 { 130 name = string; 131 } 132 133 138 public void setSmallIcon(String string) 139 { 140 smallIcon = string; 141 } 142 143 148 public void execute() throws XDocletException 149 { 150 setSchema(XSD_SERVICES_11); 151 startProcess(); 152 } 153 154 159 protected void engineStarted() throws XDocletException 160 { 161 System.out.println( 162 Translator.getString( 163 XDocletModulesMessages.class, 164 XDocletModulesMessages.GENERATING_WEB_SERVICE_DESCRIPTOR, 165 new String []{getDestinationFile()})); 166 } 167 168 } 169 | Popular Tags |