public class CEmitter extends AxisServiceBasedMultiLanguageEmitter
| Modifier and Type | Field and Description |
|---|---|
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 |
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 and Description |
|---|
CEmitter() |
CEmitter(CodeGenConfiguration configuration) |
CEmitter(CodeGenConfiguration configuration,
TypeMapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCSpecifcAttributes(Document doc,
org.apache.axis2.description.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,
org.apache.axis2.description.AxisOperation operation) |
protected Element |
getInputElement(Document doc,
org.apache.axis2.description.AxisBindingOperation bindingOperation,
List headerParameterQNameList)
Get the input element
|
protected Element[] |
getInputParamElement(Document doc,
org.apache.axis2.description.AxisOperation operation) |
protected File |
getOutputDirectory(File outputDir,
String dir2)
Gets the output directory for source files.
|
protected Element |
getOutputElement(Document doc,
org.apache.axis2.description.AxisBindingOperation bindingOperation,
List headerParameterQNameList)
Finds the output element.
|
protected Element |
getOutputParamElement(Document doc,
org.apache.axis2.description.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
|
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, writeWSDLFilesprotected static final String C_STUB_PREFIX
protected static final String C_SKEL_PREFIX
protected static final String C_SVC_SKEL_PREFIX
protected static final String C_STUB_SUFFIX
protected static final String C_SKEL_SUFFIX
protected static final String C_SVC_SKEL_SUFFIX
protected static final String JAVA_DEFAULT_TYPE
protected static final String C_DEFAULT_TYPE
protected static final String C_OUR_TYPE_PREFIX
protected static final String C_OUR_TYPE_SUFFIX
protected static final String C_GEN_NO_MESSAGE_CONTEXT
public CEmitter()
public CEmitter(CodeGenConfiguration configuration)
configuration - public CEmitter(CodeGenConfiguration configuration, TypeMapper mapper)
configuration - mapper - public void emitStub()
throws CodeGenerationException
emitStub in interface EmitteremitStub in class AxisServiceBasedMultiLanguageEmitterCodeGenerationExceptionEmitter.emitStub()public void emitSkeleton()
throws CodeGenerationException
emitSkeleton in interface EmitteremitSkeleton in class AxisServiceBasedMultiLanguageEmitterCodeGenerationExceptionpublic void emitBuildScript()
throws CodeGenerationException
CodeGenerationExceptionprotected void writeVCProjectFile()
throws Exception
Exceptionprotected void writeBuildScript()
throws Exception
Exceptionprotected void writeServiceXml()
throws Exception
AxisServiceBasedMultiLanguageEmitterwriteServiceXml in class AxisServiceBasedMultiLanguageEmitterExceptionprotected Document createDOMDocumentForInterfaceImplementation() throws Exception
createDOMDocumentForInterfaceImplementation in class AxisServiceBasedMultiLanguageEmitterExceptionprotected Document createDOMDocumentForSkeleton(boolean isSkeletonInterface)
AxisServiceBasedMultiLanguageEmittercreateDOMDocumentForSkeleton in class AxisServiceBasedMultiLanguageEmitterprotected Document createDOMDocumentForServiceSkeletonXML()
protected Document createDOMDocumentForBuildScript(CodeGenConfiguration codegen)
protected String makeCClassName(String word)
word - protected boolean loadOperations(Document doc, Element rootElement, String mep)
loadOperations in class AxisServiceBasedMultiLanguageEmitterdoc - rootElement - mep - protected Element generateParamComponent(Document doc, String paramName, String paramType, QName opName, QName paramQName, String partName, boolean isPrimitive, boolean isArray)
doc - paramName - paramType - opName - paramName - protected void addCSpecifcAttributes(Document doc, org.apache.axis2.description.AxisOperation operation, Element param, String messageType)
doc - operation - param - protected Element[] getInputParamElement(Document doc, org.apache.axis2.description.AxisOperation operation)
getInputParamElement in class AxisServiceBasedMultiLanguageEmitterdoc - operation - protected Element getOutputParamElement(Document doc, org.apache.axis2.description.AxisOperation operation)
getOutputParamElement in class AxisServiceBasedMultiLanguageEmitterdoc - operation - protected File getOutputDirectory(File outputDir, String dir2)
getOutputDirectory in class AxisServiceBasedMultiLanguageEmitteroutputDir - protected List getParameterElementList(Document doc, List parameters, String location)
getParameterElementList in class AxisServiceBasedMultiLanguageEmitterdoc - parameters - location - protected Element getUniqueListofFaultsofMep(Document doc, String mep)
getUniqueListofFaultsofMep in class AxisServiceBasedMultiLanguageEmitterdoc - protected Element[] getFaultParamElements(Document doc, org.apache.axis2.description.AxisOperation operation)
getFaultParamElements in class AxisServiceBasedMultiLanguageEmitterdoc - operation - protected Element getOutputElement(Document doc, org.apache.axis2.description.AxisBindingOperation bindingOperation, List headerParameterQNameList)
getOutputElement in class AxisServiceBasedMultiLanguageEmitterdoc - bindingOperation - headerParameterQNameList - protected Element getInputElement(Document doc, org.apache.axis2.description.AxisBindingOperation bindingOperation, List headerParameterQNameList)
getInputElement in class AxisServiceBasedMultiLanguageEmitterdoc - bindingOperation - headerParameterQNameList - Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.