org.apache.axis2.wsdl.codegen.CodeGenConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of axis2-codegen Show documentation
Show all versions of axis2-codegen Show documentation
Axis2 Code Generation module
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.axis2.wsdl.codegen;
import org.apache.axis2.description.AxisService;
import org.apache.axis2.util.CommandLineOption;
import org.apache.axis2.util.CommandLineOptionConstants;
import org.apache.axis2.util.URLProcessor;
import org.apache.axis2.wsdl.databinding.TypeMapper;
import org.apache.axis2.wsdl.util.ConfigPropertyFileLoader;
import org.apache.ws.commons.schema.XmlSchema;
import javax.wsdl.Definition;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
public class CodeGenConfiguration implements CommandLineOptionConstants {
/** Axis Services reference */
private List axisServices;
/** Axis service to use */
private AxisService axisService;
/** Base URI */
private String baseURI;
/** path to the repository - used for evaluating policy */
private String repositoryPath;
/** Mapping file including the qname to type map */
private File typeMappingFile;
/** keeps the WSDL version - default is 1.1 */
private String WSDLVersion = WSDL2JavaConstants.WSDL_VERSION_1;
public String getWSDLVersion() {
return WSDLVersion;
}
public void setWSDLVersion(String WSDLVersion) {
this.WSDLVersion = WSDLVersion;
}
public File getTypeMappingFile() {
return typeMappingFile;
}
public void setTypeMappingFile(File typeMappingFile) {
this.typeMappingFile = typeMappingFile;
}
/** A map to keep the custom namespace and package name mappings */
private Map uri2PackageNameMap;
public Map getUri2PackageNameMap() {
return uri2PackageNameMap;
}
public void setUri2PackageNameMap(Map uri2PackageNameMap) {
if (this.uri2PackageNameMap == null) {
this.uri2PackageNameMap = uri2PackageNameMap;
} else {
this.uri2PackageNameMap.putAll(uri2PackageNameMap);
}
}
/** Full path and name of XMLBeans xsdconfig file to use */
private String xsdConfigFile = null;
/**
* Returns the xsdconfig file to use for XMLBeans data binding.
*
* @return Full path and name of XMLBeans xsdconfig file to use
* @deprecated
*/
public String getXsdConfigFile() {
return xsdConfigFile;
}
/**
* Sets the xsdconfig file to use for XMLBeans data binding.
*
* @param xsdConfigFile Full path and name of XMLBeans xsdconfig file to use
* @deprecated
*/
public void setXsdConfigFile(String xsdConfigFile) {
this.xsdConfigFile = xsdConfigFile;
}
/** Says whether to flatten the files or put them in specific folders */
private boolean flattenFiles = false;
public boolean isFlattenFiles() {
return flattenFiles;
}
public void setFlattenFiles(boolean flattenFiles) {
this.flattenFiles = flattenFiles;
}
/** Folder name for the resource files */
private String resourceLocation = ConfigPropertyFileLoader.getResourceFolderName();
public String getResourceLocation() {
return resourceLocation;
}
public void setResourceLocation(String resourceLocation) {
this.resourceLocation = resourceLocation;
}
/** Folder name for the source files */
private String sourceLocation = ConfigPropertyFileLoader.getSrcFolderName();
public String getSourceLocation() {
return sourceLocation;
}
public void setSourceLocation(String sourceLocation) {
this.sourceLocation = sourceLocation;
}
/** Determines whether the parameters are wrapped or unwrapped true by default */
private boolean parametersWrapped = true;
public boolean isParametersWrapped() {
return parametersWrapped;
}
public void setParametersWrapped(boolean parametersWrapped) {
this.parametersWrapped = parametersWrapped;
}
public String getBaseURI() {
return baseURI;
}
public void setBaseURI(String baseURI) {
this.baseURI = baseURI;
}
public Map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy