Class JavaHolderWriter

  • All Implemented Interfaces:
    Generator

    public class JavaHolderWriter
    extends JavaClassWriter
    This is Wsdl2java's Holder Writer. It writes the Holder.java file.
    • Constructor Detail

      • JavaHolderWriter

        protected JavaHolderWriter​(Emitter emitter,
                                   TypeEntry type)
        Constructor.
        Parameters:
        emitter -
        type -
    • Method Detail

      • getImplementsText

        protected java.lang.String getImplementsText()
        Return "implements javax.xml.rpc.holders.Holder ".
        Overrides:
        getImplementsText in class JavaClassWriter
        Returns:
      • writeFileBody

        protected void writeFileBody​(java.io.PrintWriter pw)
                              throws java.io.IOException
        Generate the holder for the given complex type.
        Specified by:
        writeFileBody in class JavaWriter
        Parameters:
        pw -
        Throws:
        java.io.IOException
      • generate

        public void generate()
                      throws java.io.IOException
        Generate a java source file for the holder class. If the emitter works in deploy mode and the class already exists, the source wull not be generated.
        Specified by:
        generate in interface Generator
        Overrides:
        generate in class JavaWriter
        Throws:
        java.io.IOException