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 java.lang.String C_DEFAULT_TYPE
           
protected static java.lang.String C_OUR_TYPE_PREFIX
           
protected static java.lang.String C_OUR_TYPE_SUFFIX
           
protected static java.lang.String C_SKEL_PREFIX
           
protected static java.lang.String C_SKEL_SUFFIX
           
protected static java.lang.String C_STUB_PREFIX
           
protected static java.lang.String C_STUB_SUFFIX
           
protected static java.lang.String C_SVC_SKEL_PREFIX
           
protected static java.lang.String C_SVC_SKEL_SUFFIX
           
protected static java.lang.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()
           
 
Method Summary
protected  void addCSpecifcAttributes(org.w3c.dom.Document doc, AxisOperation operation, org.w3c.dom.Element param, java.lang.String messageType)
           
protected  org.w3c.dom.Document createDOMDocumentForBuildScript(CodeGenConfiguration codegen)
           
protected  org.w3c.dom.Document createDOMDocumentForInterfaceImplementation()
          Creates the DOM tree for implementations.
protected  org.w3c.dom.Document createDOMDocumentForServiceSkeletonXML()
           
protected  org.w3c.dom.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  org.w3c.dom.Element generateParamComponent(org.w3c.dom.Document doc, java.lang.String paramName, java.lang.String paramType, QName opName, java.lang.String partName, boolean isPrimitive)
          A convenient method for the generating the parameter element
protected  org.w3c.dom.Element getInputElement(org.w3c.dom.Document doc, AxisBindingOperation bindingOperation, java.util.List headerParameterQNameList)
          Get the input element
protected  org.w3c.dom.Element[] getInputParamElement(org.w3c.dom.Document doc, AxisOperation operation)
           
protected  java.io.File getOutputDirectory(java.io.File outputDir, java.lang.String dir2)
          Gets the output directory for source files.
protected  org.w3c.dom.Element getOutputElement(org.w3c.dom.Document doc, AxisBindingOperation bindingOperation, java.util.List headerParameterQNameList)
          Finds the output element.
protected  org.w3c.dom.Element getOutputParamElement(org.w3c.dom.Document doc, AxisOperation operation)
           
protected  java.util.List getParameterElementList(org.w3c.dom.Document doc, java.util.List parameters, java.lang.String location)
           
protected  boolean loadOperations(org.w3c.dom.Document doc, org.w3c.dom.Element rootElement, java.lang.String mep)
          Loads the operations
protected  java.lang.String makeCClassName(java.lang.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
 
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, getFaultParamElements, getFullyQualifiedMessageReceiverName, getFullyQualifiedSkeletonInterfaceName, getFullyQualifiedSkeletonName, getFullyQualifiedStubName, getNewCopy, getOpNames, getParameterElementListForHttpHeader, getParameterElementListForSOAPModules, getParamInitializer, getServiceElement, getUniqueListofFaults, getUniqueListofFaultsofMep, 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 java.lang.String C_STUB_PREFIX
See Also:
Constant Field Values

C_SKEL_PREFIX

protected static final java.lang.String C_SKEL_PREFIX
See Also:
Constant Field Values

C_SVC_SKEL_PREFIX

protected static final java.lang.String C_SVC_SKEL_PREFIX
See Also:
Constant Field Values

C_STUB_SUFFIX

protected static final java.lang.String C_STUB_SUFFIX
See Also:
Constant Field Values

C_SKEL_SUFFIX

protected static final java.lang.String C_SKEL_SUFFIX
See Also:
Constant Field Values

C_SVC_SKEL_SUFFIX

protected static final java.lang.String C_SVC_SKEL_SUFFIX
See Also:
Constant Field Values

JAVA_DEFAULT_TYPE

protected static final java.lang.String JAVA_DEFAULT_TYPE
See Also:
Constant Field Values

C_DEFAULT_TYPE

protected static final java.lang.String C_DEFAULT_TYPE
See Also:
Constant Field Values

C_OUR_TYPE_PREFIX

protected static final java.lang.String C_OUR_TYPE_PREFIX
See Also:
Constant Field Values

C_OUR_TYPE_SUFFIX

protected static final java.lang.String C_OUR_TYPE_SUFFIX
See Also:
Constant Field Values
Constructor Detail

CEmitter

public CEmitter()
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 java.lang.Exception
Writes the Stub.

Throws:
java.lang.Exception

writeCSkel

protected void writeCSkel()
                   throws java.lang.Exception
Writes the Skel.

Throws:
java.lang.Exception

writeCServiceSkeleton

protected void writeCServiceSkeleton()
                              throws java.lang.Exception
Throws:
java.lang.Exception

writeBuildScript

protected void writeBuildScript()
                         throws java.lang.Exception
Write the Build Script

Throws:
java.lang.Exception

writeServiceXml

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

Overrides:
writeServiceXml in class AxisServiceBasedMultiLanguageEmitter
Throws:
java.lang.Exception

createDOMDocumentForInterfaceImplementation

protected org.w3c.dom.Document createDOMDocumentForInterfaceImplementation()
                                                                    throws java.lang.Exception
Creates the DOM tree for implementations.

Overrides:
createDOMDocumentForInterfaceImplementation in class AxisServiceBasedMultiLanguageEmitter
Throws:
java.lang.Exception

createDOMDocumentForSkeleton

protected org.w3c.dom.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 org.w3c.dom.Document createDOMDocumentForServiceSkeletonXML()

createDOMDocumentForBuildScript

protected org.w3c.dom.Document createDOMDocumentForBuildScript(CodeGenConfiguration codegen)

makeCClassName

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

loadOperations

protected boolean loadOperations(org.w3c.dom.Document doc,
                                 org.w3c.dom.Element rootElement,
                                 java.lang.String mep)
Loads the operations

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

generateParamComponent

protected org.w3c.dom.Element generateParamComponent(org.w3c.dom.Document doc,
                                                     java.lang.String paramName,
                                                     java.lang.String paramType,
                                                     QName opName,
                                                     java.lang.String partName,
                                                     boolean isPrimitive)
A convenient method for the generating the parameter element

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

addCSpecifcAttributes

protected void addCSpecifcAttributes(org.w3c.dom.Document doc,
                                     AxisOperation operation,
                                     org.w3c.dom.Element param,
                                     java.lang.String messageType)
Parameters:
doc -
operation -
param -

getInputParamElement

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

getOutputParamElement

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

getOutputDirectory

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

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

getParameterElementList

protected java.util.List getParameterElementList(org.w3c.dom.Document doc,
                                                 java.util.List parameters,
                                                 java.lang.String location)
Overrides:
getParameterElementList in class AxisServiceBasedMultiLanguageEmitter
Parameters:
doc -
parameters -
location -

getOutputElement

protected org.w3c.dom.Element getOutputElement(org.w3c.dom.Document doc,
                                               AxisBindingOperation bindingOperation,
                                               java.util.List headerParameterQNameList)
Finds the output element.

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

getInputElement

protected org.w3c.dom.Element getInputElement(org.w3c.dom.Document doc,
                                              AxisBindingOperation bindingOperation,
                                              java.util.List headerParameterQNameList)
Get the input element

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


Copyright © 2007 Apache Web Services Project. All Rights Reserved.