bridgepoint/ooaofooa.py
def build_component(self, name=None, derived_attributes=False):
        '''
        Instantiate and build a component from ooaofooa named *name* as a
        pyxtuml model. Classes, associations, attributes and unique identifers,
        i.e. O_OBJ, R_REL, O_ATTR in ooaofooa, are defined in the resulting
        pyxtuml model.
        
        Optionally, control whether *derived attributes* shall be mapped into
        the resulting pyxtuml model as attributes or not.
        
        Futhermore, if no *name* is provided, the entire content of the ooaofooa
        model is instantiated into the pyxtuml model.
        '''
        mm = self.build_metamodel()
        c_c = mm.select_any('C_C', where(Name=name))
        if c_c:
            return mk_component(mm, c_c, derived_attributes)
        elif name:
            raise OoaOfOoaException('Unable to find the component %s' % name)
        else:
            return mk_component(mm, c_c, derived_attributes)
def build_component(self, name=None, derived_attributes=False):
        '''
        Instantiate and build a component from ooaofooa named *name* as a
        pyxtuml model. Classes, associations, attributes and unique identifers,
        i.e. O_OBJ, R_REL, O_ATTR in ooaofooa, are defined in the resulting
        pyxtuml model.
        
        Optionally, control whether *derived attributes* shall be mapped into
        the resulting pyxtuml model as attributes or not.
        
        Futhermore, if no *name* is provided, the entire content of the ooaofooa
        model is instantiated into the pyxtuml model.
        '''
        mm = self.build_metamodel()
        c_c = mm.select_any('C_C', where(Name=name))
        if c_c:
            return mk_component(mm, c_c, derived_attributes)
        elif name:
            raise OoaOfOoaException('Unable to find the component %s' % name)
        else:
            return mk_component(mm, c_c, derived_attributes)
def build_component ( self , name = None , derived_attributes = False ) : mm = self . build_metamodel ( ) c_c = mm . select_any ( 'C_C' , where ( Name = name ) ) if c_c : return mk_component ( mm , c_c , derived_attributes ) elif name : raise OoaOfOoaException ( 'Unable to find the component %s' % name ) else : return mk_component ( mm , c_c , derived_attributes )
Instantiate and build a component from ooaofooa named *name* as a
        pyxtuml model. Classes, associations, attributes and unique identifers,
        i.e. O_OBJ, R_REL, O_ATTR in ooaofooa, are defined in the resulting
        pyxtuml model.
        
        Optionally, control whether *derived attributes* shall be mapped into
        the resulting pyxtuml model as attributes or not.
        
        Futhermore, if no *name* is provided, the entire content of the ooaofooa
        model is instantiated into the pyxtuml model.
Instantiate and build a component from ooaofooa named * name * as a pyxtuml model . Classes associations attributes and unique identifers i . e . O_OBJ R_REL O_ATTR in ooaofooa are defined in the resulting pyxtuml model . Optionally control whether * derived attributes * shall be mapped into the resulting pyxtuml model as attributes or not . Futhermore if no * name * is provided the entire content of the ooaofooa model is instantiated into the pyxtuml model .