public PartyRelationshipDocumentation(XmlNode xmlNode)
        {
            XmlNode masterAgreementNode = xmlNode.SelectSingleNode("masterAgreement");

            if (masterAgreementNode != null)
            {
                if (masterAgreementNode.Attributes["href"] != null || masterAgreementNode.Attributes["id"] != null)
                {
                    if (masterAgreementNode.Attributes["id"] != null)
                    {
                        masterAgreementIDRef_ = masterAgreementNode.Attributes["id"].Value;
                        MasterAgreement ob = new MasterAgreement(masterAgreementNode);
                        IDManager.SetID(masterAgreementIDRef_, ob);
                    }
                    else if (masterAgreementNode.Attributes["href"] != null)
                    {
                        masterAgreementIDRef_ = masterAgreementNode.Attributes["href"].Value;
                    }
                    else
                    {
                        masterAgreement_ = new MasterAgreement(masterAgreementNode);
                    }
                }
                else
                {
                    masterAgreement_ = new MasterAgreement(masterAgreementNode);
                }
            }


            XmlNode creditSupportAgreementNode = xmlNode.SelectSingleNode("creditSupportAgreement");

            if (creditSupportAgreementNode != null)
            {
                if (creditSupportAgreementNode.Attributes["href"] != null || creditSupportAgreementNode.Attributes["id"] != null)
                {
                    if (creditSupportAgreementNode.Attributes["id"] != null)
                    {
                        creditSupportAgreementIDRef_ = creditSupportAgreementNode.Attributes["id"].Value;
                        CreditSupportAgreement ob = new CreditSupportAgreement(creditSupportAgreementNode);
                        IDManager.SetID(creditSupportAgreementIDRef_, ob);
                    }
                    else if (creditSupportAgreementNode.Attributes["href"] != null)
                    {
                        creditSupportAgreementIDRef_ = creditSupportAgreementNode.Attributes["href"].Value;
                    }
                    else
                    {
                        creditSupportAgreement_ = new CreditSupportAgreement(creditSupportAgreementNode);
                    }
                }
                else
                {
                    creditSupportAgreement_ = new CreditSupportAgreement(creditSupportAgreementNode);
                }
            }


            XmlNode agreementNode = xmlNode.SelectSingleNode("agreement");

            if (agreementNode != null)
            {
                if (agreementNode.Attributes["href"] != null || agreementNode.Attributes["id"] != null)
                {
                    if (agreementNode.Attributes["id"] != null)
                    {
                        agreementIDRef_ = agreementNode.Attributes["id"].Value;
                        GenericAgreement ob = new GenericAgreement(agreementNode);
                        IDManager.SetID(agreementIDRef_, ob);
                    }
                    else if (agreementNode.Attributes["href"] != null)
                    {
                        agreementIDRef_ = agreementNode.Attributes["href"].Value;
                    }
                    else
                    {
                        agreement_ = new GenericAgreement(agreementNode);
                    }
                }
                else
                {
                    agreement_ = new GenericAgreement(agreementNode);
                }
            }
        }
コード例 #2
0
        public PartyRelationshipDocumentation(XmlNode xmlNode)
        {
            XmlNodeList masterAgreementNodeList = xmlNode.SelectNodes("masterAgreement");

            if (masterAgreementNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in masterAgreementNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        masterAgreementIDRef = item.Attributes["id"].Name;
                        MasterAgreement ob = MasterAgreement();
                        IDManager.SetID(masterAgreementIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        masterAgreementIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        masterAgreement = new MasterAgreement(item);
                    }
                }
            }


            XmlNodeList creditSupportAgreementNodeList = xmlNode.SelectNodes("creditSupportAgreement");

            if (creditSupportAgreementNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in creditSupportAgreementNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        creditSupportAgreementIDRef = item.Attributes["id"].Name;
                        CreditSupportAgreement ob = CreditSupportAgreement();
                        IDManager.SetID(creditSupportAgreementIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        creditSupportAgreementIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        creditSupportAgreement = new CreditSupportAgreement(item);
                    }
                }
            }


            XmlNodeList agreementNodeList = xmlNode.SelectNodes("agreement");

            if (agreementNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in agreementNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        agreementIDRef = item.Attributes["id"].Name;
                        GenericAgreement ob = GenericAgreement();
                        IDManager.SetID(agreementIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        agreementIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        agreement = new GenericAgreement(item);
                    }
                }
            }
        }
 public PartyRelationshipDocumentation(XmlNode xmlNode)
 {
     XmlNode masterAgreementNode = xmlNode.SelectSingleNode("masterAgreement");
     
     if (masterAgreementNode != null)
     {
         if (masterAgreementNode.Attributes["href"] != null || masterAgreementNode.Attributes["id"] != null) 
         {
             if (masterAgreementNode.Attributes["id"] != null) 
             {
                 masterAgreementIDRef_ = masterAgreementNode.Attributes["id"].Value;
                 MasterAgreement ob = new MasterAgreement(masterAgreementNode);
                 IDManager.SetID(masterAgreementIDRef_, ob);
             }
             else if (masterAgreementNode.Attributes["href"] != null)
             {
                 masterAgreementIDRef_ = masterAgreementNode.Attributes["href"].Value;
             }
             else
             {
                 masterAgreement_ = new MasterAgreement(masterAgreementNode);
             }
         }
         else
         {
             masterAgreement_ = new MasterAgreement(masterAgreementNode);
         }
     }
     
 
     XmlNode creditSupportAgreementNode = xmlNode.SelectSingleNode("creditSupportAgreement");
     
     if (creditSupportAgreementNode != null)
     {
         if (creditSupportAgreementNode.Attributes["href"] != null || creditSupportAgreementNode.Attributes["id"] != null) 
         {
             if (creditSupportAgreementNode.Attributes["id"] != null) 
             {
                 creditSupportAgreementIDRef_ = creditSupportAgreementNode.Attributes["id"].Value;
                 CreditSupportAgreement ob = new CreditSupportAgreement(creditSupportAgreementNode);
                 IDManager.SetID(creditSupportAgreementIDRef_, ob);
             }
             else if (creditSupportAgreementNode.Attributes["href"] != null)
             {
                 creditSupportAgreementIDRef_ = creditSupportAgreementNode.Attributes["href"].Value;
             }
             else
             {
                 creditSupportAgreement_ = new CreditSupportAgreement(creditSupportAgreementNode);
             }
         }
         else
         {
             creditSupportAgreement_ = new CreditSupportAgreement(creditSupportAgreementNode);
         }
     }
     
 
     XmlNode agreementNode = xmlNode.SelectSingleNode("agreement");
     
     if (agreementNode != null)
     {
         if (agreementNode.Attributes["href"] != null || agreementNode.Attributes["id"] != null) 
         {
             if (agreementNode.Attributes["id"] != null) 
             {
                 agreementIDRef_ = agreementNode.Attributes["id"].Value;
                 GenericAgreement ob = new GenericAgreement(agreementNode);
                 IDManager.SetID(agreementIDRef_, ob);
             }
             else if (agreementNode.Attributes["href"] != null)
             {
                 agreementIDRef_ = agreementNode.Attributes["href"].Value;
             }
             else
             {
                 agreement_ = new GenericAgreement(agreementNode);
             }
         }
         else
         {
             agreement_ = new GenericAgreement(agreementNode);
         }
     }
     
 
 }
 public PartyRelationshipDocumentation(XmlNode xmlNode)
 {
     XmlNodeList masterAgreementNodeList = xmlNode.SelectNodes("masterAgreement");
     if (masterAgreementNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in masterAgreementNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 masterAgreementIDRef = item.Attributes["id"].Name;
                 MasterAgreement ob = MasterAgreement();
                 IDManager.SetID(masterAgreementIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 masterAgreementIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 masterAgreement = new MasterAgreement(item);
             }
         }
     }
     
 
     XmlNodeList creditSupportAgreementNodeList = xmlNode.SelectNodes("creditSupportAgreement");
     if (creditSupportAgreementNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in creditSupportAgreementNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 creditSupportAgreementIDRef = item.Attributes["id"].Name;
                 CreditSupportAgreement ob = CreditSupportAgreement();
                 IDManager.SetID(creditSupportAgreementIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 creditSupportAgreementIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 creditSupportAgreement = new CreditSupportAgreement(item);
             }
         }
     }
     
 
     XmlNodeList agreementNodeList = xmlNode.SelectNodes("agreement");
     if (agreementNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in agreementNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 agreementIDRef = item.Attributes["id"].Name;
                 GenericAgreement ob = GenericAgreement();
                 IDManager.SetID(agreementIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 agreementIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 agreement = new GenericAgreement(item);
             }
         }
     }
     
 
 }