org.apache.axis2.tools.bean
Class CodegenBean

java.lang.Object
  extended by org.apache.axis2.tools.bean.CodegenBean

public class CodegenBean
extends Object


Constructor Summary
CodegenBean()
           
 
Method Summary
 Map fillOptionMap()
          Creates a list of parameters for the code generator based on the decisions made by the user on the OptionsPage (page2).
 void generate()
           
 com.intellij.openapi.project.Project getActiveProject()
           
 AxisService getAxisService(String wsdlURI)
          Reads the WSDL Object Model from the given location.
 String getBaseUri(String wsdlURI)
           
 String getDatabindingName()
           
 Collection getDefinitionNamespaceMap()
           
 String getLanguage()
           
 com.intellij.openapi.module.Module[] getModules()
           
 String[] getModuleSrc(String name)
           
 String getOutput()
           
 String getPackageName()
           
 String getPortName()
           
 List getPortNameList(QName serviceName)
          Returns a list of ports for a particular service the names are QNames
 List getServiceList()
          Returns a list of service names the names are QNames
 String getServiceName()
           
 File getTemp()
           
 String getWSDLFileName()
           
 boolean isAsyncOnly()
           
 boolean isDefaultClient()
           
 boolean isGenerateAll()
           
 boolean isServerSide()
           
 boolean isServerSideInterface()
           
 boolean isServerXML()
           
 boolean isSyncOnly()
           
 boolean isTestcase()
           
 boolean isTestCase()
           
 String packageFromTargetNamespace()
           
 void readWSDL()
           
 void setAsyncOnly(boolean asyncOnly)
           
 void setDatabindingName(String databindingName)
           
 void setDefaultClient(boolean defaultClient)
           
 void setGenerateAll(boolean generateAll)
           
 void setLanguage(String language)
           
 void setNamespace2packageList(String namespace2packageList)
           
 void setOutput(String output)
           
 void setPackageName(String packageName)
           
 void setPortName(String portName)
           
 void setProject(com.intellij.openapi.project.Project project)
           
 void setServerSide(boolean serverSide)
           
 void setServerSideInterface(boolean serverSideInterface)
           
 void setServerXML(boolean serverXML)
           
 void setServiceName(String serviceName)
           
 void setSyncOnly(boolean syncOnly)
           
 void setTestcase(boolean testcase)
           
 void setTestCase(boolean testCase)
           
 void setWSDLFileName(String WSDLFileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodegenBean

public CodegenBean()
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.

getBaseUri

public String getBaseUri(String wsdlURI)

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 file
Exception

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)

generate

public void generate()
              throws Exception
Throws:
Exception

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()

getModuleSrc

public String[] getModuleSrc(String name)

getDefinitionNamespaceMap

public Collection getDefinitionNamespaceMap()


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