|
|||||||||||
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
MultiLanguageClientEmitter we have now is based on WOM. This one will directly infer the information from the AxisService.
Field Summary | |
protected TypeMapper |
mapper
|
protected URIResolver |
resolver
|
Constructor Summary | |
AxisServiceBasedMultiLanguageEmitter()
|
Method Summary | |
protected void |
addAttribute(Document document,
String AttribName,
String attribValue,
Element element)
Utility method to add an attribute to a given element. |
protected Element |
addElement(Document document,
String eltName,
String eltValue,
Element element)
Utility method to add an attribute to a given element. |
protected void |
addEndpoint(Document doc,
Element rootElement)
Adds the endpoint to the document. |
protected void |
addSoapVersion(Document doc,
Element rootElement)
Looks for the SOAPVersion and adds it. |
protected Document |
createDocumentForMessageReceiver(String mep,
boolean isServerSideInterface)
|
protected Document |
createDOMDocumentForAntBuild()
Creates the DOM tree for the Ant build. |
protected Document |
createDOMDocumentForCallbackHandler()
Generates the model for the callbacks. |
protected Document |
createDOMDocumentForInterface(boolean writeDatabinders)
Creates the DOM tree for the interface creation. |
protected Document |
createDOMDocumentForInterfaceImplementation()
Creates the DOM tree for implementations. |
protected Document |
createDOMDocumentForTestCase()
|
protected Element |
createDOMElementforDatabinders(Document doc)
create a dom doc for databinders |
void |
emitSkeleton()
Emit the skeltons |
void |
emitStub()
|
protected Element |
getFaultElement(Document doc,
AxisOperation operation)
Get the fault element - No header faults are supported |
protected Element |
getInputElement(Document doc,
AxisOperation operation,
List headerParameterQNameList)
|
protected File |
getOutputDirectory(File outputDir,
String dir2)
Gets the output directory for source files. |
protected Element |
getOutputElement(Document doc,
AxisOperation operation,
List headerParameterQNameList)
Finds the output element. |
protected String |
makeJavaClassName(String word)
|
void |
setCodeGenConfiguration(CodeGenConfiguration configuration)
|
void |
setMapper(TypeMapper mapper)
|
protected void |
writeAntBuild()
Writes the Ant build. |
protected void |
writeCallBackHandlers()
Writes the callback handlers. |
protected void |
writeClass(Document model,
ClassWriter writer)
A resusable method for the implementation of interface and implementation writing. |
protected void |
writeInterface(boolean writeDatabinders)
Writes the interfaces. |
protected void |
writeInterfaceImplementation()
Writes the implementations. |
protected void |
writeMessageReceiver()
|
protected void |
writeTestClasses()
Write the test classes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected URIResolver resolver
protected TypeMapper mapper
Constructor Detail |
public AxisServiceBasedMultiLanguageEmitter()
Method Detail |
public void setCodeGenConfiguration(CodeGenConfiguration configuration)
setCodeGenConfiguration
in interface Emitter
public void setMapper(TypeMapper mapper)
setMapper
in interface Emitter
public void emitStub() throws CodeGenerationException
emitStub
in interface Emitter
CodeGenerationException
Emitter.emitStub()
protected void writeAntBuild() throws Exception
Exception
protected Document createDOMDocumentForAntBuild()
protected void writeTestClasses() throws Exception
Exception
protected Document createDOMDocumentForTestCase()
protected void writeInterfaceImplementation() throws Exception
Exception
protected Document createDOMDocumentForInterfaceImplementation() throws Exception
Exception
protected void addEndpoint(Document doc, Element rootElement) throws Exception
doc
- rootElement
-
Exception
protected void addSoapVersion(Document doc, Element rootElement)
doc
- rootElement
- protected void writeCallBackHandlers() throws Exception
Exception
protected Document createDOMDocumentForCallbackHandler()
protected void writeInterface(boolean writeDatabinders) throws Exception
Exception
protected Document createDOMDocumentForInterface(boolean writeDatabinders)
public void emitSkeleton() throws CodeGenerationException
emitSkeleton
in interface Emitter
CodeGenerationException
protected void writeMessageReceiver() throws Exception
Exception
protected Document createDocumentForMessageReceiver(String mep, boolean isServerSideInterface)
protected Element createDOMElementforDatabinders(Document doc)
doc
- protected String makeJavaClassName(String word)
word
-
protected void addAttribute(Document document, String AttribName, String attribValue, Element element)
document
- AttribName
- attribValue
- element
- protected File getOutputDirectory(File outputDir, String dir2)
outputDir
-
protected void writeClass(Document model, ClassWriter writer) throws IOException, Exception
model
- writer
-
IOException
Exception
protected Element getInputElement(Document doc, AxisOperation operation, List headerParameterQNameList)
protected Element getFaultElement(Document doc, AxisOperation operation)
doc
- operation
- protected Element getOutputElement(Document doc, AxisOperation operation, List headerParameterQNameList)
doc
- operation
- headerParameterQNameList
- protected Element addElement(Document document, String eltName, String eltValue, Element element)
document
- eltName
- eltValue
- element
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |