Package com.asakusafw.modelgen.emitter

Examples of com.asakusafw.modelgen.emitter.AnyModelEntityEmitter


        LOG.info("{}個のモデルを出力しています: {}",
                total,
                configuration.getOutput());

        ModelFactory factory = Models.getModelFactory();
        AnyModelEntityEmitter modelEmitter = new AnyModelEntityEmitter(
                factory,
                configuration.getOutput(),
                configuration.getBasePackage(),
                configuration.getHeaderComments());

        ModelInputEmitter tsvInEmitter = new ModelInputEmitter(
                factory,
                configuration.getOutput(),
                configuration.getBasePackage(),
                configuration.getHeaderComments());

        ModelOutputEmitter tsvOutEmitter = new ModelOutputEmitter(
                factory,
                configuration.getOutput(),
                configuration.getBasePackage(),
                configuration.getHeaderComments());

        int successCount = 0;
        int failedCount = 0;
        for (ModelDescription model : models) {
            LOG.info("モデル{}を出力しています (残り{}個のモデル)",
                    model.getReference(),
                    (total - successCount - failedCount));
            try {
                modelEmitter.emit(model);
                tsvInEmitter.emit(model);
                tsvOutEmitter.emit(model);
                successCount++;
            } catch (Exception e) {
                LOG.error(
View Full Code Here

TOP

Related Classes of com.asakusafw.modelgen.emitter.AnyModelEntityEmitter

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.