org.apache.axis2.wsdl.codegen
Class CodeGenConfiguration

java.lang.Object
  extended by org.apache.axis2.wsdl.codegen.CodeGenConfiguration
All Implemented Interfaces:
CommandLineOptionConstants

public class CodeGenConfiguration
extends Object
implements CommandLineOptionConstants


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.axis2.util.CommandLineOptionConstants
CommandLineOptionConstants.ExtensionArguments, CommandLineOptionConstants.WSDL2JavaConstants
 
Field Summary
 
Fields inherited from interface org.apache.axis2.util.CommandLineOptionConstants
SOLE_INPUT
 
Constructor Summary
CodeGenConfiguration(Map<String,CommandLineOption> optionMap)
          Constructor for the configuration.
 
Method Summary
 void addAxisService(AxisService axisService)
           
 void addOutputFileName(String fileName)
           
 AxisService getAxisService()
           
 List<AxisService> getAxisServices()
           
 String getBaseURI()
           
 Map<Object,Object> getConfigurationProperties()
           
 String getDatabindingType()
           
 String getExceptionBaseClassName()
           
 String getExcludeProperties()
           
 List<String> getOutputFileNamesList()
           
 String getOutputLanguage()
           
 File getOutputLocation()
           
 String getPackageName()
           
 Map getPolicyMap()
          Gets the policy map.
 String getPortName()
           
 Map<Object,Object> getProperties()
          Gets all property objects.
 Object getProperty(Object key)
          Gets the property from the configuration.
 String getRepositoryPath()
           
 String getResourceLocation()
           
 List<org.apache.ws.commons.schema.XmlSchema> getSchemaListForAllServices()
           
 String getServiceName()
           
 String getSkeltonClassName()
           
 String getSkeltonInterfaceName()
           
 String getSourceLocation()
           
 String getTargetNamespace()
           
 TypeMapper getTypeMapper()
           
 File getTypeMappingFile()
           
 Map<String,String> getUri2PackageNameMap()
           
 javax.wsdl.Definition getWsdlDefinition()
           
 String getWSDLVersion()
           
 String getXsdConfigFile()
          Deprecated.  
 boolean isAdvancedCodeGenEnabled()
           
 boolean isAllPorts()
           
 boolean isAsyncOn()
           
 boolean isBackwordCompatibilityMode()
           
 boolean isFlattenFiles()
           
 boolean isGenerateAll()
           
 boolean isGenerateDeployementDescriptor()
           
 boolean isOverride()
           
 boolean isOverrideAbsoluteAddress()
           
 boolean isPackClasses()
          Gets the wrap classes flag.
 boolean isParametersWrapped()
           
 boolean isServerSide()
           
 boolean isServerSideInterface()
           
 boolean isSetoutputSourceLocation()
           
 boolean isSkipBuildXML()
           
 boolean isSkipMessageReceiver()
           
 boolean isSkipWriteWSDLs()
           
 boolean isSuppressPrefixesMode()
           
 boolean isSyncOn()
           
 boolean isUseOperationName()
           
 boolean isWriteTestCase()
           
 void putProperty(Object key, Object value)
          Puts a property into the configuration.
 void setAdvancedCodeGenEnabled(boolean advancedCodeGenEnabled)
           
 void setAllPorts(boolean allPorts)
           
 void setAsyncOn(boolean asyncOn)
           
 void setAxisService(AxisService axisService)
           
 void setAxisServices(List<AxisService> axisServices)
           
 void setBackwordCompatibilityMode(boolean backwordCompatibilityMode)
           
 void setBaseURI(String baseURI)
           
 void setConfigurationProperties(Map<Object,Object> configurationProperties)
           
 void setDatabindingType(String databindingType)
           
 void setExceptionBaseClassName(String exceptionBaseClassName)
           
 void setExcludeProperties(String excludeProperties)
           
 void setFlattenFiles(boolean flattenFiles)
           
 void setGenerateAll(boolean generateAll)
           
 void setGenerateDeployementDescriptor(boolean generateDeployementDescriptor)
           
 void setOutputFileNamesList(List<String> outputXmlFileNamesList)
           
 void setOutputLanguage(String outputLanguage)
           
 void setOutputLocation(File outputLocation)
           
 void setoutputSourceLocation(boolean setoutputsourcelocation)
           
 void setOverride(boolean override)
           
 void setOverrideAbsoluteAddress(boolean overrideAbsoluteAddress)
           
 void setPackageName(String packageName)
           
 void setPackClasses(boolean packClasses)
          Sets the wrap classes flag.
 void setParametersWrapped(boolean parametersWrapped)
           
 void setPolicyMap(Map policyMap)
          Sets the policy map.
 void setPortName(String portName)
           
 void setRepositoryPath(String repositoryPath)
           
 void setResourceLocation(String resourceLocation)
           
 void setServerSide(boolean serverSide)
           
 void setServerSideInterface(boolean serverSideInterface)
           
 void setServiceName(String serviceName)
           
 void setSkeltonClassName(String skeltonClassName)
           
 void setSkeltonInterfaceName(String skeltonInterfaceName)
           
 void setSkipBuildXML(boolean skipBuildXML)
           
 void setSkipMessageReceiver(boolean skipMessageReceiver)
           
 void setSkipWriteWSDLs(boolean writeWriteWSDLs)
           
 void setSourceLocation(String sourceLocation)
           
 void setSuppressPrefixesMode(boolean suppressPrefixesMode)
           
 void setSyncOn(boolean syncOn)
           
 void setTypeMapper(TypeMapper typeMapper)
           
 void setTypeMappingFile(File typeMappingFile)
           
 void setUri2PackageNameMap(Map<String,String> uri2PackageNameMap)
           
 void setUseOperationName(boolean useOperationName)
           
 void setWriteTestCase(boolean writeTestCase)
           
 void setWsdlDefinition(javax.wsdl.Definition wsdlDefinition)
           
 void setWSDLVersion(String WSDLVersion)
           
 void setXsdConfigFile(String xsdConfigFile)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeGenConfiguration

public CodeGenConfiguration(Map<String,CommandLineOption> optionMap)
Constructor for the configuration. It populates the values using the options map.

Parameters:
optionMap -
Method Detail

getWSDLVersion

public String getWSDLVersion()

setWSDLVersion

public void setWSDLVersion(String WSDLVersion)

getTypeMappingFile

public File getTypeMappingFile()

setTypeMappingFile

public void setTypeMappingFile(File typeMappingFile)

getUri2PackageNameMap

public Map<String,String> getUri2PackageNameMap()

setUri2PackageNameMap

public void setUri2PackageNameMap(Map<String,String> uri2PackageNameMap)

getXsdConfigFile

public String getXsdConfigFile()
Deprecated. 

Returns the xsdconfig file to use for XMLBeans data binding.

Returns:
Full path and name of XMLBeans xsdconfig file to use

setXsdConfigFile

public void setXsdConfigFile(String xsdConfigFile)
Deprecated. 

Sets the xsdconfig file to use for XMLBeans data binding.

Parameters:
xsdConfigFile - Full path and name of XMLBeans xsdconfig file to use

isFlattenFiles

public boolean isFlattenFiles()

setFlattenFiles

public void setFlattenFiles(boolean flattenFiles)

getResourceLocation

public String getResourceLocation()

setResourceLocation

public void setResourceLocation(String resourceLocation)

getSourceLocation

public String getSourceLocation()

setSourceLocation

public void setSourceLocation(String sourceLocation)

isParametersWrapped

public boolean isParametersWrapped()

setParametersWrapped

public void setParametersWrapped(boolean parametersWrapped)

getBaseURI

public String getBaseURI()

setBaseURI

public void setBaseURI(String baseURI)

getConfigurationProperties

public Map<Object,Object> getConfigurationProperties()

setConfigurationProperties

public void setConfigurationProperties(Map<Object,Object> configurationProperties)

setOutputLanguage

public void setOutputLanguage(String outputLanguage)

setAdvancedCodeGenEnabled

public void setAdvancedCodeGenEnabled(boolean advancedCodeGenEnabled)

setAsyncOn

public void setAsyncOn(boolean asyncOn)

setSyncOn

public void setSyncOn(boolean syncOn)

setServerSide

public void setServerSide(boolean serverSide)

setGenerateDeployementDescriptor

public void setGenerateDeployementDescriptor(boolean generateDeployementDescriptor)

setWriteTestCase

public void setWriteTestCase(boolean writeTestCase)

setOutputLocation

public void setOutputLocation(File outputLocation)

isServerSideInterface

public boolean isServerSideInterface()

setServerSideInterface

public void setServerSideInterface(boolean serverSideInterface)

isSetoutputSourceLocation

public boolean isSetoutputSourceLocation()

getPortName

public String getPortName()

setPortName

public void setPortName(String portName)

getServiceName

public String getServiceName()

setServiceName

public void setServiceName(String serviceName)

isGenerateAll

public boolean isGenerateAll()

setGenerateAll

public void setGenerateAll(boolean generateAll)

isPackClasses

public boolean isPackClasses()
Gets the wrap classes flag.

Returns:
Returns true if it is a wrap class, else returns false.

setPackClasses

public void setPackClasses(boolean packClasses)
Sets the wrap classes flag.

Parameters:
packClasses -

getPolicyMap

public Map getPolicyMap()
Gets the policy map.

Returns:
Returns Map.

setPolicyMap

public void setPolicyMap(Map policyMap)
Sets the policy map.

Parameters:
policyMap -

putProperty

public void putProperty(Object key,
                        Object value)
Puts a property into the configuration.

Parameters:
key -
value -

getProperty

public Object getProperty(Object key)
Gets the property from the configuration.

Parameters:
key -
Returns:
Returns the property as Object.

getProperties

public Map<Object,Object> getProperties()
Gets all property objects.

Returns:
Returns Map of all properties.

getTypeMapper

public TypeMapper getTypeMapper()
Returns:
Returns TypeMapper.

setTypeMapper

public void setTypeMapper(TypeMapper typeMapper)
Parameters:
typeMapper -

getDatabindingType

public String getDatabindingType()
Returns:
Returns String.

setDatabindingType

public void setDatabindingType(String databindingType)
Parameters:
databindingType -

getOutputLocation

public File getOutputLocation()
Returns:
Returns the outputLocation.

getOutputLanguage

public String getOutputLanguage()

isAdvancedCodeGenEnabled

public boolean isAdvancedCodeGenEnabled()

getPackageName

public String getPackageName()
Returns:
Returns the packageName.

setPackageName

public void setPackageName(String packageName)
Parameters:
packageName - The packageName to set.

isAsyncOn

public boolean isAsyncOn()

isSyncOn

public boolean isSyncOn()

isServerSide

public boolean isServerSide()

isGenerateDeployementDescriptor

public boolean isGenerateDeployementDescriptor()

isSkipBuildXML

public boolean isSkipBuildXML()

setSkipBuildXML

public void setSkipBuildXML(boolean skipBuildXML)

isWriteTestCase

public boolean isWriteTestCase()

isSkipWriteWSDLs

public boolean isSkipWriteWSDLs()

setSkipWriteWSDLs

public void setSkipWriteWSDLs(boolean writeWriteWSDLs)

isSkipMessageReceiver

public boolean isSkipMessageReceiver()

setSkipMessageReceiver

public void setSkipMessageReceiver(boolean skipMessageReceiver)

setRepositoryPath

public void setRepositoryPath(String repositoryPath)

getRepositoryPath

public String getRepositoryPath()

getAxisServices

public List<AxisService> getAxisServices()

setAxisServices

public void setAxisServices(List<AxisService> axisServices)

addAxisService

public void addAxisService(AxisService axisService)

getAxisService

public AxisService getAxisService()

setAxisService

public void setAxisService(AxisService axisService)

isBackwordCompatibilityMode

public boolean isBackwordCompatibilityMode()

setBackwordCompatibilityMode

public void setBackwordCompatibilityMode(boolean backwordCompatibilityMode)

isSuppressPrefixesMode

public boolean isSuppressPrefixesMode()

setSuppressPrefixesMode

public void setSuppressPrefixesMode(boolean suppressPrefixesMode)

getTargetNamespace

public String getTargetNamespace()

getSchemaListForAllServices

public List<org.apache.ws.commons.schema.XmlSchema> getSchemaListForAllServices()

getWsdlDefinition

public javax.wsdl.Definition getWsdlDefinition()

setWsdlDefinition

public void setWsdlDefinition(javax.wsdl.Definition wsdlDefinition)

isAllPorts

public boolean isAllPorts()

setAllPorts

public void setAllPorts(boolean allPorts)

isOverride

public boolean isOverride()

setOverride

public void setOverride(boolean override)

getOutputFileNamesList

public List<String> getOutputFileNamesList()

setOutputFileNamesList

public void setOutputFileNamesList(List<String> outputXmlFileNamesList)

addOutputFileName

public void addOutputFileName(String fileName)

setoutputSourceLocation

public void setoutputSourceLocation(boolean setoutputsourcelocation)

getExcludeProperties

public String getExcludeProperties()

setExcludeProperties

public void setExcludeProperties(String excludeProperties)

getSkeltonInterfaceName

public String getSkeltonInterfaceName()

setSkeltonInterfaceName

public void setSkeltonInterfaceName(String skeltonInterfaceName)

getSkeltonClassName

public String getSkeltonClassName()

setSkeltonClassName

public void setSkeltonClassName(String skeltonClassName)

isOverrideAbsoluteAddress

public boolean isOverrideAbsoluteAddress()

setOverrideAbsoluteAddress

public void setOverrideAbsoluteAddress(boolean overrideAbsoluteAddress)

getExceptionBaseClassName

public String getExceptionBaseClassName()

setExceptionBaseClassName

public void setExceptionBaseClassName(String exceptionBaseClassName)

isUseOperationName

public boolean isUseOperationName()

setUseOperationName

public void setUseOperationName(boolean useOperationName)


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.