Package org.objectweb.celtix.tools.processors.wsdl2.compiler

Examples of org.objectweb.celtix.tools.processors.wsdl2.compiler.Compiler


        }

        ServiceProcessor serviceProcessor = new ServiceProcessor(env, getWSDLDefinition());
        serviceProcessor.process(javaModel);

        SEIAnnotationProcessor seiAnnotationProcessor = new SEIAnnotationProcessor(env);
        seiAnnotationProcessor.process(javaModel, definition);

        return javaModel;
    }
View Full Code Here


            PortType portType = (PortType)portTypes.get(iter.next());
            PortTypeProcessor portTypeProcessor = new PortTypeProcessor(getEnvironment());
            portTypeProcessor.process(javaModel, portType);
        }

        ServiceProcessor serviceProcessor = new ServiceProcessor(env, getWSDLDefinition());
        serviceProcessor.process(javaModel);

        SEIAnnotationProcessor seiAnnotationProcessor = new SEIAnnotationProcessor(env);
        seiAnnotationProcessor.process(javaModel, definition);

        return javaModel;
View Full Code Here

    public void testValidator() {
        try {
            env.put(ToolConstants.CFG_SCHEMA_DIR, getLocation("/schemas"));
            env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl/hello_world_error_attribute.wsdl"));
            WSDL11Validator validator = new WSDL11Validator(null, env);
            validator.isValid();
            fail("validate exception should be thrown");
        } catch (Exception e) {
            // ignore exception
        }
    }
View Full Code Here

    public void testWsdlReferenceValidator() {
        try {
            env.put(ToolConstants.CFG_SCHEMA_DIR, getLocation("/schemas"));
            env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl/hello_world_error_reference.wsdl"));
            WSDL11Validator validator = new WSDL11Validator(null, env);
            validator.isValid();        
            fail("validate exception should be thrown");
        } catch (Exception e) {
            String errMsg = e.getMessage();
            assertTrue("Part reference error should be located ", errMsg.indexOf("line 57 column 54") > -1);
            assertTrue("Part reference error should be located ", errMsg.indexOf("line 69 column 46") > -1);
View Full Code Here

                if (schemaDir == null) {
                    throw new ToolException("Schema search directory should "
                                            + "be defined before validating wsdl.");
                }

                WSDL11Validator wsdlValidator = new WSDL11Validator(null, env);
                if (wsdlValidator.isValid()) {
                    System.out.println("Passed Validation : Valid WSDL ");
                }
            }
        } catch (ToolException ex) {
            System.err.println("Error : " + ex.getMessage());
View Full Code Here

    public void process() throws ToolException {
    }

    public void validateWSDL() throws ToolException {
        if (env.validateWSDL()) {
            WSDL11Validator validator = new WSDL11Validator(this.wsdlDefinition, this.env);
            validator.isValid();
        }
    }
View Full Code Here

                List<FormalArgument> args,
                String template,
                Token templateToken) // for error location
    {
    //System.out.println("STGroup.compile: "+enclosingTemplateName);
    Compiler c = new Compiler(this);
    return c.compile(srcName, name, args, template, templateToken);
  }
View Full Code Here

                     CharStream templateStream)
  {
    String template = templateStream.substring(0, templateStream.size() - 1);
    String templateName = Misc.getFileNameNoSuffix(unqualifiedFileName);
    String fullyQualifiedTemplateName = prefix + templateName;
    CompiledST impl = new Compiler(this).compile(fullyQualifiedTemplateName, template);
    CommonToken nameT = new CommonToken(STLexer.SEMI); // Seems like a hack, best I could come up with.
    nameT.setInputStream(templateStream);
    rawDefineTemplate(fullyQualifiedTemplateName, impl, nameT);
    impl.defineImplicitlyDefinedTemplates(this);
    return impl;
View Full Code Here

                List<FormalArgument> args,
                String template,
                Token templateToken) // for error location
    {
    //System.out.println("STGroup.compile: "+enclosingTemplateName);
    Compiler c = new Compiler(this);
    return c.compile(srcName, name, args, template, templateToken);
  }
View Full Code Here

  @Override
    public void setUp() { org.stringtemplate.v4.compiler.Compiler.subtemplateCount = 0; }

    @Test public void testAttr() throws Exception {
        String template = "hi <name>";
        CompiledST code = new Compiler().compile(template);
        String asmExpected =
            "write_str 0, " +
            "load_attr 1, " +
            "write";
        String asmResult = code.instrs();
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.tools.processors.wsdl2.compiler.Compiler

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.