Package cn.guoyukun.pdm2pdf.model

Examples of cn.guoyukun.pdm2pdf.model.Domain


        .setVersion("V" + r.getVersion());

    // 打开文档,生成封面
    g.newPdf(pdf).openPdf().addOutline().addCover();
    // 生成业务域内容
      Domain domain = Helper.loadDomainConfig(domainCode);
      g.addDomainContent(domain);
    // 关闭文档
    g.closePdf();
  }
View Full Code Here


    if (is == null) {
      throw new FileNotFoundException(config + "文件不存在!");
    }
    JsonReader jr = new JsonReader(new InputStreamReader(is));
    JDomain jDomain = GSON.fromJson(jr, JDomain.class);
    Domain domain = new Domain();
    domain.setCode(domainCode);
    domain.setName(jDomain.getName());
    List<Biz> bizs = new ArrayList<Biz>(jDomain.getBizs().size());
    for (String bizCode : jDomain.getBizs()) {
      Biz biz = loadBizConfig(bizCode);
      bizs.add(biz);
    }
    domain.setBizs(bizs);
    return domain;
  }
View Full Code Here

TOP

Related Classes of cn.guoyukun.pdm2pdf.model.Domain

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.