Changeset 8544 for mauRepo


Ignore:
Timestamp:
29/08/12 21:46:09 (7 years ago)
Author:
mnagni
Message:
 
Location:
mauRepo/xmi2sqlalchemy/trunk/src
Files:
2 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • mauRepo/xmi2sqlalchemy/trunk/src/main/java/ndg/services/newmoon/XMIParser.java

    r8455 r8544  
    6565 * 
    6666 */ 
    67 public class UmlToRDBM extends XMIParserAbstract { 
    68          
    69         private final Logger logger = LoggerFactory.getLogger(UmlToRDBM.class); 
     67public class XMIParser extends XMIParserAbstract { 
     68         
     69        private final Logger logger = LoggerFactory.getLogger(XMIParser.class); 
    7070         
    7171        public void execute(Map<NewmoonManager.NM_PARAM, String> params) throws NewmoonException { 
     
    121121                        substitutesSuperAttributes(cms); 
    122122                                 
    123                          
    124                         //Generates the python classes 
    125                         GenerateFromClassModel gen = new GenerateFromClassModel(new GenerateClasses(outDir, umlArchive)); 
    126                         gen.execute(umlArchive.getClassModel()); 
    127  
    128                         //Generates the sqlalchemy tables 
    129                         GenerateTables gen2 = new GenerateTables(outDir, umlArchive, additionalClasses); 
    130                         gen2.execute(umlModel); 
     123                        //generates library and schema for RDBM 
     124                        XMIToRDBM.execute(outDir, umlArchive, additionalClasses, umlModel); 
     125 
    131126                } catch (Exception e) { 
    132127                        e.printStackTrace(); 
  • mauRepo/xmi2sqlalchemy/trunk/src/test/java/ngn/services/newmoon/DOMParser.java

    r8243 r8544  
    99import ndg.services.newmoon.NewmoonManager; 
    1010import ndg.services.newmoon.NmParser; 
    11 import ndg.services.newmoon.UmlToRDBM; 
     11import ndg.services.newmoon.XMIParser; 
    1212import ndg.services.newmoon.velocity.python.GenerateModuleHelper; 
    1313 
     
    6262                params.put(NewmoonManager.NM_PARAM.OUTPUT_DIR, "encode"); 
    6363                 
    64                 UmlToRDBM umlToDB = new UmlToRDBM(); 
     64                XMIParser umlToDB = new XMIParser(); 
    6565                try { 
    6666                        umlToDB.execute(params); 
  • mauRepo/xmi2sqlalchemy/trunk/src/test/java/ngn/services/newmoon/TestsTester.java

    r8146 r8544  
    1616import ndg.services.newmoon.NmParser; 
    1717import ndg.services.newmoon.UMLElementsArchive; 
    18 import ndg.services.newmoon.UmlToRDBM; 
     18import ndg.services.newmoon.XMIParser; 
    1919import ndg.services.newmoon.collect.CollectClasses; 
    2020import ndg.services.newmoon.velocity.python.GenerateClasses; 
     
    9090                                 
    9191                 
    92                 UmlToRDBM umlToDB = new UmlToRDBM(); 
     92                XMIParser umlToDB = new XMIParser(); 
    9393                try { 
    9494                        umlToDB.execute(params); 
Note: See TracChangeset for help on using the changeset viewer.