|
||||||||||
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 Emitter
emitStub
in class AxisServiceBasedMultiLanguageEmitter
CodeGenerationException
Emitter.emitStub()
public void emitSkeleton() throws CodeGenerationException
emitSkeleton
in interface Emitter
emitSkeleton
in class AxisServiceBasedMultiLanguageEmitter
CodeGenerationException
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 AxisServiceBasedMultiLanguageEmitter
Exception
protected Document createDOMDocumentForInterfaceImplementation() throws Exception
createDOMDocumentForInterfaceImplementation
in class AxisServiceBasedMultiLanguageEmitter
Exception
protected Document createDOMDocumentForSkeleton(boolean isSkeletonInterface)
AxisServiceBasedMultiLanguageEmitter
createDOMDocumentForSkeleton
in class AxisServiceBasedMultiLanguageEmitter
protected 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 AxisServiceBasedMultiLanguageEmitter
doc
- 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 AxisServiceBasedMultiLanguageEmitter
doc
- operation
-
protected Element getOutputParamElement(Document doc, AxisOperation operation)
getOutputParamElement
in class AxisServiceBasedMultiLanguageEmitter
doc
- operation
-
protected File getOutputDirectory(File outputDir, String dir2)
getOutputDirectory
in class AxisServiceBasedMultiLanguageEmitter
outputDir
-
protected List getParameterElementList(Document doc, List parameters, String location)
getParameterElementList
in class AxisServiceBasedMultiLanguageEmitter
doc
- parameters
- location
- protected Element getUniqueListofFaultsofMep(Document doc, String mep)
getUniqueListofFaultsofMep
in class AxisServiceBasedMultiLanguageEmitter
doc
-
protected Element[] getFaultParamElements(Document doc, AxisOperation operation)
getFaultParamElements
in class AxisServiceBasedMultiLanguageEmitter
doc
- operation
-
protected Element getOutputElement(Document doc, AxisBindingOperation bindingOperation, List headerParameterQNameList)
getOutputElement
in class AxisServiceBasedMultiLanguageEmitter
doc
- bindingOperation
- headerParameterQNameList
- protected Element getInputElement(Document doc, AxisBindingOperation bindingOperation, List headerParameterQNameList)
getInputElement
in class AxisServiceBasedMultiLanguageEmitter
doc
- bindingOperation
- headerParameterQNameList
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |