Package cn.org.rapid_framework.generator.util

Examples of cn.org.rapid_framework.generator.util.XMLHelper


    private static NodeData getTableConfigXmlNodeData0(String tableSqlName) {
      try {
        File file = FileHelper.getFileByClassLoader("generator_config/table/"+tableSqlName+".xml");
        GLogger.trace("getTableConfigXml() load nodeData by tableSqlName:"+tableSqlName+".xml");
        return new XMLHelper().parseXML(file);
      }catch(Exception e) {//ignore
        GLogger.trace("not found config xml for table:"+tableSqlName+", exception:"+e);
        return null;
      }
    }
View Full Code Here


      IOHelper.close(in, null);
    }
  }
 
    public TableConfig parseFromXML(InputStream inputStream) throws SAXException, IOException {
        NodeData nodeData = new XMLHelper().parseXML(inputStream);
        TableConfig config = new TableConfig();
       
        // table
        BeanHelper.copyProperties(config, nodeData.attributes,true);
       
View Full Code Here

    private static NodeData getTableConfigXmlNodeData0(String tableSqlName) {
      try {
        File file = FileHelper.getFileByClassLoader("generator_config/table/"+tableSqlName+".xml");
        GLogger.trace("getTableConfigXml() load nodeData by tableSqlName:"+tableSqlName+".xml");
        return new XMLHelper().parseXML(file);
      }catch(Exception e) {//ignore
        GLogger.trace("not found config xml for table:"+tableSqlName+", exception:"+e);
        return null;
      }
    }
View Full Code Here

    private static NodeData getTableConfigXmlNodeData0(String tableSqlName) {
      try {
        File file = FileHelper.getFileByClassLoader("generator_config/table/"+tableSqlName+".xml");
        GLogger.trace("getTableConfigXml() load nodeData by tableSqlName:"+tableSqlName+".xml");
        return new XMLHelper().parseXML(file);
      }catch(Exception e) {//ignore
        GLogger.trace("not found config xml for table:"+tableSqlName+", exception:"+e);
        return null;
      }
    }
View Full Code Here

TOP

Related Classes of cn.org.rapid_framework.generator.util.XMLHelper

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.