Package org.apache.axis.tool.service.bean

Examples of org.apache.axis.tool.service.bean.Page2Bean



    public void process(WizardBean bean) throws ProcessException,Exception{

        Page1Bean page1Bean = bean.getPage1bean();
        Page2Bean page2Bean = bean.getPage2bean();
        Page3Bean page3Bean = bean.getPage3bean();

        File serviceFile = null;
        File classFileFolder = null;
        File outputFolder =null;
        String outputFileName = null;
        boolean isServiceCreated = false;

        //see if the class file location is valid
        classFileFolder = new File(page1Bean.getFileLocation());
        if (!classFileFolder.exists()){
            throw new ProcessException("Specified Class file location is empty!!");
        }
        if (!classFileFolder.isDirectory()){
            throw new ProcessException("The class file location must be a folder!");
        }

         //see if the  service.xml file is valid
        if (page2Bean.isManual()){
            serviceFile = new File(page2Bean.getManualFileName());
            if (!serviceFile.exists()){
                throw new ProcessException("Specified Service XML file is missing!");
            }
        }else{
            ArrayList methodList = page2Bean.getSelectedMethodNames();
            if (methodList.isEmpty()){
                throw new ProcessException("There are no methods selected to generate the service!!");
            }
            serviceFile=new ServiceFileCreator().createServiceFile(page2Bean.getProviderClassName(),
                    page2Bean.getAutomaticClassName(),
                    page2Bean.getSelectedMethodNames());//create the file here
            isServiceCreated = true;
        }

        outputFolder = new File(page3Bean.getOutputFolderName());
        outputFileName = page3Bean.getOutputFileName();
View Full Code Here


            myBean = wizardBean.getPage2bean();
            //set the initial settings from the bean
            setBeanValues();

        }else{
            myBean = new Page2Bean();
            wizardBean.setPage2bean(myBean);
            setDefaultValues();
        }

    }
View Full Code Here

    public boolean isSkipNextPage() {
        return skipNextPage;
    }
   
    public Page2Bean getBean(){
        Page2Bean pageBean = new Page2Bean();
        pageBean.setManual(true);
        pageBean.setManualFileName(this.serviceXMLText.getText());
        return pageBean;
    }
View Full Code Here

    public boolean isSkipNextPage() {
        return skipNextPage;
    }

    public Page2Bean getBean() {
        Page2Bean pageBean = new Page2Bean();
        pageBean.setManual(true);
        pageBean.setManualFileName(this.serviceXMLText.getText());
        return pageBean;
    }
View Full Code Here

    public boolean isSkipNextPage() {
        return skipNextPage;
    }
   
    public Page2Bean getBean(){
        Page2Bean pageBean = new Page2Bean();
        pageBean.setManual(true);
        pageBean.setManualFileName(this.serviceXMLText.getText());
        return pageBean;
    }
View Full Code Here

TOP

Related Classes of org.apache.axis.tool.service.bean.Page2Bean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.