|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter
org.apache.axis2.wsdl.codegen.emitter.CEmitter
public class CEmitter
| Field Summary | |
|---|---|
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
|
| Constructor Summary | |
|---|---|
CEmitter()
|
|
CEmitter(CodeGenConfiguration configuration)
|
|
CEmitter(CodeGenConfiguration configuration,
TypeMapper mapper)
|
|
| Method Summary | |
|---|---|
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 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,
AxisOperation operation)
|
protected Element |
getInputElement(Document doc,
AxisBindingOperation bindingOperation,
List headerParameterQNameList)
Get the input element |
protected 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 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected 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
| Constructor Detail |
|---|
public CEmitter()
public CEmitter(CodeGenConfiguration configuration)
configuration -
public CEmitter(CodeGenConfiguration configuration,
TypeMapper mapper)
configuration - mapper - | Method Detail |
|---|
public void emitStub()
throws CodeGenerationException
emitStub in interface EmitteremitStub in class AxisServiceBasedMultiLanguageEmitterCodeGenerationExceptionEmitter.emitStub()
public void emitSkeleton()
throws CodeGenerationException
emitSkeleton in interface EmitteremitSkeleton in class AxisServiceBasedMultiLanguageEmitterCodeGenerationException
public void emitBuildScript()
throws CodeGenerationException
CodeGenerationException
protected void writeCStub()
throws Exception
Exception
protected void writeCSkel()
throws Exception
Exception
protected void writeCServiceSkeleton()
throws Exception
Exception
protected void writeVCProjectFile()
throws Exception
Exception
protected void writeBuildScript()
throws Exception
Exception
protected void writeServiceXml()
throws Exception
AxisServiceBasedMultiLanguageEmitter
writeServiceXml in class AxisServiceBasedMultiLanguageEmitterException
protected Document createDOMDocumentForInterfaceImplementation()
throws Exception
createDOMDocumentForInterfaceImplementation in class AxisServiceBasedMultiLanguageEmitterExceptionprotected Document createDOMDocumentForSkeleton(boolean isSkeletonInterface)
AxisServiceBasedMultiLanguageEmitter
createDOMDocumentForSkeleton 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,
AxisOperation operation,
Element param,
String messageType)
doc - operation - param -
protected Element[] getInputParamElement(Document doc,
AxisOperation operation)
getInputParamElement in class AxisServiceBasedMultiLanguageEmitterdoc - operation -
protected Element getOutputParamElement(Document doc,
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,
AxisOperation operation)
getFaultParamElements in class AxisServiceBasedMultiLanguageEmitterdoc - operation -
protected Element getOutputElement(Document doc,
AxisBindingOperation bindingOperation,
List headerParameterQNameList)
getOutputElement in class AxisServiceBasedMultiLanguageEmitterdoc - bindingOperation - headerParameterQNameList -
protected Element getInputElement(Document doc,
AxisBindingOperation bindingOperation,
List headerParameterQNameList)
getInputElement in class AxisServiceBasedMultiLanguageEmitterdoc - bindingOperation - headerParameterQNameList -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||