1 23 24 package com.sun.enterprise.deployment.util.webservice; 25 26 import java.io.*; 27 import java.util.*; 28 29 49 50 public abstract class WsCompileInvoker { 51 52 56 protected HashMap wsCompileOptions = null; 57 58 62 public static final String CLASS_PATH = "-classpath"; 63 64 68 public static final String TARGET_DIR = "-d"; 69 70 73 public static final String MAP_FILE = "-mapping"; 74 75 83 public abstract void generateWSDL(SEIConfig config) throws WsCompileInvokerException, IOException; 84 85 92 93 public abstract void generateSEI(WSDLConfig config) throws WsCompileInvokerException, IOException; 94 95 102 public abstract void generateClientStubs(WSDLConfig config) throws WsCompileInvokerException, IOException; 103 104 115 public void addWsCompileOption(String option, String operand) { 116 if(wsCompileOptions == null) 117 wsCompileOptions = new HashMap(); 118 wsCompileOptions.put(option, operand); 119 } 120 121 127 public boolean removeWsCompileOption(String option) { 128 if( (wsCompileOptions != null) && wsCompileOptions.containsKey(option) ) { 129 wsCompileOptions.remove(option); 130 return true; 131 } 132 return false; 133 } 134 135 141 public void addWsCompileFeature(String feature) { 142 addWsCompileOption("-f:"+feature, null); 143 } 144 145 152 153 public boolean removeWsCompileFeature(String feature) { 154 return(removeWsCompileOption("-f:"+feature)); 155 } 156 157 160 public void clearWsCompileOptionsAndFeatures() { 161 if(wsCompileOptions != null) 162 wsCompileOptions.clear(); 163 } 164 165 171 172 public static WsCompileInvoker getWsCompileInvoker(OutputStream out) { 173 return(new WsCompileInvokerImpl(out)); 174 } 175 } 176 | Popular Tags |