Package cn.guoyukun.pdm2pdf.model.json

Examples of cn.guoyukun.pdm2pdf.model.json.JDomain


    InputStream is = Helper.class.getResourceAsStream(config);
    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.json.JDomain

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.