Package org.apache.axis2.wsdl.codegen.writer

Examples of org.apache.axis2.wsdl.codegen.writer.ClassWriter


    public File createServiceFile(String serviceName,String implementationClassName,ArrayList methodList) throws Exception {
       
        String currentUserDir = System.getProperty("user.dir");
        String fileName = "services.xml";
       
        ClassWriter serviceXmlWriter = new ServiceXMLWriter(currentUserDir);
        writeClass(getServiceModel(serviceName,implementationClassName,methodList),serviceXmlWriter,fileName);

        return new File(currentUserDir + File.separator + fileName);

View Full Code Here


    protected void writeServiceXml() throws Exception {
        if (this.configuration.isGenerateDeployementDescriptor()) {

            // Write the service xml in a folder with the
            Document serviceXMLModel = createDOMDocumentForServiceXML();
            ClassWriter serviceXmlWriter =
                    new ServiceXMLWriter(getOutputDirectory(this.configuration.getOutputLocation(), "resources"),
                            this.configuration.getOutputLanguage());

            writeClass(serviceXMLModel, serviceXmlWriter);
        }
View Full Code Here

     */
    protected void writeSkeleton() throws Exception {

        // Note -  One can generate the skeleton using the interface XML
        Document skeletonModel = createDOMDocumentForSkeleton();
        ClassWriter skeletonWriter = new SkeletonWriter(getOutputDirectory(this.configuration.getOutputLocation(),
                "src"), this.configuration.getOutputLanguage());

        writeClass(skeletonModel, skeletonWriter);
    }
View Full Code Here

    protected void writeServiceXml() throws Exception {
        if (this.configuration.isGenerateDeployementDescriptor()) {

            // Write the service xml in a folder with the
            Document serviceXMLModel = createDOMDocumentForServiceXML();
            ClassWriter serviceXmlWriter =
                    new ServiceXMLWriter(getOutputDirectory(this.configuration.getOutputLocation(), "resources"),
                            this.configuration.getOutputLanguage());

            writeClass(serviceXMLModel, serviceXmlWriter);
        }
View Full Code Here

     */
    protected void writeSkeleton() throws Exception {

        // Note -  One can generate the skeleton using the interface XML
        Document skeletonModel = createDOMDocumentForSkeleton();
        ClassWriter skeletonWriter = new SkeletonWriter(getOutputDirectory(this.configuration.getOutputLocation(),
                "src"), this.configuration.getOutputLanguage());

        writeClass(skeletonModel, skeletonWriter);
    }
View Full Code Here

    public File createServiceFile(String serviceName,String implementationClassName,ArrayList methodList) throws Exception {
       
        String currentUserDir = System.getProperty("user.dir");
        String fileName = "service.xml";
       
        ClassWriter serviceXmlWriter = new ServiceXMLWriter(currentUserDir);
        writeClass(getServiceModel(serviceName,implementationClassName,methodList),serviceXmlWriter,fileName);

        return new File(currentUserDir + File.separator + fileName);

View Full Code Here

    protected void writeServiceXml() throws Exception {

        // Write the service xml in a folder with the
        Document serviceXMLModel = createDOMDocumentForServiceXML();
        debugLogDocument("Document for service XML:", serviceXMLModel);
        ClassWriter serviceXmlWriter =
                new ServiceXMLWriter(
                        codeGenConfiguration.isFlattenFiles() ?
                                getOutputDirectory(codeGenConfiguration.getOutputLocation(), null) :
                                getOutputDirectory(codeGenConfiguration.getOutputLocation(),
                                                   codeGenConfiguration.getResourceLocation()),
View Full Code Here

    protected void writeSkeleton() throws Exception {
        Document skeletonModel =
                createDOMDocumentForSkeleton(codeGenConfiguration.isServerSideInterface());
        debugLogDocument("Document for skeleton:", skeletonModel);
        ClassWriter skeletonWriter = new SkeletonWriter(
                codeGenConfiguration.isFlattenFiles() ?
                        getOutputDirectory(codeGenConfiguration.getOutputLocation(), null) :
                        getOutputDirectory(codeGenConfiguration.getOutputLocation(),
                                           codeGenConfiguration.getSourceLocation())
                , this.codeGenConfiguration.getOutputLanguage());
View Full Code Here

     * @throws Exception
     */
    protected void writeSkeletonInterface() throws Exception {
        Document skeletonModel = createDOMDocumentForSkeletonInterface();
        debugLogDocument("Document for skeleton Interface:", skeletonModel);
        ClassWriter skeletonInterfaceWriter = new SkeletonInterfaceWriter(
                codeGenConfiguration.isFlattenFiles() ?
                        getOutputDirectory(codeGenConfiguration.getOutputLocation(), null) :
                        getOutputDirectory(codeGenConfiguration.getOutputLocation(),
                                           codeGenConfiguration.getSourceLocation())
                , this.codeGenConfiguration.getOutputLanguage());
View Full Code Here

    protected void writeServiceXml() throws Exception {
        if (this.codeGenConfiguration.isGenerateDeployementDescriptor()) {

            // Write the service xml in a folder with the
            Document serviceXMLModel = createDOMDocumentForServiceXML();
            ClassWriter serviceXmlWriter =
                    new CServiceXMLWriter(
                            getOutputDirectory(this.codeGenConfiguration.getOutputLocation(),
                                               codeGenConfiguration.getResourceLocation()),
                            this.codeGenConfiguration.getOutputLanguage());
View Full Code Here

TOP

Related Classes of org.apache.axis2.wsdl.codegen.writer.ClassWriter

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.