Package net.sf.minuteProject.configuration.bean

Examples of net.sf.minuteProject.configuration.bean.Model


        new DatabaseIO().write(database, filename);
  }
 
  private String getFileSourceName(DataModel dataModel) {
    FileSource fileSource = dataModel.getFileSource();
    Model model = dataModel.getModel();
      String filename = null;
      String filedir = null;
      String version = dataModel.getModel().getVersion();
      String defaultName = model.getName();
      if (version==null)
        defaultName = defaultName+"-"+version;
      if (fileSource!=null) {
        filename = fileSource.getName();
        filedir = fileSource.getDir();
View Full Code Here


    Table table = (Table)bean;
    return FormatUtils.firstUpperCase(table.getDatabase().getDataModel().getModel().getName())+"FitnesseWiki"+getAppender(template);
  }
 
  public static String getRenderingModelPackageName(Template template, GeneratorBean bean) {
    Model model = (Model)bean;
    return FormatUtils.firstUpperCase(model.getName())+"FitnesseWiki"+getAppender(template);
  }
View Full Code Here

    }
    return null
  }
 
  public static String getEntityAfterRootPackage (Table table, Template template, String targetTemplateName) {
    Model model = table.getDatabase().getDataModel().getModel();
    String modelRootPackage = ModelUtils.getModelRootPackage(model);
    String packageName = CommonUtils.getEntityLevelTemplateFullPath(model, table, template, targetTemplateName);
    return StringUtils.removeStart(packageName, modelRootPackage+".");
  }
View Full Code Here

    }
    return null;
  }

  public static String getPresentationEntityPackageAccessRoles (Package pack) {
    Model model = pack.getBusinessPackage().getBusinessModel().getModel();
    Map<String, String> map = new Hashtable<String, String>();
    List<Table> tables = pack.getListOfTables();
   
    if (getPresentationEntityPackageAccessRoles(tables, map, model)==null)
      return null;
View Full Code Here

      System.exit(1);
    }
    config = args[0];
    XmlGenerator generator = new XmlGenerator(config);
    Configuration configuration = (Configuration) generator.load();
    Model model = configuration.getModel();
    generator.setModel(model);
    generator.loadModel(model);
    generator.loadTarget(model.getConfiguration(), model.getConfiguration()
        .getTarget());
    generator.setBaseElement (configuration);
    generator.generate(model.getConfiguration().getTarget());
  }
View Full Code Here

      choosenTechnology = TechnologyCatalogUtils.getPublishedTechnology(targetTechnology, getCatalogDir());
    return choosenTechnology;
  }

  private Model getModel() {
    Model model = new Model();
    model.setDataModel(getDataModel());
//    model.setWebServiceModel(getWebServiceModel());
    model.setName(modelName);
    model.setPackageRoot(rootpackage);
    model.setVersion(getVersion());
    model.setBusinessModel(getBusinessModel());
    return model;
  }
View Full Code Here

    Configuration configuration = (Configuration) load();
    generate(configuration);   
  }
 
  protected void generate (Configuration configuration) throws MinuteProjectException {
    Model model = configuration.getModel();
    setModel(model);
    load(model);
//    applyConventions(model);
//    applyLimitations(model);
    if (hasTarget())
      loadAndGenerate(model.getConfiguration().getTarget());
    if (hasTargets())
      loadAndGenerate(model.getConfiguration().getTargets());
  }
View Full Code Here

    Configuration configuration = (Configuration) load();
    generate(configuration);   
  }
 
  protected void generate (Configuration configuration) throws MinuteProjectException {
    Model model = getEnrichedModel(configuration);
//    configuration.getModel();
//    setModel(model);
//    loadModel(model);
//    applyConventions(model);
//    applyLimitations(model);
    if (hasTarget())
      loadAndGenerate(model.getConfiguration().getTarget());
    if (hasTargets())
      loadAndGenerate(model.getConfiguration().getTargets());
  }
View Full Code Here

    if (hasTargets())
      loadAndGenerate(model.getConfiguration().getTargets());
  }
 
  public Model getEnrichedModel (Configuration configuration) {
    Model model = configuration.getModel();
    setModel(model);
    loadModel(model);
    applyConventions(model);
    applyLimitations(model);
    return model;
View Full Code Here

TOP

Related Classes of net.sf.minuteProject.configuration.bean.Model

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.