Exemplo n.º 1
0
        public Excel_swapLeg(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");

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


            XmlNode excel_fixedRateSwapLegNode = xmlNode.SelectSingleNode("excel_fixedRateSwapLeg");

            if (excel_fixedRateSwapLegNode != null)
            {
                if (excel_fixedRateSwapLegNode.Attributes["href"] != null || excel_fixedRateSwapLegNode.Attributes["id"] != null)
                {
                    if (excel_fixedRateSwapLegNode.Attributes["id"] != null)
                    {
                        excel_fixedRateSwapLegIDRef_ = excel_fixedRateSwapLegNode.Attributes["id"].Value;
                        Excel_fixedRateSwapLeg ob = new Excel_fixedRateSwapLeg(excel_fixedRateSwapLegNode);
                        IDManager.SetID(excel_fixedRateSwapLegIDRef_, ob);
                    }
                    else if (excel_fixedRateSwapLegNode.Attributes["href"] != null)
                    {
                        excel_fixedRateSwapLegIDRef_ = excel_fixedRateSwapLegNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_fixedRateSwapLeg_ = new Excel_fixedRateSwapLeg(excel_fixedRateSwapLegNode);
                    }
                }
                else
                {
                    excel_fixedRateSwapLeg_ = new Excel_fixedRateSwapLeg(excel_fixedRateSwapLegNode);
                }
            }


            XmlNode excel_vanillaFloatingRateSwapLegNode = xmlNode.SelectSingleNode("excel_vanillaFloatingRateSwapLeg");

            if (excel_vanillaFloatingRateSwapLegNode != null)
            {
                if (excel_vanillaFloatingRateSwapLegNode.Attributes["href"] != null || excel_vanillaFloatingRateSwapLegNode.Attributes["id"] != null)
                {
                    if (excel_vanillaFloatingRateSwapLegNode.Attributes["id"] != null)
                    {
                        excel_vanillaFloatingRateSwapLegIDRef_ = excel_vanillaFloatingRateSwapLegNode.Attributes["id"].Value;
                        Excel_vanillaFloatingRateSwapLeg ob = new Excel_vanillaFloatingRateSwapLeg(excel_vanillaFloatingRateSwapLegNode);
                        IDManager.SetID(excel_vanillaFloatingRateSwapLegIDRef_, ob);
                    }
                    else if (excel_vanillaFloatingRateSwapLegNode.Attributes["href"] != null)
                    {
                        excel_vanillaFloatingRateSwapLegIDRef_ = excel_vanillaFloatingRateSwapLegNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_vanillaFloatingRateSwapLeg_ = new Excel_vanillaFloatingRateSwapLeg(excel_vanillaFloatingRateSwapLegNode);
                    }
                }
                else
                {
                    excel_vanillaFloatingRateSwapLeg_ = new Excel_vanillaFloatingRateSwapLeg(excel_vanillaFloatingRateSwapLegNode);
                }
            }


            XmlNode excel_structuredSwapLegNode = xmlNode.SelectSingleNode("excel_structuredSwapLeg");

            if (excel_structuredSwapLegNode != null)
            {
                if (excel_structuredSwapLegNode.Attributes["href"] != null || excel_structuredSwapLegNode.Attributes["id"] != null)
                {
                    if (excel_structuredSwapLegNode.Attributes["id"] != null)
                    {
                        excel_structuredSwapLegIDRef_ = excel_structuredSwapLegNode.Attributes["id"].Value;
                        Excel_structuredSwapLeg ob = new Excel_structuredSwapLeg(excel_structuredSwapLegNode);
                        IDManager.SetID(excel_structuredSwapLegIDRef_, ob);
                    }
                    else if (excel_structuredSwapLegNode.Attributes["href"] != null)
                    {
                        excel_structuredSwapLegIDRef_ = excel_structuredSwapLegNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_structuredSwapLeg_ = new Excel_structuredSwapLeg(excel_structuredSwapLegNode);
                    }
                }
                else
                {
                    excel_structuredSwapLeg_ = new Excel_structuredSwapLeg(excel_structuredSwapLegNode);
                }
            }


            XmlNode excel_creditEventSwapLegNode = xmlNode.SelectSingleNode("excel_creditEventSwapLeg");

            if (excel_creditEventSwapLegNode != null)
            {
                if (excel_creditEventSwapLegNode.Attributes["href"] != null || excel_creditEventSwapLegNode.Attributes["id"] != null)
                {
                    if (excel_creditEventSwapLegNode.Attributes["id"] != null)
                    {
                        excel_creditEventSwapLegIDRef_ = excel_creditEventSwapLegNode.Attributes["id"].Value;
                        Excel_creditEventSwapLeg ob = new Excel_creditEventSwapLeg(excel_creditEventSwapLegNode);
                        IDManager.SetID(excel_creditEventSwapLegIDRef_, ob);
                    }
                    else if (excel_creditEventSwapLegNode.Attributes["href"] != null)
                    {
                        excel_creditEventSwapLegIDRef_ = excel_creditEventSwapLegNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_creditEventSwapLeg_ = new Excel_creditEventSwapLeg(excel_creditEventSwapLegNode);
                    }
                }
                else
                {
                    excel_creditEventSwapLeg_ = new Excel_creditEventSwapLeg(excel_creditEventSwapLegNode);
                }
            }


            XmlNode excel_hifiveSwapLegNode = xmlNode.SelectSingleNode("excel_hifiveSwapLeg");

            if (excel_hifiveSwapLegNode != null)
            {
                if (excel_hifiveSwapLegNode.Attributes["href"] != null || excel_hifiveSwapLegNode.Attributes["id"] != null)
                {
                    if (excel_hifiveSwapLegNode.Attributes["id"] != null)
                    {
                        excel_hifiveSwapLegIDRef_ = excel_hifiveSwapLegNode.Attributes["id"].Value;
                        Excel_hifiveSwapLeg ob = new Excel_hifiveSwapLeg(excel_hifiveSwapLegNode);
                        IDManager.SetID(excel_hifiveSwapLegIDRef_, ob);
                    }
                    else if (excel_hifiveSwapLegNode.Attributes["href"] != null)
                    {
                        excel_hifiveSwapLegIDRef_ = excel_hifiveSwapLegNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_hifiveSwapLeg_ = new Excel_hifiveSwapLeg(excel_hifiveSwapLegNode);
                    }
                }
                else
                {
                    excel_hifiveSwapLeg_ = new Excel_hifiveSwapLeg(excel_hifiveSwapLegNode);
                }
            }
        }
 public Excel_swapLeg(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");
     
     if (excel_typeNode != null)
     {
         if (excel_typeNode.Attributes["href"] != null || excel_typeNode.Attributes["id"] != null) 
         {
             if (excel_typeNode.Attributes["id"] != null) 
             {
                 excel_typeIDRef_ = excel_typeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(excel_typeNode);
                 IDManager.SetID(excel_typeIDRef_, ob);
             }
             else if (excel_typeNode.Attributes["href"] != null)
             {
                 excel_typeIDRef_ = excel_typeNode.Attributes["href"].Value;
             }
             else
             {
                 excel_type_ = new XsdTypeToken(excel_typeNode);
             }
         }
         else
         {
             excel_type_ = new XsdTypeToken(excel_typeNode);
         }
     }
     
 
     XmlNode excel_fixedRateSwapLegNode = xmlNode.SelectSingleNode("excel_fixedRateSwapLeg");
     
     if (excel_fixedRateSwapLegNode != null)
     {
         if (excel_fixedRateSwapLegNode.Attributes["href"] != null || excel_fixedRateSwapLegNode.Attributes["id"] != null) 
         {
             if (excel_fixedRateSwapLegNode.Attributes["id"] != null) 
             {
                 excel_fixedRateSwapLegIDRef_ = excel_fixedRateSwapLegNode.Attributes["id"].Value;
                 Excel_fixedRateSwapLeg ob = new Excel_fixedRateSwapLeg(excel_fixedRateSwapLegNode);
                 IDManager.SetID(excel_fixedRateSwapLegIDRef_, ob);
             }
             else if (excel_fixedRateSwapLegNode.Attributes["href"] != null)
             {
                 excel_fixedRateSwapLegIDRef_ = excel_fixedRateSwapLegNode.Attributes["href"].Value;
             }
             else
             {
                 excel_fixedRateSwapLeg_ = new Excel_fixedRateSwapLeg(excel_fixedRateSwapLegNode);
             }
         }
         else
         {
             excel_fixedRateSwapLeg_ = new Excel_fixedRateSwapLeg(excel_fixedRateSwapLegNode);
         }
     }
     
 
     XmlNode excel_vanillaFloatingRateSwapLegNode = xmlNode.SelectSingleNode("excel_vanillaFloatingRateSwapLeg");
     
     if (excel_vanillaFloatingRateSwapLegNode != null)
     {
         if (excel_vanillaFloatingRateSwapLegNode.Attributes["href"] != null || excel_vanillaFloatingRateSwapLegNode.Attributes["id"] != null) 
         {
             if (excel_vanillaFloatingRateSwapLegNode.Attributes["id"] != null) 
             {
                 excel_vanillaFloatingRateSwapLegIDRef_ = excel_vanillaFloatingRateSwapLegNode.Attributes["id"].Value;
                 Excel_vanillaFloatingRateSwapLeg ob = new Excel_vanillaFloatingRateSwapLeg(excel_vanillaFloatingRateSwapLegNode);
                 IDManager.SetID(excel_vanillaFloatingRateSwapLegIDRef_, ob);
             }
             else if (excel_vanillaFloatingRateSwapLegNode.Attributes["href"] != null)
             {
                 excel_vanillaFloatingRateSwapLegIDRef_ = excel_vanillaFloatingRateSwapLegNode.Attributes["href"].Value;
             }
             else
             {
                 excel_vanillaFloatingRateSwapLeg_ = new Excel_vanillaFloatingRateSwapLeg(excel_vanillaFloatingRateSwapLegNode);
             }
         }
         else
         {
             excel_vanillaFloatingRateSwapLeg_ = new Excel_vanillaFloatingRateSwapLeg(excel_vanillaFloatingRateSwapLegNode);
         }
     }
     
 
     XmlNode excel_structuredSwapLegNode = xmlNode.SelectSingleNode("excel_structuredSwapLeg");
     
     if (excel_structuredSwapLegNode != null)
     {
         if (excel_structuredSwapLegNode.Attributes["href"] != null || excel_structuredSwapLegNode.Attributes["id"] != null) 
         {
             if (excel_structuredSwapLegNode.Attributes["id"] != null) 
             {
                 excel_structuredSwapLegIDRef_ = excel_structuredSwapLegNode.Attributes["id"].Value;
                 Excel_structuredSwapLeg ob = new Excel_structuredSwapLeg(excel_structuredSwapLegNode);
                 IDManager.SetID(excel_structuredSwapLegIDRef_, ob);
             }
             else if (excel_structuredSwapLegNode.Attributes["href"] != null)
             {
                 excel_structuredSwapLegIDRef_ = excel_structuredSwapLegNode.Attributes["href"].Value;
             }
             else
             {
                 excel_structuredSwapLeg_ = new Excel_structuredSwapLeg(excel_structuredSwapLegNode);
             }
         }
         else
         {
             excel_structuredSwapLeg_ = new Excel_structuredSwapLeg(excel_structuredSwapLegNode);
         }
     }
     
 
     XmlNode excel_creditEventSwapLegNode = xmlNode.SelectSingleNode("excel_creditEventSwapLeg");
     
     if (excel_creditEventSwapLegNode != null)
     {
         if (excel_creditEventSwapLegNode.Attributes["href"] != null || excel_creditEventSwapLegNode.Attributes["id"] != null) 
         {
             if (excel_creditEventSwapLegNode.Attributes["id"] != null) 
             {
                 excel_creditEventSwapLegIDRef_ = excel_creditEventSwapLegNode.Attributes["id"].Value;
                 Excel_creditEventSwapLeg ob = new Excel_creditEventSwapLeg(excel_creditEventSwapLegNode);
                 IDManager.SetID(excel_creditEventSwapLegIDRef_, ob);
             }
             else if (excel_creditEventSwapLegNode.Attributes["href"] != null)
             {
                 excel_creditEventSwapLegIDRef_ = excel_creditEventSwapLegNode.Attributes["href"].Value;
             }
             else
             {
                 excel_creditEventSwapLeg_ = new Excel_creditEventSwapLeg(excel_creditEventSwapLegNode);
             }
         }
         else
         {
             excel_creditEventSwapLeg_ = new Excel_creditEventSwapLeg(excel_creditEventSwapLegNode);
         }
     }
     
 
     XmlNode excel_hifiveSwapLegNode = xmlNode.SelectSingleNode("excel_hifiveSwapLeg");
     
     if (excel_hifiveSwapLegNode != null)
     {
         if (excel_hifiveSwapLegNode.Attributes["href"] != null || excel_hifiveSwapLegNode.Attributes["id"] != null) 
         {
             if (excel_hifiveSwapLegNode.Attributes["id"] != null) 
             {
                 excel_hifiveSwapLegIDRef_ = excel_hifiveSwapLegNode.Attributes["id"].Value;
                 Excel_hifiveSwapLeg ob = new Excel_hifiveSwapLeg(excel_hifiveSwapLegNode);
                 IDManager.SetID(excel_hifiveSwapLegIDRef_, ob);
             }
             else if (excel_hifiveSwapLegNode.Attributes["href"] != null)
             {
                 excel_hifiveSwapLegIDRef_ = excel_hifiveSwapLegNode.Attributes["href"].Value;
             }
             else
             {
                 excel_hifiveSwapLeg_ = new Excel_hifiveSwapLeg(excel_hifiveSwapLegNode);
             }
         }
         else
         {
             excel_hifiveSwapLeg_ = new Excel_hifiveSwapLeg(excel_hifiveSwapLegNode);
         }
     }
     
 
 }