Package com.sun.codemodel

Examples of com.sun.codemodel.JCodeModel$TypeNameParser


        generator.setOutputDirectory(getTestFilePath("target/test-services"));
        generator.setOverwrite(true);
       
        generator.generate();
       
        JCodeModel model = generator.getCodeModel();
        JDefinedClass echo = model._getClass("echo.wrapped.EchoPortType");
        assertNotNull(echo);
    }
View Full Code Here


        generator.setOverwrite(true);
        generator.setGenerateServerStubs(false);
       
        generator.generate();
       
        JCodeModel model = generator.getCodeModel();
        JDefinedClass echo = model._getClass("org.codehaus.xfire.generator.noserverstubs.EchoImpl");
        assertNull(echo);
    }
View Full Code Here

        generator.setOverwrite(true);
        generator.setGenerateServerStubs(false);
       
        generator.generate();
       
        JCodeModel model = generator.getCodeModel();
        JDefinedClass echo = model._getClass("echo.wrapped.unbounded.EchoPortType");
        assertNotNull(echo);
       
        JMethod jm = echo.methods().iterator().next();
        assertEquals("java.util.List<java.lang.String>", jm.type().fullName());
    }
View Full Code Here

        generator.setOverwrite(true);
        generator.setGenerateServerStubs(false);
       
        generator.generate();
       
        JCodeModel model = generator.getCodeModel();
        JDefinedClass echo = model._getClass("echo.wrapped.keyword.EchoPortType");
        assertNotNull(echo);
       
        JMethod jm = echo.methods().iterator().next();
        assertEquals("java.util.List<java.lang.String>", jm.type().fullName());
    }
View Full Code Here

        generator.setOverwrite(true);
        generator.setGenerateServerStubs(false);
       
        generator.generate();
       
        JCodeModel model = generator.getCodeModel();
        JDefinedClass echo = model._getClass("echo.wrapped.mtom.EchoPortType");
        assertNotNull(echo);
       
        JMethod jm = echo.methods().iterator().next();
        assertEquals("javax.activation.DataHandler", jm.type().fullName());
    }
View Full Code Here

        generator.setWsdl(getTestFilePath("src/wsdl/hello/hello.wsdl"));
        generator.setOutputDirectory(getTestFilePath("target/test-services"));
        generator.setOverwrite(true);       
        generator.generate();
       
        JCodeModel model = generator.getCodeModel();
        JDefinedClass c = model._getClass("org.something.services.hello.HelloFaultMessage");
        assertNotNull(c);
        c = model._getClass("org.something.services.hello.HelloFault");
        assertNotNull(c);
    }
View Full Code Here

        generator.setOutputDirectory(getTestFilePath("target/test-services"));
        generator.setDestinationPackage("jsr181.jaxb.echofault");
        generator.setOverwrite(true);       
        generator.generate();
       
        JCodeModel model = generator.getCodeModel();
        JDefinedClass echo = model._getClass("jsr181.jaxb.echofault.EchoWithFaultPortType");
        assertNotNull(echo);
    }
View Full Code Here

        generator.setBinding("jaxb");
        generator.setBaseURI(getTestFilePath("src/wsdl/import-test/"));
        generator.setOverwrite(true);
        generator.generate();
       
        JCodeModel model = generator.getCodeModel();
        JDefinedClass concat = model._getClass("org.codehaus.xfire.generator.messagepart.concatPortType");
        assertNotNull(concat);
       
        JType string = model._ref(String.class);
        JMethod method = concat.getMethod("concat", new JType[] { string, string });
       
        // if there were a way to look at the annotations we would do that here.
    }
View Full Code Here

        generator.setDestinationPackage("org.codehaus.xfire.generator.imports");
        generator.setOverwrite(true);
       
        generator.generate();
       
        JCodeModel model = generator.getCodeModel();
        JDefinedClass soap = model._getClass("org.codehaus.xfire.generator.imports.MyServiceSoap");
        assertNotNull(soap);
    }
View Full Code Here

        generator.setBaseURI(getTestFilePath("src/wsdl/import-test/"));
        generator.setOverwrite(true);
       
        generator.generate();
       
        JCodeModel model = generator.getCodeModel();
        JDefinedClass echo = model._getClass("org.codehaus.xfire.generator.imports.EchoPortType");
        assertNotNull(echo);
    }
View Full Code Here

TOP

Related Classes of com.sun.codemodel.JCodeModel$TypeNameParser

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.