Package com.force.sdk.codegen.writer

Examples of com.force.sdk.codegen.writer.WriterProvider


        assert template != null;
       
        TemplateInjector templateInjector = getTemplateInjector();
        assert templateInjector != null;
       
        WriterProvider writerProvider = getWriterProvider(destDir);
        assert writerProvider != null;
       
        // Write filtered data to the template
        int numGeneratedCode = 0;
       
        for (DescribeSObjectResult dsr : objectFilter.filter(allOrgObjects)) {
            // Before we write a new source file, make sure the template is reset
            template.reset();
           
            // Inject the data into the template
            templateInjector.inject(userInfo, dsr, fieldFilter.filter(dsr), template);
           
            Writer writer = null;
            try {
                writer = writerProvider.getWriter(userInfo, dsr);
                template.write(writer);
                numGeneratedCode++;
            } finally {
                if (writer != null) writer.close();
            }
View Full Code Here

TOP

Related Classes of com.force.sdk.codegen.writer.WriterProvider

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.