*/
private Map fillOptionMap() {
Map optionMap = new HashMap();
optionMap.put(CommandLineOptionConstants.WSDL_LOCATION_URI_OPTION,
new CommandLineOption(
CommandLineOptionConstants.WSDL_LOCATION_URI_OPTION,
getStringArray(page1.getFileName())));
if (page2.isAsyncOnlyOn()) {
optionMap
.put(
CommandLineOptionConstants.CODEGEN_ASYNC_ONLY_OPTION,
new CommandLineOption(
CommandLineOptionConstants.CODEGEN_ASYNC_ONLY_OPTION,
new String[0]));
}
if (page2.isSyncOnlyOn()) {
optionMap
.put(
CommandLineOptionConstants.CODEGEN_SYNC_ONLY_OPTION,
new CommandLineOption(
CommandLineOptionConstants.CODEGEN_SYNC_ONLY_OPTION,
new String[0]));
}
optionMap.put(CommandLineOptionConstants.PACKAGE_OPTION,
new CommandLineOption(
CommandLineOptionConstants.PACKAGE_OPTION,
getStringArray(page2.getPackageName())));
optionMap.put(CommandLineOptionConstants.STUB_LANGUAGE_OPTION,
new CommandLineOption(
CommandLineOptionConstants.STUB_LANGUAGE_OPTION,
getStringArray(mapLanguagesWithCombo(page2
.getSelectedLanguage()))));
optionMap.put(CommandLineOptionConstants.OUTPUT_LOCATION_OPTION,
new CommandLineOption(
CommandLineOptionConstants.OUTPUT_LOCATION_OPTION,
getStringArray(page3.getOutputLocation())));
if (page2.isServerside()) {
optionMap.put(CommandLineOptionConstants.SERVER_SIDE_CODE_OPTION,
new CommandLineOption(
CommandLineOptionConstants.SERVER_SIDE_CODE_OPTION,
new String[0]));
if (page2.isServerXML()) {
optionMap
.put(
CommandLineOptionConstants.GENERATE_SERVICE_DESCRIPTION_OPTION,
new CommandLineOption(
CommandLineOptionConstants.GENERATE_SERVICE_DESCRIPTION_OPTION,
new String[0]));
}
}
if (page2.isGenerateTestCase()){
optionMap
.put(
CommandLineOptionConstants.GENERATE_TEST_CASE_OPTION,
new CommandLineOption(
CommandLineOptionConstants.GENERATE_TEST_CASE_OPTION,
new String[0]));
}
//System.out.println(page3.getOutputLocation());
return optionMap;