Examples of ModuleConfModel


Examples of cn.javass.xgen.genconf.vo.ModuleConfModel

*/
public class ListJspValueFields implements Visitor {

    public Object visitTemplateElement(TemplateElement element) {
     
        ModuleConfModel moduleConf = element.getModuleConf();
        String domainFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("domainFields")).getValues();
        String moduleName = ((ExtendConfModel)moduleConf.getMapExtends().get("moduleName")).getValue();
        StringBuffer buffer = new StringBuffer("");
       
        for(int i = 0; i < domainFields.length; i++)
            buffer.append((new StringBuilder("<td>${")).append(moduleName + ".").append(domainFields[i]).append("}</td>\n\t").toString());

View Full Code Here

Examples of cn.javass.xgen.genconf.vo.ModuleConfModel

*/
public class UpdateJspFields implements Visitor {

    public Object visitTemplateElement(TemplateElement element)
    {
        ModuleConfModel moduleConf = element.getModuleConf();
        String moduleName = ((ExtendConfModel)moduleConf.getMapExtends().get("moduleName")).getValue();
        String domainFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("domainFields")).getValues();
        String domainFieldsNames[] = ((ExtendConfModel)moduleConf.getMapExtends().get("domainFieldsNames")).getValues();
        StringBuffer buffer = new StringBuffer("");
        for(int i = 0; i < domainFields.length; i += 2)
        {
            buffer.append("<tr>\n\t");
            buffer.append((new StringBuilder("<td>")).append(domainFieldsNames[i]).append("</td>\n\t").toString());
View Full Code Here

Examples of cn.javass.xgen.genconf.vo.ModuleConfModel

public class DomainProperty implements Visitor
{

    public Object visitTemplateElement(TemplateElement element) {
     
        ModuleConfModel moduleConf = element.getModuleConf();
        String domainFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("domainFields")).getValues();
        String domainFieldsTypes[] = ((ExtendConfModel)moduleConf.getMapExtends().get("domainFieldsTypes")).getValues();
        StringBuffer buffer = new StringBuffer("");
       
        for(int i = 0; i < domainFields.length; i++)
            buffer.append((new StringBuilder("private ")).append(domainFieldsTypes[i]).append(" ").append(domainFields[i]).append(";\n\t").toString());
View Full Code Here

Examples of cn.javass.xgen.genconf.vo.ModuleConfModel

*/
public class QueryModelProperty implements Visitor {

    public Object visitTemplateElement(TemplateElement element) {
     
        ModuleConfModel moduleConf = element.getModuleConf();
        String domainFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("queryModelForDomainFields")).getValues();
        String domainFieldsTypes[] = ((ExtendConfModel)moduleConf.getMapExtends().get("queryModelForDomainFieldsTypes")).getValues();
        StringBuffer buffer = new StringBuffer("");
       
        for(int i = 0; i < domainFields.length; i++) {
          if(domainFields[i] != null && domainFields[i].trim().length() != 0)
                buffer.append((new StringBuilder("private ")).append(domainFieldsTypes[i]).append(" ").append(domainFields[i]).append(";\n\t").toString());
View Full Code Here

Examples of cn.javass.xgen.genconf.vo.ModuleConfModel

*/
public class DomainPropertyGetterSetter implements Visitor {

    public Object visitTemplateElement(TemplateElement element) {
     
        ModuleConfModel moduleConf = element.getModuleConf();
        String domainFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("domainFields")).getValues();
        String domainFieldsTypes[] = ((ExtendConfModel)moduleConf.getMapExtends().get("domainFieldsTypes")).getValues();
        StringBuffer buffer = new StringBuffer("");
       
        for(int i = 0; i < domainFields.length; i++)
        {
            buffer.append((new StringBuilder("public void set")).append(domainFields[i].substring(0, 1).toUpperCase()).append(domainFields[i].substring(1)).append("(").append(domainFieldsTypes[i]).append(" obj) {\n\t\t").toString());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.