public class CEmitter extends AxisServiceBasedMultiLanguageEmitter
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
C_DEFAULT_TYPE |
protected static java.lang.String |
C_GEN_NO_MESSAGE_CONTEXT |
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 |
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(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,
javax.xml.namespace.QName opName,
javax.xml.namespace.QName paramQName,
java.lang.String partName,
boolean isPrimitive,
boolean isArray)
A convenient method for the generating the parameter element
|
protected org.w3c.dom.Element[] |
getFaultParamElements(org.w3c.dom.Document doc,
AxisOperation operation) |
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 org.w3c.dom.Element |
getUniqueListofFaultsofMep(org.w3c.dom.Document doc,
java.lang.String mep)
A util method that returns a unique list of faults for a given mep
|
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
|
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 java.lang.String C_STUB_PREFIX
protected static final java.lang.String C_SKEL_PREFIX
protected static final java.lang.String C_SVC_SKEL_PREFIX
protected static final java.lang.String C_STUB_SUFFIX
protected static final java.lang.String C_SKEL_SUFFIX
protected static final java.lang.String C_SVC_SKEL_SUFFIX
protected static final java.lang.String JAVA_DEFAULT_TYPE
protected static final java.lang.String C_DEFAULT_TYPE
protected static final java.lang.String C_OUR_TYPE_PREFIX
protected static final java.lang.String C_OUR_TYPE_SUFFIX
protected static final java.lang.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 writeCStub()
throws java.lang.Exception
java.lang.Exceptionprotected void writeCSkel()
throws java.lang.Exception
java.lang.Exceptionprotected void writeCServiceSkeleton()
throws java.lang.Exception
java.lang.Exceptionprotected void writeVCProjectFile()
throws java.lang.Exception
java.lang.Exceptionprotected void writeBuildScript()
throws java.lang.Exception
java.lang.Exceptionprotected void writeServiceXml()
throws java.lang.Exception
AxisServiceBasedMultiLanguageEmitterwriteServiceXml in class AxisServiceBasedMultiLanguageEmitterjava.lang.Exceptionprotected org.w3c.dom.Document createDOMDocumentForInterfaceImplementation()
throws java.lang.Exception
createDOMDocumentForInterfaceImplementation in class AxisServiceBasedMultiLanguageEmitterjava.lang.Exceptionprotected org.w3c.dom.Document createDOMDocumentForSkeleton(boolean isSkeletonInterface)
AxisServiceBasedMultiLanguageEmittercreateDOMDocumentForSkeleton in class AxisServiceBasedMultiLanguageEmitterprotected org.w3c.dom.Document createDOMDocumentForServiceSkeletonXML()
protected org.w3c.dom.Document createDOMDocumentForBuildScript(CodeGenConfiguration codegen)
protected java.lang.String makeCClassName(java.lang.String word)
word - protected boolean loadOperations(org.w3c.dom.Document doc,
org.w3c.dom.Element rootElement,
java.lang.String mep)
loadOperations in class AxisServiceBasedMultiLanguageEmitterdoc - rootElement - mep - protected org.w3c.dom.Element generateParamComponent(org.w3c.dom.Document doc,
java.lang.String paramName,
java.lang.String paramType,
javax.xml.namespace.QName opName,
javax.xml.namespace.QName paramQName,
java.lang.String partName,
boolean isPrimitive,
boolean isArray)
doc - paramName - paramType - opName - paramName - protected void addCSpecifcAttributes(org.w3c.dom.Document doc,
AxisOperation operation,
org.w3c.dom.Element param,
java.lang.String messageType)
doc - operation - param - protected org.w3c.dom.Element[] getInputParamElement(org.w3c.dom.Document doc,
AxisOperation operation)
getInputParamElement in class AxisServiceBasedMultiLanguageEmitterdoc - operation - protected org.w3c.dom.Element getOutputParamElement(org.w3c.dom.Document doc,
AxisOperation operation)
getOutputParamElement in class AxisServiceBasedMultiLanguageEmitterdoc - operation - protected java.io.File getOutputDirectory(java.io.File outputDir,
java.lang.String dir2)
getOutputDirectory in class AxisServiceBasedMultiLanguageEmitteroutputDir - protected java.util.List getParameterElementList(org.w3c.dom.Document doc,
java.util.List parameters,
java.lang.String location)
getParameterElementList in class AxisServiceBasedMultiLanguageEmitterdoc - parameters - location - protected org.w3c.dom.Element getUniqueListofFaultsofMep(org.w3c.dom.Document doc,
java.lang.String mep)
getUniqueListofFaultsofMep in class AxisServiceBasedMultiLanguageEmitterdoc - protected org.w3c.dom.Element[] getFaultParamElements(org.w3c.dom.Document doc,
AxisOperation operation)
getFaultParamElements in class AxisServiceBasedMultiLanguageEmitterdoc - operation - protected org.w3c.dom.Element getOutputElement(org.w3c.dom.Document doc,
AxisBindingOperation bindingOperation,
java.util.List headerParameterQNameList)
getOutputElement in class AxisServiceBasedMultiLanguageEmitterdoc - bindingOperation - headerParameterQNameList - protected org.w3c.dom.Element getInputElement(org.w3c.dom.Document doc,
AxisBindingOperation bindingOperation,
java.util.List headerParameterQNameList)
getInputElement in class AxisServiceBasedMultiLanguageEmitterdoc - bindingOperation - headerParameterQNameList - Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.