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

WSDL2Useless

public class WSDL2Useless extends org.apache.axis.wsdl.WSDL2Java

Fields Summary
protected static final int
SONG_OPT
protected static final org.apache.axis.utils.CLOptionDescriptor[]
options
Constructors Summary
public WSDL2Useless()


      
        addOptions(options);
    
Methods Summary
protected org.apache.axis.wsdl.gen.ParsercreateParser()

        return new MyEmitter();
    
public static voidmain(java.lang.String[] args)
Main

        WSDL2Useless useless = new WSDL2Useless();

        useless.run(args);
    
protected voidparseOption(org.apache.axis.utils.CLOption option)

        if (option.getId() == SONG_OPT) {
            String arg = option.getArgument();
            if (arg.equals("rum")) {
                ((MyEmitter) parser).setSong(MyEmitter.RUM);
            }
            else if (arg.equals("work")) {
                ((MyEmitter) parser).setSong(MyEmitter.WORK);
            }
        }
        else {
            super.parseOption(option);
        }