Class CEmitter
- java.lang.Object
-
- org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter
-
- org.apache.axis2.wsdl.codegen.emitter.CEmitter
-
- All Implemented Interfaces:
Emitter
public class CEmitter extends AxisServiceBasedMultiLanguageEmitter
-
-
Field Summary
Fields Modifier and Type Field 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
-
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
Constructors Constructor Description CEmitter()
CEmitter(CodeGenConfiguration configuration)
CEmitter(CodeGenConfiguration configuration, TypeMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 skeletonvoid
emitBuildScript()
Emit the build scriptvoid
emitSkeleton()
Emit the skeltonsvoid
emitStub()
Emit the stubprotected 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 elementprotected Element[]
getFaultParamElements(Document doc, AxisOperation operation)
protected Element
getInputElement(Document doc, AxisBindingOperation bindingOperation, List headerParameterQNameList)
Get the input elementprotected 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 mepprotected boolean
loadOperations(Document doc, Element rootElement, String mep)
Loads the operationsprotected String
makeCClassName(String word)
protected void
writeBuildScript()
Write the Build Scriptprotected void
writeCServiceSkeleton()
protected void
writeCSkel()
Writes the Skel.protected void
writeCStub()
Writes the Stub.protected void
writeServiceXml()
Write the service XMLprotected 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
-
-
-
-
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 interfaceEmitter
- Overrides:
emitStub
in classAxisServiceBasedMultiLanguageEmitter
- Throws:
CodeGenerationException
- See Also:
Emitter.emitStub()
-
emitSkeleton
public void emitSkeleton() throws CodeGenerationException
Emit the skeltons- Specified by:
emitSkeleton
in interfaceEmitter
- Overrides:
emitSkeleton
in classAxisServiceBasedMultiLanguageEmitter
- Throws:
CodeGenerationException
-
emitBuildScript
public void emitBuildScript() throws CodeGenerationException
Emit the build script- Throws:
CodeGenerationException
-
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 classAxisServiceBasedMultiLanguageEmitter
- Throws:
Exception
-
createDOMDocumentForInterfaceImplementation
protected Document createDOMDocumentForInterfaceImplementation() throws Exception
Creates the DOM tree for implementations.- Overrides:
createDOMDocumentForInterfaceImplementation
in classAxisServiceBasedMultiLanguageEmitter
- Throws:
Exception
-
createDOMDocumentForSkeleton
protected Document createDOMDocumentForSkeleton(boolean isSkeletonInterface)
Description copied from class:AxisServiceBasedMultiLanguageEmitter
Creates the XMLModel for the skeleton- Overrides:
createDOMDocumentForSkeleton
in classAxisServiceBasedMultiLanguageEmitter
- 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 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, AxisOperation operation, Element param, String messageType)
- Parameters:
doc
-operation
-param
-
-
getInputParamElement
protected Element[] getInputParamElement(Document doc, AxisOperation operation)
- Overrides:
getInputParamElement
in classAxisServiceBasedMultiLanguageEmitter
- Parameters:
doc
-operation
-- Returns:
- Returns the parameter element.
-
getOutputParamElement
protected Element getOutputParamElement(Document doc, AxisOperation operation)
- Overrides:
getOutputParamElement
in classAxisServiceBasedMultiLanguageEmitter
- Parameters:
doc
-operation
-- Returns:
- Returns Element.
-
getOutputDirectory
protected File getOutputDirectory(File outputDir, String dir2)
Gets the output directory for source files.- Overrides:
getOutputDirectory
in classAxisServiceBasedMultiLanguageEmitter
- Parameters:
outputDir
-- Returns:
- Returns File.
-
getParameterElementList
protected List getParameterElementList(Document doc, List parameters, String location)
- Overrides:
getParameterElementList
in classAxisServiceBasedMultiLanguageEmitter
- 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 classAxisServiceBasedMultiLanguageEmitter
- Parameters:
doc
-- Returns:
- DOM element
-
getFaultParamElements
protected Element[] getFaultParamElements(Document doc, AxisOperation operation)
- Overrides:
getFaultParamElements
in classAxisServiceBasedMultiLanguageEmitter
- 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 classAxisServiceBasedMultiLanguageEmitter
- Parameters:
doc
-bindingOperation
-headerParameterQNameList
-
-
getInputElement
protected Element getInputElement(Document doc, AxisBindingOperation bindingOperation, List headerParameterQNameList)
Get the input element- Overrides:
getInputElement
in classAxisServiceBasedMultiLanguageEmitter
- Parameters:
doc
-bindingOperation
-headerParameterQNameList
-- Returns:
- DOM element
-
-