Ejemplo n.º 1
0
 internal Dependencies(Classes classes, DataTypes dataTypes, Enumerations enumerations)
 {
     All = new[]
     {
         new MetaDependency
         {
             Stereotype           = MetaStereotype.isEquivalentTo,
             SourceClassifierType = dataTypes.Prim,
             TargetClassifierType = dataTypes.Prim,
         },
         new MetaDependency
         {
             Stereotype           = MetaStereotype.isEquivalentTo,
             SourceClassifierType = enumerations.Enum,
             TargetClassifierType = enumerations.Enum,
         },
         new MetaDependency
         {
             Stereotype           = MetaStereotype.isEquivalentTo,
             SourceClassifierType = classes.Cdt,
             TargetClassifierType = classes.Cdt,
         },
         new MetaDependency
         {
             Stereotype           = MetaStereotype.isEquivalentTo,
             SourceClassifierType = classes.Acc,
             TargetClassifierType = classes.Acc,
         },
         new MetaDependency
         {
             Stereotype           = MetaStereotype.isEquivalentTo,
             SourceClassifierType = classes.Bdt,
             TargetClassifierType = classes.Bdt,
         },
         new MetaDependency
         {
             Stereotype           = MetaStereotype.isEquivalentTo,
             SourceClassifierType = classes.Abie,
             TargetClassifierType = classes.Abie,
         },
         new MetaDependency
         {
             Stereotype           = MetaStereotype.basedOn,
             SourceClassifierType = classes.Bdt,
             TargetClassifierType = classes.Cdt,
         },
         new MetaDependency
         {
             Stereotype           = MetaStereotype.basedOn,
             SourceClassifierType = classes.Abie,
             TargetClassifierType = classes.Acc,
         },
     };
 }
 internal EnumerationLiterals(TaggedValues taggedValues, Enumerations enumerations)
 {
     CodelistEntry = new MetaEnumerationLiteral
     {
         Stereotype  = MetaStereotype.CodelistEntry,
         ClassName   = "CodelistEntry",
         Name        = "CodelistEntries",
         Cardinality = MetaCardinality.Many,
         ContainingEnumerationType = enumerations.Enum,
         TaggedValues = new[]
         {
             taggedValues.CodeName,
             taggedValues.Status,
         }
     };
 }
Ejemplo n.º 3
0
        private MetaModel()
        {
            taggedValues = new TaggedValues();

            packages = new Packages(taggedValues);

            enumerations = new Enumerations(taggedValues);
            dataTypes    = new DataTypes(taggedValues);
            classes      = new Classes(taggedValues);
            multiTypes   = new MultiTypes(classes, dataTypes, enumerations);

            attributes              = new Attributes(taggedValues, classes, multiTypes);
            enumerationLiterals     = new EnumerationLiterals(taggedValues, enumerations);
            associations            = new Associations(taggedValues, classes, multiTypes);
            dependencies            = new Dependencies(classes, dataTypes, enumerations);
            attributeDependencies   = new AttributeDependencies(attributes);
            associationDependencies = new AssociationDependencies(associations);

            packageSubPackageRelations = new PackageSubPackageRelations(packages);
            packageClassifierRelations = new PackageClassifierRelations(packages, dataTypes, classes, enumerations);
        }
Ejemplo n.º 4
0
 internal MultiTypes(Classes classes, DataTypes dataTypes, Enumerations enumerations)
 {
     BasicType = new MetaMultiType
     {
         Name        = "BasicType",
         Classifiers = new MetaClassifier[]
         {
             dataTypes.Prim,
             dataTypes.IdScheme,
             enumerations.Enum,
         },
     };
     BieAggregator = new MetaMultiType
     {
         Name        = "BieAggregator",
         Classifiers = new MetaClassifier[]
         {
             classes.Abie,
             classes.Ma,
         },
     };
 }
Ejemplo n.º 5
0
 internal PackageClassifierRelations(Packages packages, DataTypes dataTypes, Classes classes, Enumerations enumerations)
 {
     All = new[]
     {
         new MetaPackageClassifierRelation
         {
             PackageType           = packages.PrimLibrary,
             PackageRole           = "PrimLibrary",
             ClassifierCardinality = MetaCardinality.Many,
             ClassifierType        = dataTypes.Prim,
             ClassifierRole        = "Prims",
         },
         new MetaPackageClassifierRelation
         {
             PackageType           = packages.EnumLibrary,
             PackageRole           = "EnumLibrary",
             ClassifierCardinality = MetaCardinality.Many,
             ClassifierType        = enumerations.Enum,
             ClassifierRole        = "Enums",
         },
         new MetaPackageClassifierRelation
         {
             PackageType           = packages.EnumLibrary,
             PackageRole           = "EnumLibrary",
             ClassifierCardinality = MetaCardinality.Many,
             ClassifierType        = dataTypes.IdScheme,
             ClassifierRole        = "IdSchemes",
         },
         new MetaPackageClassifierRelation
         {
             PackageType           = packages.CdtLibrary,
             PackageRole           = "CdtLibrary",
             ClassifierCardinality = MetaCardinality.Many,
             ClassifierType        = classes.Cdt,
             ClassifierRole        = "Cdts",
         },
         new MetaPackageClassifierRelation
         {
             PackageType           = packages.CcLibrary,
             PackageRole           = "CcLibrary",
             ClassifierCardinality = MetaCardinality.Many,
             ClassifierType        = classes.Acc,
             ClassifierRole        = "Accs",
         },
         new MetaPackageClassifierRelation
         {
             PackageType           = packages.BdtLibrary,
             PackageRole           = "BdtLibrary",
             ClassifierCardinality = MetaCardinality.Many,
             ClassifierType        = classes.Bdt,
             ClassifierRole        = "Bdts",
         },
         new MetaPackageClassifierRelation
         {
             PackageType           = packages.BieLibrary,
             PackageRole           = "BieLibrary",
             ClassifierCardinality = MetaCardinality.Many,
             ClassifierType        = classes.Abie,
             ClassifierRole        = "Abies",
         },
         new MetaPackageClassifierRelation
         {
             PackageType           = packages.DocLibrary,
             PackageRole           = "DocLibrary",
             ClassifierCardinality = MetaCardinality.Many,
             ClassifierType        = classes.Ma,
             ClassifierRole        = "Mas",
         },
     };
 }