Exemplo n.º 1
0
        public static MohawkCollege.EHR.gpmr.COR.TypeReference Parse(DatatypeRef dtr)
        {
            MohawkCollege.EHR.gpmr.COR.TypeReference retVal = new MohawkCollege.EHR.gpmr.COR.TypeReference();

            retVal.Name = dtr.Name.Contains(".") ? dtr.Name.Substring(0, dtr.Name.IndexOf(".")) : dtr.Name;
            retVal.Flavor = dtr.Name.Contains(".") ? dtr.Name : null; // JF: Fixed the removal of the . 

            if (dtr.SupplierBindingArgumentDatatype != null && dtr.SupplierBindingArgumentDatatype.Count > 0)
            {
                retVal.GenericSupplier = new List<MohawkCollege.EHR.gpmr.COR.TypeReference>();
                foreach (DatatypeRef sba in dtr.SupplierBindingArgumentDatatype)
                    retVal.GenericSupplier.Add(TypeReferenceParser.Parse(sba));
            }

            return retVal;
        }
Exemplo n.º 2
0
        public static MohawkCollege.EHR.gpmr.COR.TypeReference Parse(DatatypeRef dtr)
        {
            MohawkCollege.EHR.gpmr.COR.TypeReference retVal = new MohawkCollege.EHR.gpmr.COR.TypeReference();

            retVal.Name   = dtr.Name.Contains(".") ? dtr.Name.Substring(0, dtr.Name.IndexOf(".")) : dtr.Name;
            retVal.Flavor = dtr.Name.Contains(".") ? dtr.Name : null; // JF: Fixed the removal of the .

            if (dtr.SupplierBindingArgumentDatatype != null && dtr.SupplierBindingArgumentDatatype.Count > 0)
            {
                retVal.GenericSupplier = new List <MohawkCollege.EHR.gpmr.COR.TypeReference>();
                foreach (DatatypeRef sba in dtr.SupplierBindingArgumentDatatype)
                {
                    retVal.GenericSupplier.Add(TypeReferenceParser.Parse(sba));
                }
            }

            return(retVal);
        }