xtuml/load.py
def populate_classes(self, metamodel):
        '''
        Populate a *metamodel* with classes previously encountered from input.
        '''
        for stmt in self.statements:
            if isinstance(stmt, CreateClassStmt):
                metamodel.define_class(stmt.kind, stmt.attributes)
def populate_classes(self, metamodel):
        '''
        Populate a *metamodel* with classes previously encountered from input.
        '''
        for stmt in self.statements:
            if isinstance(stmt, CreateClassStmt):
                metamodel.define_class(stmt.kind, stmt.attributes)
def populate_classes ( self , metamodel ) : for stmt in self . statements : if isinstance ( stmt , CreateClassStmt ) : metamodel . define_class ( stmt . kind , stmt . attributes )
Populate a *metamodel* with classes previously encountered from input.
Populate a * metamodel * with classes previously encountered from input .