Examples of SchemaCompiler


Examples of org.apache.cxf.jaxb.JAXBUtils.SchemaCompiler

        return schemasEls;
    }
   
    private JCodeModel createCodeModel(List<Element> schemaElements, Set<String> type) {
       
        SchemaCompiler compiler = createCompiler(type);

        addSchemas(schemaElements, compiler);
       
        S2JJAXBModel intermediateModel = compiler.bind();
       
        Object elForRun = ReflectionInvokationHandler
            .createProxyWrapper(new InnerErrorListener(),
                            JAXBUtils.getParamClass(compiler, "setErrorListener"));
       
View Full Code Here

Examples of org.apache.cxf.jaxb.JAXBUtils.SchemaCompiler

    }
   
    private JCodeModel createCodeModel(List<SchemaInfo> schemaElements, Set<String> type) {
       

        SchemaCompiler compiler = createCompiler(type);
        addSchemas(schemaElements, compiler);
        for (InputSource is : bindingFiles) {
            compiler.getOptions().addBindFile(is);
        }
       
        Object elForRun = ReflectionInvokationHandler
            .createProxyWrapper(new InnerErrorListener(),
                            JAXBUtils.getParamClass(compiler, "setErrorListener"));
       
        compiler.setErrorListener(elForRun);
        S2JJAXBModel intermediateModel = compiler.bind();
        JCodeModel codeModel = intermediateModel.generateCode(null, elForRun);
        JAXBUtils.logGeneratedClassNames(LOG, codeModel);
        return codeModel;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.