org.jboss.axis.wsdl.toJava
Class JavaInterfaceWriter

java.lang.Object
  extended byorg.jboss.axis.wsdl.toJava.JavaWriter (src) 
      extended byorg.jboss.axis.wsdl.toJava.JavaClassWriter (src) 
          extended byorg.jboss.axis.wsdl.toJava.JavaInterfaceWriter
All Implemented Interfaces:
Generator (src)

public class JavaInterfaceWriter
extends JavaClassWriter (src)

This is Wsdl2java's PortType Writer. It writes the .java file which contains the interface.


Field Summary
protected  BindingEntry (src) bEntry
           
protected  PortType portType
           
 
Fields inherited from class org.jboss.axis.wsdl.toJava.JavaClassWriter (src)
className, namespaces, packageName
 
Fields inherited from class org.jboss.axis.wsdl.toJava.JavaWriter (src)
emitter, type
 
Constructor Summary
protected JavaInterfaceWriter(Emitter (src)  emitter, PortTypeEntry (src)  ptEntry, BindingEntry (src)  bEntry, SymbolTable (src)  symbolTable)
          Constructor.
 
Method Summary
 void generate()
          Override generate method to prevent duplicate interfaces because of two bindings referencing the same portType
protected  java.lang.String getClassText()
          Returns "interface ".
protected  java.lang.String getExtendsText()
          Returns "extends java.rmi.Remote ".
protected  void writeFileBody(java.io.PrintWriter pw)
          Write the body of the portType interface file.
protected  void writeOperation(java.io.PrintWriter pw, Operation operation)
          This method generates the interface signatures for the given operation.
 
Methods inherited from class org.jboss.axis.wsdl.toJava.JavaClassWriter (src)
getClassModifiers, getClassName, getFileName, getImplementsText, getPackage, registerFile, writeFileFooter, writeFileHeader, writeHeaderComments, writePackage
 
Methods inherited from class org.jboss.axis.wsdl.toJava.JavaWriter (src)
closePrintWriter, getPrintWriter, isFileGenerated, verboseMessage, writeComment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

portType

protected PortType portType

bEntry

protected BindingEntry (src)  bEntry
Constructor Detail

JavaInterfaceWriter

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

Method Detail

generate

public void generate()
              throws java.io.IOException
Override generate method to prevent duplicate interfaces because of two bindings referencing the same portType

Specified by:
generate in interface Generator (src)
Overrides:
generate in class JavaWriter (src)
Throws:
java.io.IOException

getClassText

protected java.lang.String getClassText()
Returns "interface ".

Overrides:
getClassText in class JavaClassWriter (src)

getExtendsText

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

Overrides:
getExtendsText in class JavaClassWriter (src)
Returns:
""

writeFileBody

protected void writeFileBody(java.io.PrintWriter pw)
                      throws java.io.IOException
Write the body of the portType interface file.

Specified by:
writeFileBody in class JavaWriter (src)
Throws:
java.io.IOException

writeOperation

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

Throws:
java.io.IOException