Class CEmitter
java.lang.Object
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter
org.apache.axis2.wsdl.codegen.emitter.CEmitter
- All Implemented Interfaces:
Emitter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields 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
ConstructorsConstructorDescriptionCEmitter()CEmitter(CodeGenConfiguration configuration) CEmitter(CodeGenConfiguration configuration, TypeMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCSpecifcAttributes(Document doc, org.apache.axis2.description.AxisOperation operation, Element param, String messageType) protected Documentprotected DocumentCreates the DOM tree for implementations.protected Documentprotected DocumentcreateDOMDocumentForSkeleton(boolean isSkeletonInterface) Creates the XMLModel for the skeletonvoidEmit the build scriptvoidEmit the skeltonsvoidemitStub()Emit the stubprotected ElementgenerateParamComponent(Document doc, String paramName, String paramType, QName opName, QName paramQName, String partName, boolean isPrimitive, boolean isArray) A convenient method for the generating the parameter elementprotected Element[]getFaultParamElements(Document doc, org.apache.axis2.description.AxisOperation operation) protected ElementgetInputElement(Document doc, org.apache.axis2.description.AxisBindingOperation bindingOperation, List headerParameterQNameList) Get the input elementprotected Element[]getInputParamElement(Document doc, org.apache.axis2.description.AxisOperation operation) protected FilegetOutputDirectory(File outputDir, String dir2) Gets the output directory for source files.protected ElementgetOutputElement(Document doc, org.apache.axis2.description.AxisBindingOperation bindingOperation, List headerParameterQNameList) Finds the output element.protected ElementgetOutputParamElement(Document doc, org.apache.axis2.description.AxisOperation operation) protected ListgetParameterElementList(Document doc, List parameters, String location) protected ElementgetUniqueListofFaultsofMep(Document doc, String mep) A util method that returns a unique list of faults for a given mepprotected booleanloadOperations(Document doc, Element rootElement, String mep) Loads the operationsprotected StringmakeCClassName(String word) protected voidWrite the Build Scriptprotected voidprotected voidWrites the Skel.protected voidWrites the Stub.protected voidWrite the service XMLprotected voidWrite VC ProjectsMethods 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
-
Field Details
-
C_STUB_PREFIX
- See Also:
-
C_SKEL_PREFIX
- See Also:
-
C_SVC_SKEL_PREFIX
- See Also:
-
C_STUB_SUFFIX
- See Also:
-
C_SKEL_SUFFIX
- See Also:
-
C_SVC_SKEL_SUFFIX
- See Also:
-
JAVA_DEFAULT_TYPE
- See Also:
-
C_DEFAULT_TYPE
- See Also:
-
C_OUR_TYPE_PREFIX
- See Also:
-
C_OUR_TYPE_SUFFIX
- See Also:
-
C_GEN_NO_MESSAGE_CONTEXT
- See Also:
-
-
Constructor Details
-
CEmitter
public CEmitter() -
CEmitter
- Parameters:
configuration-
-
CEmitter
- Parameters:
configuration-mapper-
-
-
Method Details
-
emitStub
Emit the stub- Specified by:
emitStubin interfaceEmitter- Overrides:
emitStubin classAxisServiceBasedMultiLanguageEmitter- Throws:
CodeGenerationException- See Also:
-
emitSkeleton
Emit the skeltons- Specified by:
emitSkeletonin interfaceEmitter- Overrides:
emitSkeletonin classAxisServiceBasedMultiLanguageEmitter- Throws:
CodeGenerationException
-
emitBuildScript
Emit the build script- Throws:
CodeGenerationException
-
writeCStub
Writes the Stub.- Throws:
Exception
-
writeCSkel
Writes the Skel.- Throws:
Exception
-
writeCServiceSkeleton
- Throws:
Exception
-
writeVCProjectFile
Write VC Projects- Throws:
Exception
-
writeBuildScript
Write the Build Script- Throws:
Exception
-
writeServiceXml
Description copied from class:AxisServiceBasedMultiLanguageEmitterWrite the service XML- Overrides:
writeServiceXmlin classAxisServiceBasedMultiLanguageEmitter- Throws:
Exception
-
createDOMDocumentForInterfaceImplementation
Creates the DOM tree for implementations.- Overrides:
createDOMDocumentForInterfaceImplementationin classAxisServiceBasedMultiLanguageEmitter- Throws:
Exception
-
createDOMDocumentForSkeleton
Description copied from class:AxisServiceBasedMultiLanguageEmitterCreates the XMLModel for the skeleton- Overrides:
createDOMDocumentForSkeletonin classAxisServiceBasedMultiLanguageEmitter- Returns:
- DOM Document
-
createDOMDocumentForServiceSkeletonXML
-
createDOMDocumentForBuildScript
-
makeCClassName
- Parameters:
word-- Returns:
- Returns character removed string.
-
loadOperations
Loads the operations- Overrides:
loadOperationsin classAxisServiceBasedMultiLanguageEmitter- 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, org.apache.axis2.description.AxisOperation operation, Element param, String messageType) - Parameters:
doc-operation-param-
-
getInputParamElement
protected Element[] getInputParamElement(Document doc, org.apache.axis2.description.AxisOperation operation) - Overrides:
getInputParamElementin classAxisServiceBasedMultiLanguageEmitter- Parameters:
doc-operation-- Returns:
- Returns the parameter element.
-
getOutputParamElement
protected Element getOutputParamElement(Document doc, org.apache.axis2.description.AxisOperation operation) - Overrides:
getOutputParamElementin classAxisServiceBasedMultiLanguageEmitter- Parameters:
doc-operation-- Returns:
- Returns Element.
-
getOutputDirectory
Gets the output directory for source files.- Overrides:
getOutputDirectoryin classAxisServiceBasedMultiLanguageEmitter- Parameters:
outputDir-- Returns:
- Returns File.
-
getParameterElementList
- Overrides:
getParameterElementListin classAxisServiceBasedMultiLanguageEmitter- Parameters:
doc-parameters-location-
-
getUniqueListofFaultsofMep
A util method that returns a unique list of faults for a given mep- Overrides:
getUniqueListofFaultsofMepin classAxisServiceBasedMultiLanguageEmitter- Parameters:
doc-- Returns:
- DOM element
-
getFaultParamElements
protected Element[] getFaultParamElements(Document doc, org.apache.axis2.description.AxisOperation operation) - Overrides:
getFaultParamElementsin classAxisServiceBasedMultiLanguageEmitter- Parameters:
doc-operation-- Returns:
- Returns the parameter element.
-
getOutputElement
protected Element getOutputElement(Document doc, org.apache.axis2.description.AxisBindingOperation bindingOperation, List headerParameterQNameList) Finds the output element.- Overrides:
getOutputElementin classAxisServiceBasedMultiLanguageEmitter- Parameters:
doc-bindingOperation-headerParameterQNameList-
-
getInputElement
protected Element getInputElement(Document doc, org.apache.axis2.description.AxisBindingOperation bindingOperation, List headerParameterQNameList) Get the input element- Overrides:
getInputElementin classAxisServiceBasedMultiLanguageEmitter- Parameters:
doc-bindingOperation-headerParameterQNameList-- Returns:
- DOM element
-