Examples of ModuleConfModel


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

    {
    }

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

        return buffer.toString();
View Full Code Here

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

    {
    }

    public Object visitTemplateElement(TemplateElement element)
    {
        ModuleConfModel moduleConf = element.getModuleConf();
        String voFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("voFields")).getValues();
        StringBuffer buffer = new StringBuffer("\"Model\"+this.getClass().getName()+\"[");
        for(int i = 0; i < voFields.length; i++)
        {
            String fName = voFields[i];
            buffer.append((new StringBuilder()).append(fName).append("=\" + this.get").append(fName.substring(0, 1).toUpperCase()).append(fName.substring(1)).append("() + \",").toString());
View Full Code Here

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

    {
    }

    public Object visitTemplateElement(TemplateElement element)
    {
        ModuleConfModel moduleConf = element.getModuleConf();
        String voFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("voFields")).getValues();
        String voFieldsTypes[] = ((ExtendConfModel)moduleConf.getMapExtends().get("voFieldsTypes")).getValues();
        String voFieldsNames[] = ((ExtendConfModel)moduleConf.getMapExtends().get("colunName_CN")).getValues();
        StringBuffer buffer = new StringBuffer("");
        int count = 0;
        for(int i = 0; i < voFields.length; i++)
            if(!isNumber(voFieldsTypes[i]))
            {
                if(count == 0)
                    buffer.append("<tr>\n\t");
                buffer.append((new StringBuilder("<td>")).append(voFieldsNames[i]).append("</td>\n\t").toString());
                buffer.append((new StringBuilder("<td><input type=\"text\" name=\"qm.")).append(voFields[i]).append("\" ></td>\n\t").toString());
                if(++count == 2)
                {
                    buffer.append("</tr>\n");
                    count = 0;
                }
            }

        count = 0;
        String qmVoFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("qmVoFields")).getValues();
        String qmVoFieldsNames[] = ((ExtendConfModel)moduleConf.getMapExtends().get("qmColunName_CN")).getValues();
        for(int i = 0; i < voFields.length; i++)
            if(isNumber(voFieldsTypes[i]))
            {
                buffer.append("<tr>\n\t");
                int qmIndex = qmHasField((new StringBuilder(String.valueOf(voFields[i]))).append("2").toString(), qmVoFields);
View Full Code Here

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

    {
    }

    public Object visitTemplateElement(TemplateElement element)
    {
        ModuleConfModel moduleConf = element.getModuleConf();
        String voFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("qmVoFields")).getValues();
        String voFieldsTypes[] = ((ExtendConfModel)moduleConf.getMapExtends().get("qmVoFieldsTypes")).getValues();
        StringBuffer buffer = new StringBuffer("");
        for(int i = 0; i < voFields.length; i++)
            if(voFields[i] != null && voFields[i].trim().length() != 0)
            {
                buffer.append((new StringBuilder("public void set")).append(voFields[i].substring(0, 1).toUpperCase()).append(voFields[i].substring(1)).append("(").append(voFieldsTypes[i]).append(" obj){\n\t\t").toString());
View Full Code Here

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

    {
    }

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

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

    {
    }

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

        return buffer.toString();
View Full Code Here

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

    {
    }

    public Object visitTemplateElement(TemplateElement element)
    {
        ModuleConfModel moduleConf = element.getModuleConf();
        String voFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("qmVoFields")).getValues();
        StringBuffer buffer = new StringBuffer("\"Model\"+this.getClass().getName()+\",\"+super.toString()+\" ,[");
        for(int i = 0; i < voFields.length; i++)
            if(voFields[i] != null && voFields[i].trim().length() != 0)
            {
                String fName = voFields[i];
View Full Code Here

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

    {
    }

    public Object visitTemplateElement(TemplateElement element)
    {
        ModuleConfModel moduleConf = element.getModuleConf();
        String voFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("voFields")).getValues();
        String voFieldsTypes[] = ((ExtendConfModel)moduleConf.getMapExtends().get("voFieldsTypes")).getValues();
        StringBuffer buffer = new StringBuffer("");
        for(int i = 0; i < voFields.length; i++)
        {
            buffer.append((new StringBuilder("public void set")).append(voFields[i].substring(0, 1).toUpperCase()).append(voFields[i].substring(1)).append("(").append(voFieldsTypes[i]).append(" obj){\n\t\t").toString());
            buffer.append((new StringBuilder("this.")).append(voFields[i]).append(" = obj;\n\t").toString());
View Full Code Here

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

    {
    }

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

        buffer.append("<td>\n\t");
View Full Code Here

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

    {
    }

    public Object visitTemplateElement(TemplateElement element)
    {
        ModuleConfModel moduleConf = element.getModuleConf();
        String voFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("voFields")).getValues();
        String voFieldsNames[] = ((ExtendConfModel)moduleConf.getMapExtends().get("colunName_CN")).getValues();
        StringBuffer buffer = new StringBuffer("");
        for(int i = 0; i < voFields.length; i += 2)
        {
            buffer.append("<tr>\n\t");
            buffer.append((new StringBuilder("<td>")).append(voFieldsNames[i]).append("</td>\n\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.