Class JavaInterfaceWriter

  • All Implemented Interfaces:
    Generator

    public class JavaInterfaceWriter
    extends JavaClassWriter
    This is Wsdl2java's PortType Writer. It writes the .java file which contains the interface.
    • Field Detail

      • portType

        protected javax.wsdl.PortType portType
        Field portType
    • Constructor Detail

    • 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
        Overrides:
        generate in class JavaWriter
        Throws:
        java.io.IOException
      • getClassText

        protected java.lang.String getClassText()
        Returns "interface ".
        Overrides:
        getClassText in class JavaClassWriter
        Returns:
      • getExtendsText

        protected java.lang.String getExtendsText()
        Returns "extends java.rmi.Remote ".
        Overrides:
        getExtendsText in class JavaClassWriter
        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
        Parameters:
        pw -
        Throws:
        java.io.IOException
      • writeOperation

        protected void writeOperation​(java.io.PrintWriter pw,
                                      javax.wsdl.Operation operation)
                               throws java.io.IOException
        This method generates the interface signatures for the given operation.
        Parameters:
        pw -
        operation -
        Throws:
        java.io.IOException