}
private void configureJava2WSDLBuilder(Map optionsMap, String className) throws Exception
{
//set the other parameters to the builder
Java2WSDLCommandLineOption option = loadOption(Java2WSDLConstants.SCHEMA_TARGET_NAMESPACE_OPTION,
Java2WSDLConstants.SCHEMA_TARGET_NAMESPACE_OPTION_LONG, optionsMap);
java2WsdlBuilder.setSchemaTargetNamespace(option == null ? null : option.getOptionValue());
option = loadOption(Java2WSDLConstants.SCHEMA_TARGET_NAMESPACE_PREFIX_OPTION,
Java2WSDLConstants.SCHEMA_TARGET_NAMESPACE_PREFIX_OPTION_LONG, optionsMap);
java2WsdlBuilder.setSchemaTargetNamespacePrefix(option == null ? null : option.getOptionValue());
option = loadOption(Java2WSDLConstants.TARGET_NAMESPACE_OPTION,
Java2WSDLConstants.TARGET_NAMESPACE_OPTION_LONG, optionsMap);
java2WsdlBuilder.setTargetNamespace(option == null ? null : option.getOptionValue());
option = loadOption(Java2WSDLConstants.TARGET_NAMESPACE_PREFIX_OPTION,
Java2WSDLConstants.TARGET_NAMESPACE_PREFIX_OPTION_LONG, optionsMap);
java2WsdlBuilder.setTargetNamespacePrefix(option == null ? null : option.getOptionValue());
option = loadOption(Java2WSDLConstants.SERVICE_NAME_OPTION,
Java2WSDLConstants.SERVICE_NAME_OPTION_LONG, optionsMap);
java2WsdlBuilder.setServiceName(option == null ? Java2WSDLUtils.getSimpleClassName(className) : option.getOptionValue());
option = loadOption(Java2WSDLConstants.STYLE_OPTION,
Java2WSDLConstants.STYLE_OPTION, optionsMap);
if (option != null) {
java2WsdlBuilder.setStyle(option.getOptionValue());
}
option = loadOption(Java2WSDLConstants.LOCATION_OPTION,
Java2WSDLConstants.LOCATION_OPTION, optionsMap);
if (option != null) {
java2WsdlBuilder.setLocationUri(option.getOptionValue());
}
option = loadOption(Java2WSDLConstants.USE_OPTION,
Java2WSDLConstants.USE_OPTION, optionsMap);
if (option != null) {
java2WsdlBuilder.setUse(option.getOptionValue());
}
option = loadOption(Java2WSDLConstants.ATTR_FORM_DEFAULT_OPTION,
Java2WSDLConstants.ATTR_FORM_DEFAULT_OPTION_LONG, optionsMap);
java2WsdlBuilder.setAttrFormDefault(option == null ? null : option.getOptionValue());
option = loadOption(Java2WSDLConstants.ELEMENT_FORM_DEFAULT_OPTION,
Java2WSDLConstants.ELEMENT_FORM_DEFAULT_OPTION_LONG, optionsMap);
java2WsdlBuilder.setElementFormDefault(option == null ? null : option.getOptionValue());
option = loadOption(Java2WSDLConstants.EXTRA_CLASSES_DEFAULT_OPTION,
Java2WSDLConstants.EXTRA_CLASSES_DEFAULT_OPTION_LONG, optionsMap);
java2WsdlBuilder.setExtraClasses(option == null ? new ArrayList() : option.getOptionValues());
option = loadOption(Java2WSDLConstants.NAMESPACE_GENERATOR_OPTION,
Java2WSDLConstants.NAMESPACE_GENERATOR_OPTION_LONG, optionsMap);
if ( option != null ) {
java2WsdlBuilder.setNsGenClassName(option.getOptionValue());
}
option = loadOption(Java2WSDLConstants.JAVA_PKG_2_NSMAP_OPTION,
Java2WSDLConstants.JAVA_PKG_2_NSMAP_OPTION_LONG, optionsMap);
java2WsdlBuilder.setPkg2nsMap(loadJavaPkg2NamespaceMap(option));