Package org.apache.axis2.tools.bean
Class CodegenBean
- java.lang.Object
-
- org.apache.axis2.tools.bean.CodegenBean
-
public class CodegenBean extends Object
-
-
Constructor Summary
Constructors Constructor Description CodegenBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapfillOptionMap()Creates a list of parameters for the code generator based on the decisions made by the user on the OptionsPage (page2).voidgenerate()com.intellij.openapi.project.ProjectgetActiveProject()AxisServicegetAxisService(String wsdlURI)Reads the WSDL Object Model from the given location.StringgetBaseUri(String wsdlURI)StringgetDatabindingName()CollectiongetDefinitionNamespaceMap()StringgetLanguage()com.intellij.openapi.module.Module[]getModules()String[]getModuleSrc(String name)StringgetOutput()StringgetPackageName()StringgetPortName()ListgetPortNameList(QName serviceName)Returns a list of ports for a particular service the names are QNamesListgetServiceList()Returns a list of service names the names are QNamesStringgetServiceName()FilegetTemp()StringgetWSDLFileName()booleanisAsyncOnly()booleanisDefaultClient()booleanisGenerateAll()booleanisServerSide()booleanisServerSideInterface()booleanisServerXML()booleanisSyncOnly()booleanisTestcase()booleanisTestCase()StringpackageFromTargetNamespace()voidreadWSDL()voidsetAsyncOnly(boolean asyncOnly)voidsetDatabindingName(String databindingName)voidsetDefaultClient(boolean defaultClient)voidsetGenerateAll(boolean generateAll)voidsetLanguage(String language)voidsetNamespace2packageList(String namespace2packageList)voidsetOutput(String output)voidsetPackageName(String packageName)voidsetPortName(String portName)voidsetProject(com.intellij.openapi.project.Project project)voidsetServerSide(boolean serverSide)voidsetServerSideInterface(boolean serverSideInterface)voidsetServerXML(boolean serverXML)voidsetServiceName(String serviceName)voidsetSyncOnly(boolean syncOnly)voidsetTestcase(boolean testcase)voidsetTestCase(boolean testCase)voidsetWSDLFileName(String WSDLFileName)
-
-
-
Method Detail
-
setNamespace2packageList
public void setNamespace2packageList(String namespace2packageList)
-
isServerSideInterface
public boolean isServerSideInterface()
-
setServerSideInterface
public void setServerSideInterface(boolean serverSideInterface)
-
isDefaultClient
public boolean isDefaultClient()
-
setDefaultClient
public void setDefaultClient(boolean defaultClient)
-
isServerXML
public boolean isServerXML()
-
setServerXML
public void setServerXML(boolean serverXML)
-
isGenerateAll
public boolean isGenerateAll()
-
setGenerateAll
public void setGenerateAll(boolean generateAll)
-
isTestCase
public boolean isTestCase()
-
setTestCase
public void setTestCase(boolean testCase)
-
getServiceName
public String getServiceName()
-
setServiceName
public void setServiceName(String serviceName)
-
getPortName
public String getPortName()
-
setPortName
public void setPortName(String portName)
-
getDatabindingName
public String getDatabindingName()
-
setDatabindingName
public void setDatabindingName(String databindingName)
-
fillOptionMap
public Map fillOptionMap()
Creates a list of parameters for the code generator based on the decisions made by the user on the OptionsPage (page2). For each setting, there is a Command-Line option for the Axis2 code generator.- Returns:
- a Map with keys from CommandLineOptionConstants with the values entered by the user on the Options Page.
-
getAxisService
public AxisService getAxisService(String wsdlURI) throws Exception
Reads the WSDL Object Model from the given location.- Parameters:
wsdlURI- the filesystem location (full path) of the WSDL file to read in.- Returns:
- the WSDLDescription object containing the WSDL Object Model of the given WSDL file
- Throws:
IOException- on errors reading the WSDL fileException
-
getWSDLFileName
public String getWSDLFileName()
-
setWSDLFileName
public void setWSDLFileName(String WSDLFileName)
-
isSyncOnly
public boolean isSyncOnly()
-
setSyncOnly
public void setSyncOnly(boolean syncOnly)
-
isAsyncOnly
public boolean isAsyncOnly()
-
setAsyncOnly
public void setAsyncOnly(boolean asyncOnly)
-
getLanguage
public String getLanguage()
-
setLanguage
public void setLanguage(String language)
-
getPackageName
public String getPackageName()
-
setPackageName
public void setPackageName(String packageName)
-
getOutput
public String getOutput()
-
setOutput
public void setOutput(String output)
-
isServerSide
public boolean isServerSide()
-
setServerSide
public void setServerSide(boolean serverSide)
-
isTestcase
public boolean isTestcase()
-
setTestcase
public void setTestcase(boolean testcase)
-
readWSDL
public void readWSDL() throws javax.wsdl.WSDLException- Throws:
javax.wsdl.WSDLException
-
packageFromTargetNamespace
public String packageFromTargetNamespace()
-
getServiceList
public List getServiceList()
Returns a list of service names the names are QNames
-
getPortNameList
public List getPortNameList(QName serviceName)
Returns a list of ports for a particular service the names are QNames
-
getActiveProject
public com.intellij.openapi.project.Project getActiveProject()
-
setProject
public void setProject(com.intellij.openapi.project.Project project)
-
getTemp
public File getTemp()
-
getModules
public com.intellij.openapi.module.Module[] getModules()
-
getDefinitionNamespaceMap
public Collection getDefinitionNamespaceMap()
-
-