org.apache.axis.wsdl.toJava

Class JavaStubWriter

public class JavaStubWriter extends JavaClassWriter

This is Wsdl2java's stub writer. It writes the Stub.java file which contains the Stub class.
Field Summary
protected static Loglog
Field log
Constructor Summary
JavaStubWriter(Emitter emitter, BindingEntry bEntry, SymbolTable symbolTable)
Constructor.
Method Summary
protected StringgetExtendsText()
Returns "extends org.apache.axis.client.Stub ".
protected StringgetImplementsText()
Returns "implements ".
protected voidwriteBindingMethods(PrintWriter pw, List deferredBindings)
for each of the TypeEntry objects in the deferredBindings list, we need to write code that will associate a class with a schema namespace/name.
protected voidwriteFaultInfo(PrintWriter pw, BindingOperation bindOp)
This function writes the regsiterFaultInfo API calls
protected voidwriteFileBody(PrintWriter pw)
Write the body of the binding's stub file.
protected voidwriteOperation(PrintWriter pw, BindingOperation operation, Parameters parms, String soapAction, String opStyle, boolean oneway, int opIndex)
Write the stub code for the given operation.
protected voidwriteOperationMap(PrintWriter pw)
Method writeOperationMap
protected voidwriteOutputAssign(PrintWriter pw, String target, Parameter param, String source)
writeOutputAssign
protected voidwriteParameters(PrintWriter pw, Parameters parms)
Method writeParameters
protected voidwriteResponseHandling(PrintWriter pw, Parameters parms)
Method writeResponseHandling
protected voidwriteSerializationDecls(PrintWriter pw, boolean hasMIME, String namespace)
In the stub constructor, write the serializer code for the complex types.
protected voidwriteSerializationInit(PrintWriter pw, TypeEntry type)
Method writeSerializationInit

Field Detail

log

protected static Log log
Field log

Constructor Detail

JavaStubWriter

public JavaStubWriter(Emitter emitter, BindingEntry bEntry, SymbolTable symbolTable)
Constructor.

Parameters: emitter bEntry symbolTable

Method Detail

getExtendsText

protected String getExtendsText()
Returns "extends org.apache.axis.client.Stub ".

Returns:

getImplementsText

protected String getImplementsText()
Returns "implements ".

Returns:

writeBindingMethods

protected void writeBindingMethods(PrintWriter pw, List deferredBindings)
for each of the TypeEntry objects in the deferredBindings list, we need to write code that will associate a class with a schema namespace/name. This method writes a number of private methods out that do this in batches of size MAXIMUM_BINDINGS_PER_METHOD so that generated classes do not end up with a single method that exceeds the 64K limit that the VM imposes on all methods.

Parameters: pw a PrintWriter value deferredBindings a List of TypeEntry objects

writeFaultInfo

protected void writeFaultInfo(PrintWriter pw, BindingOperation bindOp)
This function writes the regsiterFaultInfo API calls

Parameters: pw bindOp

writeFileBody

protected void writeFileBody(PrintWriter pw)
Write the body of the binding's stub file.

Parameters: pw

Throws: IOException

writeOperation

protected void writeOperation(PrintWriter pw, BindingOperation operation, Parameters parms, String soapAction, String opStyle, boolean oneway, int opIndex)
Write the stub code for the given operation.

Parameters: pw operation parms soapAction opStyle oneway opIndex

writeOperationMap

protected void writeOperationMap(PrintWriter pw)
Method writeOperationMap

Parameters: pw

writeOutputAssign

protected void writeOutputAssign(PrintWriter pw, String target, Parameter param, String source)
writeOutputAssign

Parameters: pw target (either "return" or "something =" source (source String)

writeParameters

protected void writeParameters(PrintWriter pw, Parameters parms)
Method writeParameters

Parameters: pw parms

writeResponseHandling

protected void writeResponseHandling(PrintWriter pw, Parameters parms)
Method writeResponseHandling

Parameters: pw parms

writeSerializationDecls

protected void writeSerializationDecls(PrintWriter pw, boolean hasMIME, String namespace)
In the stub constructor, write the serializer code for the complex types.

Parameters: pw hasMIME namespace

writeSerializationInit

protected void writeSerializationInit(PrintWriter pw, TypeEntry type)
Method writeSerializationInit

Parameters: pw type

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.