Exemplo n.º 1
0
        /// <summary>
        /// Create a flat CMET Ref
        /// </summary>
        private ModelElement CreateFlatCMETRef(SerializedCommonModelElementRef serializedCommonModelElementRef, GlobalStaticModel gsm)
        {
            CommonModelElementRef retVal = new CommonModelElementRef()
            {
                Annotations              = serializedCommonModelElementRef.Annotations,
                BusinessName             = serializedCommonModelElementRef.BusinessName,
                CmetName                 = serializedCommonModelElementRef.CmetName ?? serializedCommonModelElementRef.Name,
                DerivedFrom              = serializedCommonModelElementRef.DerivedFrom,
                IsAbstract               = serializedCommonModelElementRef.IsAbstract,
                Name                     = serializedCommonModelElementRef.Name,
                SortKey                  = serializedCommonModelElementRef.SortKey,
                SupplierStructuralDomain = serializedCommonModelElementRef.SupplierStructuralDomain
            };

            retVal.Argument = new List <ClassBindingArgument>(10);
            return(retVal);
        }
Exemplo n.º 2
0
 private void ProcessClassElement(ClassElement c, Dictionary <string, Package> derivationSuppliers)
 {
     if (c.Choice is MohawkCollege.EHR.HL7v3.MIF.MIF20.StaticModel.Flat.Class) // todo: Finish this with CMET and Template Parameter
     {
         ClassParser.ClassParameterInfo pi = new ClassParser.ClassParameterInfo();
         pi.Class = c.Choice as MohawkCollege.EHR.HL7v3.MIF.MIF20.StaticModel.Flat.Class;
         pi.CompilerRepository  = ClassRepository;
         pi.DerivationSuppliers = derivationSuppliers;
         pi.MifContainer        = this.staticModel;
         pi.ScopedPackageName   = staticModel.PackageLocation.Artifact == ArtifactKind.RIM ? "RIM" : staticModel.PackageLocation.ToString(MifCompiler.NAME_FORMAT);
         ClassParser.Parse(pi);
     }
     else if (c.Choice is StaticModelClassTemplateParameter)
     {
         TypeParameter parm = TypeParameterParser.Parse(c.Choice as StaticModelClassTemplateParameter);
         templateParameters.Add(parm.ParameterName, parm);
     }
     else if (c.Choice is CommonModelElementRef)
     {
         // Process a common model element reference
         CommonModelElementRef cmetRef = c.Choice as CommonModelElementRef;
     }
 }