FileDocCategorySizeDatePackage
MyDeployWriter.javaAPI DocApache Axis 1.42308Sat Apr 22 18:56:52 BST 2006samples.integrationGuide.example2

MyDeployWriter

public class MyDeployWriter extends org.apache.axis.wsdl.toJava.JavaWriter

Fields Summary
private String
filename
Constructors Summary
public MyDeployWriter(org.apache.axis.wsdl.toJava.Emitter emitter, javax.wsdl.Definition definition, org.apache.axis.wsdl.symbolTable.SymbolTable symbolTable)

        super(emitter, "deploy");

        // Create the fully-qualified file name
        String dir = emitter.getNamespaces().getAsDir(
                definition.getTargetNamespace());
        filename = dir + "deploy.useless";
    
Methods Summary
public voidgenerate()

        if (emitter.isServerSide()) {
            super.generate();
        }
    
protected java.lang.StringgetFileName()

        return filename;
    
protected voidwriteFileBody(java.io.PrintWriter pw)
Write the service list file.

        MyEmitter myEmitter = (MyEmitter) emitter;
        if (myEmitter.getSong() == MyEmitter.RUM) {
            pw.println("Yo!  Ho!  Ho!  And a bottle of rum.");
        }
        else if (myEmitter.getSong() == MyEmitter.WORK) {
            pw.println("Hi ho!  Hi ho!  It's off to work we go.");
        }
        else {
            pw.println("Feelings...  Nothing more than feelings...");
        }
    
protected voidwriteFileHeader(java.io.PrintWriter pw)
Override the common JavaWriter header to a no-op.