Пример #1
0
        public ProtectionPart(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode payRecieveNode = xmlNode.SelectSingleNode("payRecieve");

            if (payRecieveNode != null)
            {
                if (payRecieveNode.Attributes["href"] != null || payRecieveNode.Attributes["id"] != null)
                {
                    if (payRecieveNode.Attributes["id"] != null)
                    {
                        payRecieveIDRef_ = payRecieveNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(payRecieveNode);
                        IDManager.SetID(payRecieveIDRef_, ob);
                    }
                    else if (payRecieveNode.Attributes["href"] != null)
                    {
                        payRecieveIDRef_ = payRecieveNode.Attributes["href"].Value;
                    }
                    else
                    {
                        payRecieve_ = new XsdTypeToken(payRecieveNode);
                    }
                }
                else
                {
                    payRecieve_ = new XsdTypeToken(payRecieveNode);
                }
            }


            XmlNode referenceInformationListNode = xmlNode.SelectSingleNode("referenceInformationList");

            if (referenceInformationListNode != null)
            {
                if (referenceInformationListNode.Attributes["href"] != null || referenceInformationListNode.Attributes["id"] != null)
                {
                    if (referenceInformationListNode.Attributes["id"] != null)
                    {
                        referenceInformationListIDRef_ = referenceInformationListNode.Attributes["id"].Value;
                        ReferenceInformationList ob = new ReferenceInformationList(referenceInformationListNode);
                        IDManager.SetID(referenceInformationListIDRef_, ob);
                    }
                    else if (referenceInformationListNode.Attributes["href"] != null)
                    {
                        referenceInformationListIDRef_ = referenceInformationListNode.Attributes["href"].Value;
                    }
                    else
                    {
                        referenceInformationList_ = new ReferenceInformationList(referenceInformationListNode);
                    }
                }
                else
                {
                    referenceInformationList_ = new ReferenceInformationList(referenceInformationListNode);
                }
            }


            XmlNode protectionTermsNode = xmlNode.SelectSingleNode("protectionTerms");

            if (protectionTermsNode != null)
            {
                if (protectionTermsNode.Attributes["href"] != null || protectionTermsNode.Attributes["id"] != null)
                {
                    if (protectionTermsNode.Attributes["id"] != null)
                    {
                        protectionTermsIDRef_ = protectionTermsNode.Attributes["id"].Value;
                        ProtectionTerms ob = new ProtectionTerms(protectionTermsNode);
                        IDManager.SetID(protectionTermsIDRef_, ob);
                    }
                    else if (protectionTermsNode.Attributes["href"] != null)
                    {
                        protectionTermsIDRef_ = protectionTermsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        protectionTerms_ = new ProtectionTerms(protectionTermsNode);
                    }
                }
                else
                {
                    protectionTerms_ = new ProtectionTerms(protectionTermsNode);
                }
            }
        }
 public ProtectionPart(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode payRecieveNode = xmlNode.SelectSingleNode("payRecieve");
     
     if (payRecieveNode != null)
     {
         if (payRecieveNode.Attributes["href"] != null || payRecieveNode.Attributes["id"] != null) 
         {
             if (payRecieveNode.Attributes["id"] != null) 
             {
                 payRecieveIDRef_ = payRecieveNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(payRecieveNode);
                 IDManager.SetID(payRecieveIDRef_, ob);
             }
             else if (payRecieveNode.Attributes["href"] != null)
             {
                 payRecieveIDRef_ = payRecieveNode.Attributes["href"].Value;
             }
             else
             {
                 payRecieve_ = new XsdTypeToken(payRecieveNode);
             }
         }
         else
         {
             payRecieve_ = new XsdTypeToken(payRecieveNode);
         }
     }
     
 
     XmlNode referenceInformationListNode = xmlNode.SelectSingleNode("referenceInformationList");
     
     if (referenceInformationListNode != null)
     {
         if (referenceInformationListNode.Attributes["href"] != null || referenceInformationListNode.Attributes["id"] != null) 
         {
             if (referenceInformationListNode.Attributes["id"] != null) 
             {
                 referenceInformationListIDRef_ = referenceInformationListNode.Attributes["id"].Value;
                 ReferenceInformationList ob = new ReferenceInformationList(referenceInformationListNode);
                 IDManager.SetID(referenceInformationListIDRef_, ob);
             }
             else if (referenceInformationListNode.Attributes["href"] != null)
             {
                 referenceInformationListIDRef_ = referenceInformationListNode.Attributes["href"].Value;
             }
             else
             {
                 referenceInformationList_ = new ReferenceInformationList(referenceInformationListNode);
             }
         }
         else
         {
             referenceInformationList_ = new ReferenceInformationList(referenceInformationListNode);
         }
     }
     
 
     XmlNode protectionTermsNode = xmlNode.SelectSingleNode("protectionTerms");
     
     if (protectionTermsNode != null)
     {
         if (protectionTermsNode.Attributes["href"] != null || protectionTermsNode.Attributes["id"] != null) 
         {
             if (protectionTermsNode.Attributes["id"] != null) 
             {
                 protectionTermsIDRef_ = protectionTermsNode.Attributes["id"].Value;
                 ProtectionTerms ob = new ProtectionTerms(protectionTermsNode);
                 IDManager.SetID(protectionTermsIDRef_, ob);
             }
             else if (protectionTermsNode.Attributes["href"] != null)
             {
                 protectionTermsIDRef_ = protectionTermsNode.Attributes["href"].Value;
             }
             else
             {
                 protectionTerms_ = new ProtectionTerms(protectionTermsNode);
             }
         }
         else
         {
             protectionTerms_ = new ProtectionTerms(protectionTermsNode);
         }
     }
     
 
 }