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

java.lang.Object
  extended byorg.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter
      extended byorg.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
axisBinding, axisEndpoint, axisService, axisServices, CALL_BACK_HANDLER_SUFFIX, codeGenConfiguration, constructorMap, DATABINDING_SUPPORTER_NAME_SUFFIX, FAULT_SUFFIX, faultClassNameMap, 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
 
Constructor Summary
CEmitter()
           
 
Method Summary
protected  void addCSpecifcAttributes(org.w3c.dom.Document doc, org.apache.axis2.description.AxisOperation operation, org.w3c.dom.Element param, java.lang.String messageType)
           
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 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, javax.xml.namespace.QName opName, java.lang.String partName, boolean isPrimitive)
          A convenient method for the generating the parameter element
protected  org.w3c.dom.Element[] getInputParamElement(org.w3c.dom.Document doc, org.apache.axis2.description.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 getOutputParamElement(org.w3c.dom.Document doc, org.apache.axis2.description.AxisOperation operation)
           
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 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, addHeaderOperations, addHeaderOperationsToFault, addShortType, addSOAPAction, addSoapVersion, copyToFaultMap, createDocumentForMessageReceiver, createDOMDocumentForAntBuild, createDOMDocumentForCallbackHandler, createDOMDocumentForException, createDOMDocumentForInterface, createDOMDocumentForServiceXML, createDOMDocumentForSkeletonInterface, createDOMDocumentForTestCase, createDOMElementforDatabinders, debugLogDocument, fillSyncAttributes, generateAndPopulateFaultNames, generateOptionParamComponent, generateParamComponent, generateParamComponent, generateParamComponent, getBase64Elements, getEmptyDocument, getFaultElement, getFaultParamElements, getFullyQualifiedMessageReceiverName, getFullyQualifiedSkeletonInterfaceName, getFullyQualifiedSkeletonName, getFullyQualifiedStubName, getInputElement, getOpNames, getOutputElement, getParameterElementList, getParameterElementListForHttpHeader, getParameterElementListForSOAPModules, getParamInitializer, getServiceElement, getUniqueListofFaults, getUniqueListofFaultsofMep, makeJavaClassName, processModelObjects, resetFaultNames, setCodeGenConfiguration, setMapper, updateFaultPackageForStub, updateMapperClassnames, updateMapperForMessageReceiver, updateMapperForStub, writeAntBuild, writeCallBackHandlers, writeClass, writeExceptions, 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

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

writeServiceXml

protected void writeServiceXml()
                        throws java.lang.Exception
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
Parameters:
isSkeletonInterface -
Returns:
DOM Document

createDOMDocumentForServiceSkeletonXML

protected org.w3c.dom.Document createDOMDocumentForServiceSkeletonXML()

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,
                                                     javax.xml.namespace.QName opName,
                                                     java.lang.String partName,
                                                     boolean isPrimitive)
A convenient method for the generating the parameter element

Parameters:
doc -
paramName -
paramType -
opName -

addCSpecifcAttributes

protected void addCSpecifcAttributes(org.w3c.dom.Document doc,
                                     org.apache.axis2.description.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,
                                                     org.apache.axis2.description.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,
                                                    org.apache.axis2.description.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.


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.