示例#1
0
        public RegistryPackageType(string id, string name, string[] eiScheme, string[] eiValue, string[] eiId,
                                   string[] eiRegistryObject, string[] eiName, SlotType[] slots, ClassificationType[] classifications,
                                   string status)
        {
            this.Id = id;

            this.Name = new InternationalStringType();
            this.Name.LocalizedString = new LocalizedStringType[1];
            this.Name.LocalizedString[0] = new LocalizedStringType();
            this.Name.LocalizedString[0].Value = name;

            this.Status = status;

            ExternalIdentifierType ei = null;
            this.ExternalIdentifier = new ExternalIdentifierType[eiScheme.Length];
            for (int i = 0; i < eiScheme.Length; i++)
            {
                ei = new ExternalIdentifierType(eiScheme[i], eiValue[i], eiId[i], eiRegistryObject[i], eiName[i]);
                this.ExternalIdentifier[i] = ei;
            }

            if (slots != null)
            {
                this.Slot = slots;
            }

            if (classifications != null)
            {
                this.Classification = classifications;
            }
        }
示例#2
0
        public RegistryPackageType(string id, string name, string[] eiScheme, string[] eiValue, string[] eiId,
                                   string[] eiRegistryObject, string[] eiName, SlotType[] slots, ClassificationType[] classifications,
                                   string status)
        {
            this.Id = id;

            this.Name = new InternationalStringType();
            this.Name.LocalizedString          = new LocalizedStringType[1];
            this.Name.LocalizedString[0]       = new LocalizedStringType();
            this.Name.LocalizedString[0].Value = name;

            this.Status = status;

            ExternalIdentifierType ei = null;

            this.ExternalIdentifier = new ExternalIdentifierType[eiScheme.Length];
            for (int i = 0; i < eiScheme.Length; i++)
            {
                ei = new ExternalIdentifierType(eiScheme[i], eiValue[i], eiId[i], eiRegistryObject[i], eiName[i]);
                this.ExternalIdentifier[i] = ei;
            }

            if (slots != null)
            {
                this.Slot = slots;
            }

            if (classifications != null)
            {
                this.Classification = classifications;
            }
        }
示例#3
0
        /// <summary>
        /// Creates a new array of XDS ExternalIdentifier objects
        /// </summary>
        /// <param name="eiScheme">Array of Schemes for the External Identifier</param>
        /// <param name="eiValue">Array of Values for the External Identifier</param>
        /// <param name="eiName">Array of Names for the External Identifier</param>
        /// <returns>Returns the new array of XDS ExternalIdentifier objects</returns>
        public static ExternalIdentifierType[] CreateEIDs(string[] eiScheme, string[] eiValue, string[] eiName,
            string[] eiId, string[] registryObject)
        {
            ExternalIdentifierType ei = null;
            ExternalIdentifierType[] result = new ExternalIdentifierType[eiScheme.Length];
            for (int i = 0; i < eiScheme.Length; i++)
            {
                ei = new ExternalIdentifierType();
                ei.IdentificationScheme = eiScheme[i];
                ei.Id = eiId[i];
                ei.Value = eiValue[i];
                ei.Name = new InternationalStringType();
                ei.Name.LocalizedString = new LocalizedStringType[1];
                ei.Name.LocalizedString[0] = new LocalizedStringType();
                ei.Name.LocalizedString[0].Value = eiName[i];
                ei.RegistryObject = registryObject[i];

                result[i] = ei;
            }

            return result;
        }