org.apache.axis2.wsdl.codegen.emitter
Class CEmitter

java.lang.Object
  extended by org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter
      extended by org.apache.axis2.wsdl.codegen.emitter.CEmitter
All Implemented Interfaces:
Emitter

public class CEmitter
extends AxisServiceBasedMultiLanguageEmitter


Field Summary
protected static String C_DEFAULT_TYPE
           
protected static String C_GEN_NO_MESSAGE_CONTEXT
           
protected static String C_OUR_TYPE_PREFIX
           
protected static String C_OUR_TYPE_SUFFIX
           
protected static String C_SKEL_PREFIX
           
protected static String C_SKEL_SUFFIX
           
protected static String C_STUB_PREFIX
           
protected static String C_STUB_SUFFIX
           
protected static String C_SVC_SKEL_PREFIX
           
protected static String C_SVC_SKEL_SUFFIX
           
protected static String JAVA_DEFAULT_TYPE
           
 
Fields inherited from class org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter
allServiceInfoHolder, axisBinding, axisEndpoint, axisService, axisServices, CALL_BACK_HANDLER_SUFFIX, codeGenConfiguration, constructorMap, DATABINDING_SUPPORTER_NAME_SUFFIX, faultClassNameMap, faultElementQNameMap, fullyQualifiedFaultClassNameMap, infoHolder, instantiatableMessageClassNames, log, mapper, mepToClassMap, mepToSuffixMap, MESSAGE_RECEIVER_SUFFIX, resolver, SKELETON_CLASS_SUFFIX, SKELETON_CLASS_SUFFIX_BACK, SKELETON_INTERFACE_SUFFIX, SKELETON_INTERFACE_SUFFIX_BACK, STUB_INTERFACE_SUFFIX_BACK, STUB_SUFFIX, TEST_SRC_DIR_NAME, TEST_SUFFIX, uniqueFaultNameCounter, useHolderClass_jaxws, wrapped_jaxws
 
Constructor Summary
CEmitter()
           
CEmitter(CodeGenConfiguration configuration)
           
CEmitter(CodeGenConfiguration configuration, TypeMapper mapper)
           
 
Method Summary
protected  void addCSpecifcAttributes(Document doc, AxisOperation operation, Element param, String messageType)
           
protected  Document createDOMDocumentForBuildScript(CodeGenConfiguration codegen)
           
protected  Document createDOMDocumentForInterfaceImplementation()
          Creates the DOM tree for implementations.
protected  Document createDOMDocumentForServiceSkeletonXML()
           
protected  Document createDOMDocumentForSkeleton(boolean isSkeletonInterface)
          Creates the XMLModel for the skeleton
 void emitBuildScript()
          Emit the build script
 void emitSkeleton()
          Emit the skeltons
 void emitStub()
          Emit the stub
protected  Element generateParamComponent(Document doc, String paramName, String paramType, QName opName, QName paramQName, String partName, boolean isPrimitive, boolean isArray)
          A convenient method for the generating the parameter element
protected  Element[] getFaultParamElements(Document doc, AxisOperation operation)
           
protected  Element getInputElement(Document doc, AxisBindingOperation bindingOperation, List headerParameterQNameList)
          Get the input element
protected  Element[] getInputParamElement(Document doc, AxisOperation operation)
           
protected  File getOutputDirectory(File outputDir, String dir2)
          Gets the output directory for source files.
protected  Element getOutputElement(Document doc, AxisBindingOperation bindingOperation, List headerParameterQNameList)
          Finds the output element.
protected  Element getOutputParamElement(Document doc, AxisOperation operation)
           
protected  List getParameterElementList(Document doc, List parameters, String location)
           
protected  Element getUniqueListofFaultsofMep(Document doc, String mep)
          A util method that returns a unique list of faults for a given mep
protected  boolean loadOperations(Document doc, Element rootElement, String mep)
          Loads the operations
protected  String makeCClassName(String word)
           
protected  void writeBuildScript()
          Write the Build Script
protected  void writeCServiceSkeleton()
           
protected  void writeCSkel()
          Writes the Skel.
protected  void writeCStub()
          Writes the Stub.
protected  void writeServiceXml()
          Write the service XML
protected  void writeVCProjectFile()
          Write VC Projects
 
Methods inherited from class org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter
addAttribute, addElement, addEndpoint, addFaultMessages, addHeaderOperations, addHeaderOperationsToFault, addShortType, addSOAPAction, addSoapVersion, copyMap, copyToFaultMap, createDocumentForMessageReceiver, createDOMDocumentForAntBuild, createDOMDocumentForCallbackHandler, createDOMDocumentForException, createDOMDocumentForInterface, createDOMDocumentForServiceXML, createDOMDocumentForSkeletonInterface, createDOMDocumentForTestCase, createDOMElementforDatabinders, debugLogDocument, fillSyncAttributes, generateAndPopulateFaultNames, generateMethodElement, generateOptionParamComponent, generateParamComponent, generateParamComponent, generateParamComponent, getBase64Elements, getBindingPolicyFromMessage, getBindingPropertyFromMessage, getBindingPropertyFromMessageFault, getBindingPropertyFromOperation, getEmptyDocument, getFaultElement, getFullyQualifiedMessageReceiverName, getFullyQualifiedSkeletonInterfaceName, getFullyQualifiedSkeletonName, getFullyQualifiedStubName, getNewCopy, getOpNames, getParameterElementListForHttpHeader, getParameterElementListForSOAPModules, getParamInitializer, getServiceElement, getUniqueListofFaults, makeJavaClassName, processModelObjects, resetFaultNames, setCodeGenConfiguration, setMapper, updateFaultPackageForStub, updateMapperClassnames, updateMapperForMessageReceiver, updateMapperForStub, writeAntBuild, writeCallBackHandlers, writeExceptions, writeFile, writeInterface, writeInterfaceImplementation, writeMessageReceiver, writeSkeleton, writeSkeletonInterface, writeTestClasses, writeWSDLFiles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

C_STUB_PREFIX

protected static final String C_STUB_PREFIX
See Also:
Constant Field Values

C_SKEL_PREFIX

protected static final String C_SKEL_PREFIX
See Also:
Constant Field Values

C_SVC_SKEL_PREFIX

protected static final String C_SVC_SKEL_PREFIX
See Also:
Constant Field Values

C_STUB_SUFFIX

protected static final String C_STUB_SUFFIX
See Also:
Constant Field Values

C_SKEL_SUFFIX

protected static final String C_SKEL_SUFFIX
See Also:
Constant Field Values

C_SVC_SKEL_SUFFIX

protected static final String C_SVC_SKEL_SUFFIX
See Also:
Constant Field Values

JAVA_DEFAULT_TYPE

protected static final String JAVA_DEFAULT_TYPE
See Also:
Constant Field Values

C_DEFAULT_TYPE

protected static final String C_DEFAULT_TYPE
See Also:
Constant Field Values

C_OUR_TYPE_PREFIX

protected static final String C_OUR_TYPE_PREFIX
See Also:
Constant Field Values

C_OUR_TYPE_SUFFIX

protected static final String C_OUR_TYPE_SUFFIX
See Also:
Constant Field Values

C_GEN_NO_MESSAGE_CONTEXT

protected static final String C_GEN_NO_MESSAGE_CONTEXT
See Also:
Constant Field Values
Constructor Detail

CEmitter

public CEmitter()

CEmitter

public CEmitter(CodeGenConfiguration configuration)
Parameters:
configuration -

CEmitter

public CEmitter(CodeGenConfiguration configuration,
                TypeMapper mapper)
Parameters:
configuration -
mapper -
Method Detail

emitStub

public void emitStub()
              throws CodeGenerationException
Emit the stub

Specified by:
emitStub in interface Emitter
Overrides:
emitStub in class AxisServiceBasedMultiLanguageEmitter
Throws:
CodeGenerationException
See Also:
Emitter.emitStub()

emitSkeleton

public void emitSkeleton()
                  throws CodeGenerationException
Emit the skeltons

Specified by:
emitSkeleton in interface Emitter
Overrides:
emitSkeleton in class AxisServiceBasedMultiLanguageEmitter
Throws:
CodeGenerationException

emitBuildScript

public void emitBuildScript()
                     throws CodeGenerationException
Emit the build script

Throws:
CodeGenerationException

writeCStub

protected void writeCStub()
                   throws Exception
Writes the Stub.

Throws:
Exception

writeCSkel

protected void writeCSkel()
                   throws Exception
Writes the Skel.

Throws:
Exception

writeCServiceSkeleton

protected void writeCServiceSkeleton()
                              throws Exception
Throws:
Exception

writeVCProjectFile

protected void writeVCProjectFile()
                           throws Exception
Write VC Projects

Throws:
Exception

writeBuildScript

protected void writeBuildScript()
                         throws Exception
Write the Build Script

Throws:
Exception

writeServiceXml

protected void writeServiceXml()
                        throws Exception
Description copied from class: AxisServiceBasedMultiLanguageEmitter
Write the service XML

Overrides:
writeServiceXml in class AxisServiceBasedMultiLanguageEmitter
Throws:
Exception

createDOMDocumentForInterfaceImplementation

protected Document createDOMDocumentForInterfaceImplementation()
                                                        throws Exception
Creates the DOM tree for implementations.

Overrides:
createDOMDocumentForInterfaceImplementation in class AxisServiceBasedMultiLanguageEmitter
Throws:
Exception

createDOMDocumentForSkeleton

protected Document createDOMDocumentForSkeleton(boolean isSkeletonInterface)
Description copied from class: AxisServiceBasedMultiLanguageEmitter
Creates the XMLModel for the skeleton

Overrides:
createDOMDocumentForSkeleton in class AxisServiceBasedMultiLanguageEmitter
Returns:
DOM Document

createDOMDocumentForServiceSkeletonXML

protected Document createDOMDocumentForServiceSkeletonXML()

createDOMDocumentForBuildScript

protected Document createDOMDocumentForBuildScript(CodeGenConfiguration codegen)

makeCClassName

protected String makeCClassName(String word)
Parameters:
word -
Returns:
Returns character removed string.

loadOperations

protected boolean loadOperations(Document doc,
                                 Element rootElement,
                                 String mep)
Loads the operations

Overrides:
loadOperations in class AxisServiceBasedMultiLanguageEmitter
Parameters:
doc -
rootElement -
mep -
Returns:
operations found

generateParamComponent

protected Element generateParamComponent(Document doc,
                                         String paramName,
                                         String paramType,
                                         QName opName,
                                         QName paramQName,
                                         String partName,
                                         boolean isPrimitive,
                                         boolean isArray)
A convenient method for the generating the parameter element

Parameters:
doc -
paramName -
paramType -
opName -
paramName -

addCSpecifcAttributes

protected void addCSpecifcAttributes(Document doc,
                                     AxisOperation operation,
                                     Element param,
                                     String messageType)
Parameters:
doc -
operation -
param -

getInputParamElement

protected Element[] getInputParamElement(Document doc,
                                         AxisOperation operation)
Overrides:
getInputParamElement in class AxisServiceBasedMultiLanguageEmitter
Parameters:
doc -
operation -
Returns:
Returns the parameter element.

getOutputParamElement

protected Element getOutputParamElement(Document doc,
                                        AxisOperation operation)
Overrides:
getOutputParamElement in class AxisServiceBasedMultiLanguageEmitter
Parameters:
doc -
operation -
Returns:
Returns Element.

getOutputDirectory

protected File getOutputDirectory(File outputDir,
                                  String dir2)
Gets the output directory for source files.

Overrides:
getOutputDirectory in class AxisServiceBasedMultiLanguageEmitter
Parameters:
outputDir -
Returns:
Returns File.

getParameterElementList

protected List getParameterElementList(Document doc,
                                       List parameters,
                                       String location)
Overrides:
getParameterElementList in class AxisServiceBasedMultiLanguageEmitter
Parameters:
doc -
parameters -
location -

getUniqueListofFaultsofMep

protected Element getUniqueListofFaultsofMep(Document doc,
                                             String mep)
A util method that returns a unique list of faults for a given mep

Overrides:
getUniqueListofFaultsofMep in class AxisServiceBasedMultiLanguageEmitter
Parameters:
doc -
Returns:
DOM element

getFaultParamElements

protected Element[] getFaultParamElements(Document doc,
                                          AxisOperation operation)
Overrides:
getFaultParamElements in class AxisServiceBasedMultiLanguageEmitter
Parameters:
doc -
operation -
Returns:
Returns the parameter element.

getOutputElement

protected Element getOutputElement(Document doc,
                                   AxisBindingOperation bindingOperation,
                                   List headerParameterQNameList)
Finds the output element.

Overrides:
getOutputElement in class AxisServiceBasedMultiLanguageEmitter
Parameters:
doc -
bindingOperation -
headerParameterQNameList -

getInputElement

protected Element getInputElement(Document doc,
                                  AxisBindingOperation bindingOperation,
                                  List headerParameterQNameList)
Get the input element

Overrides:
getInputElement in class AxisServiceBasedMultiLanguageEmitter
Parameters:
doc -
bindingOperation -
headerParameterQNameList -
Returns:
DOM element


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