Package net.sf.minuteProject.configuration.bean

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


    }
    return getClassName(pack, templateTarget);
  }

  public static String getTemplateClassName (Model model, Template template, String targetTemplateName) {
    Template templateTarget = getTargetTemplate(template, targetTemplateName);
    if (templateTarget==null) {
      logger.debug("ERROR on config file : missing "+targetTemplateName);
      return "ERROR on config file : missing "+targetTemplateName;
    }
    return getClassName(model, templateTarget);
View Full Code Here


//    return template;
  }
 
  public static Template getTemplate (Target target, String name) {
    for (TemplateTarget templateTarget : target.getTemplateTargets()) {
      Template template = templateTarget.getTemplate(name);
      if (template != null)
        return template;
    }
    return null;
 
View Full Code Here

    String filename = getFileName(template, model);
    return FormatUtils.getDirFromPackage(classpathName)+"/"+filename;
  }
 
  public static String getArtifactRelativePathDirAndFullName(Table table, String templateName) {
    Template template = getTemplate(table.getDatabase().getDataModel().getModel().getConfiguration(), templateName);
    return getArtifactRelativePathDirAndFullName(template, table);
  }
View Full Code Here

    Template template = getTemplate(table.getDatabase().getDataModel().getModel().getConfiguration(), templateName);
    return getArtifactRelativePathDirAndFullName(template, table);
  }
 
  public static String getArtifactRelativePathDirAndFullName(Model model, String templateName) {
    Template template = getTemplate(model.getConfiguration(), templateName);
    return getArtifactRelativePathDirAndFullName(template, model);
  }
View Full Code Here

    Template template = getTemplate(model.getConfiguration(), templateName);
    return getArtifactRelativePathDirAndFullName(template, model);
  }

  public static String getArtifactFullClasspath(Table table, String templateName) {
    Template template = getTemplate(getModel(table).getConfiguration(), templateName);
    return getEntityLevelTemplateFullPath(getModel(table), table, template, templateName);
  }
View Full Code Here

  public static String getArtifactFullClasspath(Model model, String templateName) {
    return getLevelTemplateFullPath(model, getTemplate(model.getConfiguration(), templateName), templateName);
 
 
  public static String getTemplateArtifactName (Model model, String templateName) {
    Template template = getTemplate(model.getConfiguration(), templateName);
    return getFileName(template, model);
  }
View Full Code Here

    Template template = getTemplate(model.getConfiguration(), templateName);
    return getFileName(template, model);
  }
 
  public static String getTemplateArtifactName (Table table, String templateName) {
    Template template = getTemplate(getModel(table).getConfiguration(), templateName);
    return getFileName(template, table);
  }
View Full Code Here

    Template template = getTemplate(getModel(table).getConfiguration(), templateName);
    return getFileName(template, table);
  }
 
  public static String getTemplateArtifactMainName (Table table, String templateName) {
    Template template = getTemplate(getModel(table).getConfiguration(), templateName);
    return getFileMainName(template, table);
  }
View Full Code Here

    Template template = getTemplate(getModel(table).getConfiguration(), templateName);
    return getFileMainName(template, table);
  }
 
  public static String getTemplateArtifactDirName (Model model, String templateName) {
    Template template = getTemplate(model.getConfiguration(), templateName);
    return FormatUtils.getDirFromPackage(getPackageName(model, template));
  }
View Full Code Here

    }
    return null;
  }

  private static String getEnumTemplateType(Template template, Column column) {
    Template t = getEnumTemplateDependencyAvailable(template);
    if (t != null)
      return CommonUtils.getClassName(column, t);
    return null;
  }
View Full Code Here

TOP

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

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.