org.apache.axis.wsdl.toJava

Class JavaInterfaceWriter

public class JavaInterfaceWriter extends JavaClassWriter

This is Wsdl2java's PortType Writer. It writes the .java file which contains the interface.
Field Summary
protected BindingEntrybEntry
Field bEntry
protected PortTypeportType
Field portType
Constructor Summary
protected JavaInterfaceWriter(Emitter emitter, PortTypeEntry ptEntry, BindingEntry bEntry, SymbolTable symbolTable)
Constructor.
Method Summary
voidgenerate()
Override generate method to prevent duplicate interfaces because of two bindings referencing the same portType
protected StringgetClassText()
Returns "interface ".
protected StringgetExtendsText()
Returns "extends java.rmi.Remote ".
protected voidwriteFileBody(PrintWriter pw)
Write the body of the portType interface file.
protected voidwriteOperation(PrintWriter pw, Operation operation)
This method generates the interface signatures for the given operation.

Field Detail

bEntry

protected BindingEntry bEntry
Field bEntry

portType

protected PortType portType
Field portType

Constructor Detail

JavaInterfaceWriter

protected JavaInterfaceWriter(Emitter emitter, PortTypeEntry ptEntry, BindingEntry bEntry, SymbolTable symbolTable)
Constructor.

Parameters: emitter ptEntry bEntry symbolTable

Method Detail

generate

public void generate()
Override generate method to prevent duplicate interfaces because of two bindings referencing the same portType

Throws: IOException

getClassText

protected String getClassText()
Returns "interface ".

Returns:

getExtendsText

protected String getExtendsText()
Returns "extends java.rmi.Remote ".

Returns:

writeFileBody

protected void writeFileBody(PrintWriter pw)
Write the body of the portType interface file.

Parameters: pw

Throws: IOException

writeOperation

protected void writeOperation(PrintWriter pw, Operation operation)
This method generates the interface signatures for the given operation.

Parameters: pw operation

Throws: IOException

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