Beispiel #1
0
    custom_domain('SQLDomain',
        name  = 'sql',
        label = "SQL",

        elements = dict(
            table = dict(
                role = 'table',
                objtype = 'table',
                objname       = "SQL Table",
                indextemplate = "pair: %s; SQL table",
                parse         = parse_signature_with_kind('table'),
                fields        = [
                    GroupedField('column',
                        label = "Columns",
                        names = [ 'column', 'col' ]),
                    GroupedField('constraint',
                        label = 'Constraints',
                        names = [ 'constraint', 'con' ]),
                    GroupedField('example',
                        label = 'Examples',
                        names = [ 'example', 'ex' ]),
                ]
            ),

            query = dict(
                role = 'query',
                objtype = 'query',
                objname       = "SQL Query",
                indextemplate = "pair: %s; SQL query",
                parse         = parse_signature_with_kind('query'),
                fields        = [
                    GroupedField('column',
                        label = "Columns",
                        names = [ 'column', 'col' ]),
                    GroupedField('constraint',
                        label = 'Constraints',
                        names = [ 'constraint', 'con' ]),
                    GroupedField('example',
                        label = 'Examples',
                        names = [ 'example', 'ex' ]),
                ]
            ),

            view = dict(
                role = 'view',
                objtype = 'view',
                objname       = "SQL View",
                indextemplate = "pair: %s; SQL view",
                parse         = parse_signature_with_kind('view'),
                fields        = [
                    GroupedField('column',
                        label = "Columns",
                        names = [ 'column', 'col' ]),
                    GroupedField('constraint',
                        label = 'Constraints',
                        names = [ 'constraint', 'con' ]),
                    GroupedField('example',
                        label = 'Examples',
                        names = [ 'example', 'ex' ]),
                ]
            ),

            constraint = dict(
                role = 'constraint',
                objtype = 'constraint',
                objname       = "Constraint",
                indextemplate = "pair: %s; constraint",
                parse         = parse_signature_with_kind('view'),
            ),

        )
    )
Beispiel #2
0
    custom_domain('SEDomain',
        name  = 'se',
        label = "SE",

        elements = dict(

            requirement = dict(
                role = 'requirement',
                objtype = 'requirement',
                objname       = "Requirement",
                indextemplate = "pair: %s; Requirement",
            ),

            question = dict(
                role = 'question',
                objtype = 'question',
                objname       = "Question",
                indextemplate = "pair: %s; Question",
            ),

            hypothesis = dict(
                role = 'hypothesis',
                objtype = 'hypothesis',
                objname       = "Hypothesis",
                indextemplate = "pair: %s; Hypothesis",
            ),

            remark = dict(
                role = 'remark',
                objtype = 'remark',
                objname       = "Remark",
                indextemplate = "pair: %s; Remark",
            ),

            decision = dict(
                role = 'decision',
                objtype = 'decision',
                objname       = "Decision",
                indextemplate = "pair: %s; Decision",
            ),

        )
    )
Beispiel #3
0
    custom_domain('SEDomain',
        name  = 'se',
        label = "SE",

        elements = dict(

            requirement = dict(
                role = 'requirement',
                objtype = 'requirement',
                objname       = "Requirement",
                indextemplate = "pair: %s; Requirement",
            ),

            question = dict(
                role = 'question',
                objtype = 'question',
                objname       = "Question",
                indextemplate = "pair: %s; Question",
            ),

            hypothesis = dict(
                role = 'hypothesis',
                objtype = 'hypothesis',
                objname       = "Hypothesis",
                indextemplate = "pair: %s; Hypothesis",
            ),

            remark = dict(
                role = 'remark',
                objtype = 'remark',
                objname       = "Remark",
                indextemplate = "pair: %s; Remark",
            ),

            decision = dict(
                role = 'decision',
                objtype = 'decision',
                objname       = "Decision",
                indextemplate = "pair: %s; Decision",
            ),

        )
    )
Beispiel #4
0
    custom_domain('SQLDomain',
        name  = 'sql',
        label = "SQL",

        elements = dict(
            table = dict(
                role = 'table',
                objtype = 'table',
                objname       = "SQL Table",
                indextemplate = "pair: %s; SQL table",
                parse         = parse_signature_with_kind('table'),
                fields        = [
                    GroupedField('column',
                        label = "Columns",
                        names = [ 'column', 'col' ]),
                    GroupedField('constraint',
                        label = 'Constraints',
                        names = [ 'constraint', 'con' ]),
                    GroupedField('example',
                        label = 'Examples',
                        names = [ 'example', 'ex' ]),
                ]
            ),

            query = dict(
                role = 'query',
                objtype = 'query',
                objname       = "SQL Query",
                indextemplate = "pair: %s; SQL query",
                parse         = parse_signature_with_kind('query'),
                fields        = [
                    GroupedField('column',
                        label = "Columns",
                        names = [ 'column', 'col' ]),
                    GroupedField('constraint',
                        label = 'Constraints',
                        names = [ 'constraint', 'con' ]),
                    GroupedField('example',
                        label = 'Examples',
                        names = [ 'example', 'ex' ]),
                ]
            ),

            view = dict(
                role = 'view',
                objtype = 'view',
                objname       = "SQL View",
                indextemplate = "pair: %s; SQL view",
                parse         = parse_signature_with_kind('view'),
                fields        = [
                    GroupedField('column',
                        label = "Columns",
                        names = [ 'column', 'col' ]),
                    GroupedField('constraint',
                        label = 'Constraints',
                        names = [ 'constraint', 'con' ]),
                    GroupedField('example',
                        label = 'Examples',
                        names = [ 'example', 'ex' ]),
                ]
            ),

            constraint = dict(
                role = 'constraint',
                objtype = 'constraint',
                objname       = "Constraint",
                indextemplate = "pair: %s; constraint",
                parse         = parse_signature_with_kind('view'),  # TODO check what to do
            ),

        )
    )
Beispiel #5
0
    custom_domain('SEDomain',
        name  = 'se',
        label = "SE",

        elements = dict(

            # ------------------------------------------------------
            #       Requirements models
            # ------------------------------------------------------

            requirement = dict(
                role = 'requirement',
                objtype = 'requirement',
                objname       = "Requirement",
                indextemplate = "pair: %s; Requirement",
            ),

            
            #------------------------------------------------------
            #       Use case models
            #------------------------------------------------------

            actor=dict(
                role='actor',
                objtype='actor',
                objname="actor",
                indextemplate="pair: %s; Actor",
                fields=[
                    GroupedField('super',
                                 label="Super actors",
                                 names=['superactor', 'SuperActor', 'super']),
                    GroupedField('instance',
                                 label="Instances",
                                 names=['instance', 'Instances'])
                ]
            ),

            iactor=dict(
                role='iactor',
                objtype='iactor',
                objname="iactor",
                indextemplate="pair: %s; Instanciated actor",
                fields=[
                    GroupedField('actor',
                                 label="Actor",
                                 names=['actor', 'Actor']),
                ]
            ),


            usecase=dict(
                role='usecase',
                objtype='usecase',
                objname="usecase",
                indextemplate="pair: %s; Usecase",
                fields=[
                    GroupedField('access',
                                 label="Accesses",
                                 names=['access', 'Access', 'a']),
                    GroupedField('actors',
                                 label='Actors',
                                 names=['actors']),
                    GroupedField('interface',
                                 label='Interface',
                                 names=['interface']),
                    GroupedField('scenario',
                                 label='Scenario',
                                 names=['scenario', 'scn']),
                ]
            ),

            iusecase=dict(
                role='iusecase',
                objtype='iusecase',
                objname="iusecase",
                indextemplate="pair: %s; Instanciated usecase",
            ),



            scenario=dict(
                role='scenario',
                objtype='scenario',
                objname="scenario",
                indextemplate="pair: %s; Scenario"
            ),


            # ------------------------------------------------------
            #       Class models
            # ------------------------------------------------------

            classe=dict(
                role='class',
                objtype='class',
                objname='class',
                indextemplate="pair: %s; Class",
                fields=[
                    GroupedField('superclass',
                                 label="Superclasses",
                                 names=['superclass', 'Superclass', 'super']),
                    GroupedField('attribute',
                                 label="Attributes",
                                 names=['attribute', 'Attribute', 'att']),
                    GroupedField('operation',
                                 label='Operations',
                                 names=['operation', 'Operation', 'op']),
                    GroupedField('invariant',
                                 label='Invariants',
                                 names=['invariant', 'Invariant', 'inv']),
                ]
            ),

            attribute=dict(
                role='attribute',
                objtype='attribute',
                objname='attribute',
                indextemplate="pair: %s; Attribute",
            ),

            association=dict(
                role='association',
                objtype='association',
                objname="association",
                indextemplate="pair: %s; Association",
                fields=[
                    GroupedField('from',
                                 label="From",
                                 names=['from','From']),
                    GroupedField('to',
                                 label="To",
                                 names=['to', 'To']),
                    GroupedField('role',
                                 label="role",
                                 names=['role', 'Role']),
                ]
            ),

            role=dict(
                role='role',
                objtype='role',
                objname='role',
                indextemplate="pair: %s; Role",
            ),

            associationclass=dict(
                role='associationclass',
                objtype='associationclass',
                objname="associationclass",
                indextemplate="pair: %s; AssociationClass",
            ),

            # ------------------------------------------------------
            #       Quality models
            # ------------------------------------------------------

            check=dict(
                role='check',
                objtype='check',
                objname="check",
                indextemplate="pair: %s; Check",
            ),

            # ------------------------------------------------------
            #       Suivi
            # ------------------------------------------------------

            question = dict(
                role = 'question',
                objtype = 'question',
                objname       = "Question",
                indextemplate = "pair: %s; Question",
            ),

            hypothesis = dict(
                role = 'hypothesis',
                objtype = 'hypothesis',
                objname       = "Hypothesis",
                indextemplate = "pair: %s; Hypothesis",
            ),

            remark = dict(
                role = 'remark',
                objtype = 'remark',
                objname       = "Remark",
                indextemplate = "pair: %s; Remark",
            ),

            decision = dict(
                role = 'decision',
                objtype = 'decision',
                objname       = "Decision",
                indextemplate = "pair: %s; Decision",
            ),

        )
    )