Changeset 8005 for mauRepo


Ignore:
Timestamp:
05/12/11 17:19:35 (8 years ago)
Author:
mnagni
Message:
 
Location:
mauRepo/xmi2sqlalchemy/trunk/src/main/java/ndg/services/newmoon
Files:
1 added
3 edited

Legend:

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

    r8004 r8005  
    113113                        return STEREOTYPE.Union; 
    114114 
     115                if (stereotype.getName().equalsIgnoreCase(STEREOTYPE.Metaclass.name())) 
     116                        return STEREOTYPE.Metaclass; 
     117                 
    115118                return STEREOTYPE.None; 
    116119        } 
  • mauRepo/xmi2sqlalchemy/trunk/src/main/java/ndg/services/newmoon/velocity/python/InnerGenerateTablesClosure.java

    r8004 r8005  
    4747import ndg.services.newmoon.velocity.python.support.AttributeModel; 
    4848import ndg.services.newmoon.velocity.python.support.ClassModel; 
     49import ndg.services.newmoon.velocity.python.support.ClassModel.STEREOTYPE; 
    4950import ndg.services.newmoon.velocity.python.support.ForeignKey; 
    5051import ndg.services.newmoon.velocity.python.support.ImportCollector; 
     
    219220                return (classModel.isCodeList()  
    220221                                || classModel.isEnumeration()  
    221                                 || checkIfIsPrimitiveAttribute(classModel)); 
     222                                || checkIfIsPrimitiveAttribute(classModel) 
     223                                || classModel.getStereotype().equals(STEREOTYPE.Metaclass)); 
    222224        } 
    223225 
  • mauRepo/xmi2sqlalchemy/trunk/src/main/java/ndg/services/newmoon/velocity/python/support/ClassModel.java

    r7998 r8005  
    4545public class ClassModel implements ExportModel { 
    4646        public enum STEREOTYPE { 
    47                 Enumeration, CodeList, Union, DataType, Boolean, None; 
     47                Enumeration, CodeList, Union, DataType, Boolean, None, Metaclass; 
    4848        } 
    4949         
Note: See TracChangeset for help on using the changeset viewer.