コード例 #1
0
        public Excel_protectionTerms(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode excel_creditEventsNode = xmlNode.SelectSingleNode("excel_creditEvents");

            if (excel_creditEventsNode != null)
            {
                if (excel_creditEventsNode.Attributes["href"] != null || excel_creditEventsNode.Attributes["id"] != null)
                {
                    if (excel_creditEventsNode.Attributes["id"] != null)
                    {
                        excel_creditEventsIDRef_ = excel_creditEventsNode.Attributes["id"].Value;
                        Excel_creditEvents ob = new Excel_creditEvents(excel_creditEventsNode);
                        IDManager.SetID(excel_creditEventsIDRef_, ob);
                    }
                    else if (excel_creditEventsNode.Attributes["href"] != null)
                    {
                        excel_creditEventsIDRef_ = excel_creditEventsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_creditEvents_ = new Excel_creditEvents(excel_creditEventsNode);
                    }
                }
                else
                {
                    excel_creditEvents_ = new Excel_creditEvents(excel_creditEventsNode);
                }
            }


            XmlNode excel_obligationsNode = xmlNode.SelectSingleNode("excel_obligations");

            if (excel_obligationsNode != null)
            {
                if (excel_obligationsNode.Attributes["href"] != null || excel_obligationsNode.Attributes["id"] != null)
                {
                    if (excel_obligationsNode.Attributes["id"] != null)
                    {
                        excel_obligationsIDRef_ = excel_obligationsNode.Attributes["id"].Value;
                        Excel_obligations ob = new Excel_obligations(excel_obligationsNode);
                        IDManager.SetID(excel_obligationsIDRef_, ob);
                    }
                    else if (excel_obligationsNode.Attributes["href"] != null)
                    {
                        excel_obligationsIDRef_ = excel_obligationsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_obligations_ = new Excel_obligations(excel_obligationsNode);
                    }
                }
                else
                {
                    excel_obligations_ = new Excel_obligations(excel_obligationsNode);
                }
            }


            XmlNode accrualCouponNode = xmlNode.SelectSingleNode("accrualCoupon");

            if (accrualCouponNode != null)
            {
                if (accrualCouponNode.Attributes["href"] != null || accrualCouponNode.Attributes["id"] != null)
                {
                    if (accrualCouponNode.Attributes["id"] != null)
                    {
                        accrualCouponIDRef_ = accrualCouponNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(accrualCouponNode);
                        IDManager.SetID(accrualCouponIDRef_, ob);
                    }
                    else if (accrualCouponNode.Attributes["href"] != null)
                    {
                        accrualCouponIDRef_ = accrualCouponNode.Attributes["href"].Value;
                    }
                    else
                    {
                        accrualCoupon_ = new XsdTypeBoolean(accrualCouponNode);
                    }
                }
                else
                {
                    accrualCoupon_ = new XsdTypeBoolean(accrualCouponNode);
                }
            }
        }
コード例 #2
0
 public Excel_protectionTerms(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode excel_creditEventsNode = xmlNode.SelectSingleNode("excel_creditEvents");
     
     if (excel_creditEventsNode != null)
     {
         if (excel_creditEventsNode.Attributes["href"] != null || excel_creditEventsNode.Attributes["id"] != null) 
         {
             if (excel_creditEventsNode.Attributes["id"] != null) 
             {
                 excel_creditEventsIDRef_ = excel_creditEventsNode.Attributes["id"].Value;
                 Excel_creditEvents ob = new Excel_creditEvents(excel_creditEventsNode);
                 IDManager.SetID(excel_creditEventsIDRef_, ob);
             }
             else if (excel_creditEventsNode.Attributes["href"] != null)
             {
                 excel_creditEventsIDRef_ = excel_creditEventsNode.Attributes["href"].Value;
             }
             else
             {
                 excel_creditEvents_ = new Excel_creditEvents(excel_creditEventsNode);
             }
         }
         else
         {
             excel_creditEvents_ = new Excel_creditEvents(excel_creditEventsNode);
         }
     }
     
 
     XmlNode excel_obligationsNode = xmlNode.SelectSingleNode("excel_obligations");
     
     if (excel_obligationsNode != null)
     {
         if (excel_obligationsNode.Attributes["href"] != null || excel_obligationsNode.Attributes["id"] != null) 
         {
             if (excel_obligationsNode.Attributes["id"] != null) 
             {
                 excel_obligationsIDRef_ = excel_obligationsNode.Attributes["id"].Value;
                 Excel_obligations ob = new Excel_obligations(excel_obligationsNode);
                 IDManager.SetID(excel_obligationsIDRef_, ob);
             }
             else if (excel_obligationsNode.Attributes["href"] != null)
             {
                 excel_obligationsIDRef_ = excel_obligationsNode.Attributes["href"].Value;
             }
             else
             {
                 excel_obligations_ = new Excel_obligations(excel_obligationsNode);
             }
         }
         else
         {
             excel_obligations_ = new Excel_obligations(excel_obligationsNode);
         }
     }
     
 
     XmlNode accrualCouponNode = xmlNode.SelectSingleNode("accrualCoupon");
     
     if (accrualCouponNode != null)
     {
         if (accrualCouponNode.Attributes["href"] != null || accrualCouponNode.Attributes["id"] != null) 
         {
             if (accrualCouponNode.Attributes["id"] != null) 
             {
                 accrualCouponIDRef_ = accrualCouponNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(accrualCouponNode);
                 IDManager.SetID(accrualCouponIDRef_, ob);
             }
             else if (accrualCouponNode.Attributes["href"] != null)
             {
                 accrualCouponIDRef_ = accrualCouponNode.Attributes["href"].Value;
             }
             else
             {
                 accrualCoupon_ = new XsdTypeBoolean(accrualCouponNode);
             }
         }
         else
         {
             accrualCoupon_ = new XsdTypeBoolean(accrualCouponNode);
         }
     }
     
 
 }