public Excel_fixedBond_subtype(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_fixedBond_constantRateNode = xmlNode.SelectSingleNode("excel_fixedBond_constantRate");
     
     if (excel_fixedBond_constantRateNode != null)
     {
         if (excel_fixedBond_constantRateNode.Attributes["href"] != null || excel_fixedBond_constantRateNode.Attributes["id"] != null) 
         {
             if (excel_fixedBond_constantRateNode.Attributes["id"] != null) 
             {
                 excel_fixedBond_constantRateIDRef_ = excel_fixedBond_constantRateNode.Attributes["id"].Value;
                 Excel_fixedBond_constantRate ob = new Excel_fixedBond_constantRate(excel_fixedBond_constantRateNode);
                 IDManager.SetID(excel_fixedBond_constantRateIDRef_, ob);
             }
             else if (excel_fixedBond_constantRateNode.Attributes["href"] != null)
             {
                 excel_fixedBond_constantRateIDRef_ = excel_fixedBond_constantRateNode.Attributes["href"].Value;
             }
             else
             {
                 excel_fixedBond_constantRate_ = new Excel_fixedBond_constantRate(excel_fixedBond_constantRateNode);
             }
         }
         else
         {
             excel_fixedBond_constantRate_ = new Excel_fixedBond_constantRate(excel_fixedBond_constantRateNode);
         }
     }
     
 
 }
Ejemplo n.º 2
0
        public Excel_fixedBond_subtype(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_fixedBond_constantRateNode = xmlNode.SelectSingleNode("excel_fixedBond_constantRate");

            if (excel_fixedBond_constantRateNode != null)
            {
                if (excel_fixedBond_constantRateNode.Attributes["href"] != null || excel_fixedBond_constantRateNode.Attributes["id"] != null)
                {
                    if (excel_fixedBond_constantRateNode.Attributes["id"] != null)
                    {
                        excel_fixedBond_constantRateIDRef_ = excel_fixedBond_constantRateNode.Attributes["id"].Value;
                        Excel_fixedBond_constantRate ob = new Excel_fixedBond_constantRate(excel_fixedBond_constantRateNode);
                        IDManager.SetID(excel_fixedBond_constantRateIDRef_, ob);
                    }
                    else if (excel_fixedBond_constantRateNode.Attributes["href"] != null)
                    {
                        excel_fixedBond_constantRateIDRef_ = excel_fixedBond_constantRateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_fixedBond_constantRate_ = new Excel_fixedBond_constantRate(excel_fixedBond_constantRateNode);
                    }
                }
                else
                {
                    excel_fixedBond_constantRate_ = new Excel_fixedBond_constantRate(excel_fixedBond_constantRateNode);
                }
            }
        }