public Excel_underlyingInfo_para(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 krCodeNode = xmlNode.SelectSingleNode("krCode");

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


            XmlNode underNameNode = xmlNode.SelectSingleNode("underName");

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


            XmlNode modelNode = xmlNode.SelectSingleNode("model");

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


            XmlNode basePriceNode = xmlNode.SelectSingleNode("basePrice");

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


            XmlNode excel_underlyingModel_paraNode = xmlNode.SelectSingleNode("excel_underlyingModel_para");

            if (excel_underlyingModel_paraNode != null)
            {
                if (excel_underlyingModel_paraNode.Attributes["href"] != null || excel_underlyingModel_paraNode.Attributes["id"] != null)
                {
                    if (excel_underlyingModel_paraNode.Attributes["id"] != null)
                    {
                        excel_underlyingModel_paraIDRef_ = excel_underlyingModel_paraNode.Attributes["id"].Value;
                        Excel_underlyingModel_para ob = new Excel_underlyingModel_para(excel_underlyingModel_paraNode);
                        IDManager.SetID(excel_underlyingModel_paraIDRef_, ob);
                    }
                    else if (excel_underlyingModel_paraNode.Attributes["href"] != null)
                    {
                        excel_underlyingModel_paraIDRef_ = excel_underlyingModel_paraNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_underlyingModel_para_ = new Excel_underlyingModel_para(excel_underlyingModel_paraNode);
                    }
                }
                else
                {
                    excel_underlyingModel_para_ = new Excel_underlyingModel_para(excel_underlyingModel_paraNode);
                }
            }


            XmlNode valueNode = xmlNode.SelectSingleNode("value");

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


            XmlNode descriptionNode = xmlNode.SelectSingleNode("description");

            if (descriptionNode != null)
            {
                if (descriptionNode.Attributes["href"] != null || descriptionNode.Attributes["id"] != null)
                {
                    if (descriptionNode.Attributes["id"] != null)
                    {
                        descriptionIDRef_ = descriptionNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(descriptionNode);
                        IDManager.SetID(descriptionIDRef_, ob);
                    }
                    else if (descriptionNode.Attributes["href"] != null)
                    {
                        descriptionIDRef_ = descriptionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        description_ = new XsdTypeToken(descriptionNode);
                    }
                }
                else
                {
                    description_ = new XsdTypeToken(descriptionNode);
                }
            }
        }
 public Excel_underlyingInfo_para(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 krCodeNode = xmlNode.SelectSingleNode("krCode");
     
     if (krCodeNode != null)
     {
         if (krCodeNode.Attributes["href"] != null || krCodeNode.Attributes["id"] != null) 
         {
             if (krCodeNode.Attributes["id"] != null) 
             {
                 krCodeIDRef_ = krCodeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(krCodeNode);
                 IDManager.SetID(krCodeIDRef_, ob);
             }
             else if (krCodeNode.Attributes["href"] != null)
             {
                 krCodeIDRef_ = krCodeNode.Attributes["href"].Value;
             }
             else
             {
                 krCode_ = new XsdTypeToken(krCodeNode);
             }
         }
         else
         {
             krCode_ = new XsdTypeToken(krCodeNode);
         }
     }
     
 
     XmlNode underNameNode = xmlNode.SelectSingleNode("underName");
     
     if (underNameNode != null)
     {
         if (underNameNode.Attributes["href"] != null || underNameNode.Attributes["id"] != null) 
         {
             if (underNameNode.Attributes["id"] != null) 
             {
                 underNameIDRef_ = underNameNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(underNameNode);
                 IDManager.SetID(underNameIDRef_, ob);
             }
             else if (underNameNode.Attributes["href"] != null)
             {
                 underNameIDRef_ = underNameNode.Attributes["href"].Value;
             }
             else
             {
                 underName_ = new XsdTypeToken(underNameNode);
             }
         }
         else
         {
             underName_ = new XsdTypeToken(underNameNode);
         }
     }
     
 
     XmlNode modelNode = xmlNode.SelectSingleNode("model");
     
     if (modelNode != null)
     {
         if (modelNode.Attributes["href"] != null || modelNode.Attributes["id"] != null) 
         {
             if (modelNode.Attributes["id"] != null) 
             {
                 modelIDRef_ = modelNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(modelNode);
                 IDManager.SetID(modelIDRef_, ob);
             }
             else if (modelNode.Attributes["href"] != null)
             {
                 modelIDRef_ = modelNode.Attributes["href"].Value;
             }
             else
             {
                 model_ = new XsdTypeToken(modelNode);
             }
         }
         else
         {
             model_ = new XsdTypeToken(modelNode);
         }
     }
     
 
     XmlNode basePriceNode = xmlNode.SelectSingleNode("basePrice");
     
     if (basePriceNode != null)
     {
         if (basePriceNode.Attributes["href"] != null || basePriceNode.Attributes["id"] != null) 
         {
             if (basePriceNode.Attributes["id"] != null) 
             {
                 basePriceIDRef_ = basePriceNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(basePriceNode);
                 IDManager.SetID(basePriceIDRef_, ob);
             }
             else if (basePriceNode.Attributes["href"] != null)
             {
                 basePriceIDRef_ = basePriceNode.Attributes["href"].Value;
             }
             else
             {
                 basePrice_ = new XsdTypeToken(basePriceNode);
             }
         }
         else
         {
             basePrice_ = new XsdTypeToken(basePriceNode);
         }
     }
     
 
     XmlNode excel_underlyingModel_paraNode = xmlNode.SelectSingleNode("excel_underlyingModel_para");
     
     if (excel_underlyingModel_paraNode != null)
     {
         if (excel_underlyingModel_paraNode.Attributes["href"] != null || excel_underlyingModel_paraNode.Attributes["id"] != null) 
         {
             if (excel_underlyingModel_paraNode.Attributes["id"] != null) 
             {
                 excel_underlyingModel_paraIDRef_ = excel_underlyingModel_paraNode.Attributes["id"].Value;
                 Excel_underlyingModel_para ob = new Excel_underlyingModel_para(excel_underlyingModel_paraNode);
                 IDManager.SetID(excel_underlyingModel_paraIDRef_, ob);
             }
             else if (excel_underlyingModel_paraNode.Attributes["href"] != null)
             {
                 excel_underlyingModel_paraIDRef_ = excel_underlyingModel_paraNode.Attributes["href"].Value;
             }
             else
             {
                 excel_underlyingModel_para_ = new Excel_underlyingModel_para(excel_underlyingModel_paraNode);
             }
         }
         else
         {
             excel_underlyingModel_para_ = new Excel_underlyingModel_para(excel_underlyingModel_paraNode);
         }
     }
     
 
     XmlNode valueNode = xmlNode.SelectSingleNode("value");
     
     if (valueNode != null)
     {
         if (valueNode.Attributes["href"] != null || valueNode.Attributes["id"] != null) 
         {
             if (valueNode.Attributes["id"] != null) 
             {
                 valueIDRef_ = valueNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(valueNode);
                 IDManager.SetID(valueIDRef_, ob);
             }
             else if (valueNode.Attributes["href"] != null)
             {
                 valueIDRef_ = valueNode.Attributes["href"].Value;
             }
             else
             {
                 value_ = new XsdTypeToken(valueNode);
             }
         }
         else
         {
             value_ = new XsdTypeToken(valueNode);
         }
     }
     
 
     XmlNode descriptionNode = xmlNode.SelectSingleNode("description");
     
     if (descriptionNode != null)
     {
         if (descriptionNode.Attributes["href"] != null || descriptionNode.Attributes["id"] != null) 
         {
             if (descriptionNode.Attributes["id"] != null) 
             {
                 descriptionIDRef_ = descriptionNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(descriptionNode);
                 IDManager.SetID(descriptionIDRef_, ob);
             }
             else if (descriptionNode.Attributes["href"] != null)
             {
                 descriptionIDRef_ = descriptionNode.Attributes["href"].Value;
             }
             else
             {
                 description_ = new XsdTypeToken(descriptionNode);
             }
         }
         else
         {
             description_ = new XsdTypeToken(descriptionNode);
         }
     }
     
 
 }
Exemplo n.º 3
0
        public Excel_underlyingInfo_para(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 krCodeNode = xmlNode.SelectSingleNode("krCode");

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


            XmlNode currencyNode = xmlNode.SelectSingleNode("currency");

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


            XmlNode underNameNode = xmlNode.SelectSingleNode("underName");

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


            XmlNode basePriceNode = xmlNode.SelectSingleNode("basePrice");

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


            XmlNode sub_typeNode = xmlNode.SelectSingleNode("sub_type");

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


            XmlNode rate_typeNode = xmlNode.SelectSingleNode("rate_type");

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


            XmlNode tenorNode = xmlNode.SelectSingleNode("tenor");

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


            XmlNode legTenorNode = xmlNode.SelectSingleNode("legTenor");

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


            XmlNode linkedCurveNode = xmlNode.SelectSingleNode("linkedCurve");

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


            XmlNode excel_underlyingModel_paraNode = xmlNode.SelectSingleNode("excel_underlyingModel_para");

            if (excel_underlyingModel_paraNode != null)
            {
                if (excel_underlyingModel_paraNode.Attributes["href"] != null || excel_underlyingModel_paraNode.Attributes["id"] != null)
                {
                    if (excel_underlyingModel_paraNode.Attributes["id"] != null)
                    {
                        excel_underlyingModel_paraIDRef_ = excel_underlyingModel_paraNode.Attributes["id"].Value;
                        Excel_underlyingModel_para ob = new Excel_underlyingModel_para(excel_underlyingModel_paraNode);
                        IDManager.SetID(excel_underlyingModel_paraIDRef_, ob);
                    }
                    else if (excel_underlyingModel_paraNode.Attributes["href"] != null)
                    {
                        excel_underlyingModel_paraIDRef_ = excel_underlyingModel_paraNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_underlyingModel_para_ = new Excel_underlyingModel_para(excel_underlyingModel_paraNode);
                    }
                }
                else
                {
                    excel_underlyingModel_para_ = new Excel_underlyingModel_para(excel_underlyingModel_paraNode);
                }
            }


            XmlNode valueNode = xmlNode.SelectSingleNode("value");

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


            XmlNode descriptionNode = xmlNode.SelectSingleNode("description");

            if (descriptionNode != null)
            {
                if (descriptionNode.Attributes["href"] != null || descriptionNode.Attributes["id"] != null)
                {
                    if (descriptionNode.Attributes["id"] != null)
                    {
                        descriptionIDRef_ = descriptionNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(descriptionNode);
                        IDManager.SetID(descriptionIDRef_, ob);
                    }
                    else if (descriptionNode.Attributes["href"] != null)
                    {
                        descriptionIDRef_ = descriptionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        description_ = new XsdTypeToken(descriptionNode);
                    }
                }
                else
                {
                    description_ = new XsdTypeToken(descriptionNode);
                }
            }
        }
 public Excel_underlyingInfo_para(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 krCodeNode = xmlNode.SelectSingleNode("krCode");
     
     if (krCodeNode != null)
     {
         if (krCodeNode.Attributes["href"] != null || krCodeNode.Attributes["id"] != null) 
         {
             if (krCodeNode.Attributes["id"] != null) 
             {
                 krCodeIDRef_ = krCodeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(krCodeNode);
                 IDManager.SetID(krCodeIDRef_, ob);
             }
             else if (krCodeNode.Attributes["href"] != null)
             {
                 krCodeIDRef_ = krCodeNode.Attributes["href"].Value;
             }
             else
             {
                 krCode_ = new XsdTypeToken(krCodeNode);
             }
         }
         else
         {
             krCode_ = new XsdTypeToken(krCodeNode);
         }
     }
     
 
     XmlNode currencyNode = xmlNode.SelectSingleNode("currency");
     
     if (currencyNode != null)
     {
         if (currencyNode.Attributes["href"] != null || currencyNode.Attributes["id"] != null) 
         {
             if (currencyNode.Attributes["id"] != null) 
             {
                 currencyIDRef_ = currencyNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(currencyNode);
                 IDManager.SetID(currencyIDRef_, ob);
             }
             else if (currencyNode.Attributes["href"] != null)
             {
                 currencyIDRef_ = currencyNode.Attributes["href"].Value;
             }
             else
             {
                 currency_ = new XsdTypeToken(currencyNode);
             }
         }
         else
         {
             currency_ = new XsdTypeToken(currencyNode);
         }
     }
     
 
     XmlNode underNameNode = xmlNode.SelectSingleNode("underName");
     
     if (underNameNode != null)
     {
         if (underNameNode.Attributes["href"] != null || underNameNode.Attributes["id"] != null) 
         {
             if (underNameNode.Attributes["id"] != null) 
             {
                 underNameIDRef_ = underNameNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(underNameNode);
                 IDManager.SetID(underNameIDRef_, ob);
             }
             else if (underNameNode.Attributes["href"] != null)
             {
                 underNameIDRef_ = underNameNode.Attributes["href"].Value;
             }
             else
             {
                 underName_ = new XsdTypeToken(underNameNode);
             }
         }
         else
         {
             underName_ = new XsdTypeToken(underNameNode);
         }
     }
     
 
     XmlNode basePriceNode = xmlNode.SelectSingleNode("basePrice");
     
     if (basePriceNode != null)
     {
         if (basePriceNode.Attributes["href"] != null || basePriceNode.Attributes["id"] != null) 
         {
             if (basePriceNode.Attributes["id"] != null) 
             {
                 basePriceIDRef_ = basePriceNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(basePriceNode);
                 IDManager.SetID(basePriceIDRef_, ob);
             }
             else if (basePriceNode.Attributes["href"] != null)
             {
                 basePriceIDRef_ = basePriceNode.Attributes["href"].Value;
             }
             else
             {
                 basePrice_ = new XsdTypeToken(basePriceNode);
             }
         }
         else
         {
             basePrice_ = new XsdTypeToken(basePriceNode);
         }
     }
     
 
     XmlNode sub_typeNode = xmlNode.SelectSingleNode("sub_type");
     
     if (sub_typeNode != null)
     {
         if (sub_typeNode.Attributes["href"] != null || sub_typeNode.Attributes["id"] != null) 
         {
             if (sub_typeNode.Attributes["id"] != null) 
             {
                 sub_typeIDRef_ = sub_typeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(sub_typeNode);
                 IDManager.SetID(sub_typeIDRef_, ob);
             }
             else if (sub_typeNode.Attributes["href"] != null)
             {
                 sub_typeIDRef_ = sub_typeNode.Attributes["href"].Value;
             }
             else
             {
                 sub_type_ = new XsdTypeToken(sub_typeNode);
             }
         }
         else
         {
             sub_type_ = new XsdTypeToken(sub_typeNode);
         }
     }
     
 
     XmlNode rate_typeNode = xmlNode.SelectSingleNode("rate_type");
     
     if (rate_typeNode != null)
     {
         if (rate_typeNode.Attributes["href"] != null || rate_typeNode.Attributes["id"] != null) 
         {
             if (rate_typeNode.Attributes["id"] != null) 
             {
                 rate_typeIDRef_ = rate_typeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(rate_typeNode);
                 IDManager.SetID(rate_typeIDRef_, ob);
             }
             else if (rate_typeNode.Attributes["href"] != null)
             {
                 rate_typeIDRef_ = rate_typeNode.Attributes["href"].Value;
             }
             else
             {
                 rate_type_ = new XsdTypeToken(rate_typeNode);
             }
         }
         else
         {
             rate_type_ = new XsdTypeToken(rate_typeNode);
         }
     }
     
 
     XmlNode tenorNode = xmlNode.SelectSingleNode("tenor");
     
     if (tenorNode != null)
     {
         if (tenorNode.Attributes["href"] != null || tenorNode.Attributes["id"] != null) 
         {
             if (tenorNode.Attributes["id"] != null) 
             {
                 tenorIDRef_ = tenorNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(tenorNode);
                 IDManager.SetID(tenorIDRef_, ob);
             }
             else if (tenorNode.Attributes["href"] != null)
             {
                 tenorIDRef_ = tenorNode.Attributes["href"].Value;
             }
             else
             {
                 tenor_ = new XsdTypeToken(tenorNode);
             }
         }
         else
         {
             tenor_ = new XsdTypeToken(tenorNode);
         }
     }
     
 
     XmlNode legTenorNode = xmlNode.SelectSingleNode("legTenor");
     
     if (legTenorNode != null)
     {
         if (legTenorNode.Attributes["href"] != null || legTenorNode.Attributes["id"] != null) 
         {
             if (legTenorNode.Attributes["id"] != null) 
             {
                 legTenorIDRef_ = legTenorNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(legTenorNode);
                 IDManager.SetID(legTenorIDRef_, ob);
             }
             else if (legTenorNode.Attributes["href"] != null)
             {
                 legTenorIDRef_ = legTenorNode.Attributes["href"].Value;
             }
             else
             {
                 legTenor_ = new XsdTypeToken(legTenorNode);
             }
         }
         else
         {
             legTenor_ = new XsdTypeToken(legTenorNode);
         }
     }
     
 
     XmlNode linkedCurveNode = xmlNode.SelectSingleNode("linkedCurve");
     
     if (linkedCurveNode != null)
     {
         if (linkedCurveNode.Attributes["href"] != null || linkedCurveNode.Attributes["id"] != null) 
         {
             if (linkedCurveNode.Attributes["id"] != null) 
             {
                 linkedCurveIDRef_ = linkedCurveNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(linkedCurveNode);
                 IDManager.SetID(linkedCurveIDRef_, ob);
             }
             else if (linkedCurveNode.Attributes["href"] != null)
             {
                 linkedCurveIDRef_ = linkedCurveNode.Attributes["href"].Value;
             }
             else
             {
                 linkedCurve_ = new XsdTypeToken(linkedCurveNode);
             }
         }
         else
         {
             linkedCurve_ = new XsdTypeToken(linkedCurveNode);
         }
     }
     
 
     XmlNode excel_underlyingModel_paraNode = xmlNode.SelectSingleNode("excel_underlyingModel_para");
     
     if (excel_underlyingModel_paraNode != null)
     {
         if (excel_underlyingModel_paraNode.Attributes["href"] != null || excel_underlyingModel_paraNode.Attributes["id"] != null) 
         {
             if (excel_underlyingModel_paraNode.Attributes["id"] != null) 
             {
                 excel_underlyingModel_paraIDRef_ = excel_underlyingModel_paraNode.Attributes["id"].Value;
                 Excel_underlyingModel_para ob = new Excel_underlyingModel_para(excel_underlyingModel_paraNode);
                 IDManager.SetID(excel_underlyingModel_paraIDRef_, ob);
             }
             else if (excel_underlyingModel_paraNode.Attributes["href"] != null)
             {
                 excel_underlyingModel_paraIDRef_ = excel_underlyingModel_paraNode.Attributes["href"].Value;
             }
             else
             {
                 excel_underlyingModel_para_ = new Excel_underlyingModel_para(excel_underlyingModel_paraNode);
             }
         }
         else
         {
             excel_underlyingModel_para_ = new Excel_underlyingModel_para(excel_underlyingModel_paraNode);
         }
     }
     
 
     XmlNode valueNode = xmlNode.SelectSingleNode("value");
     
     if (valueNode != null)
     {
         if (valueNode.Attributes["href"] != null || valueNode.Attributes["id"] != null) 
         {
             if (valueNode.Attributes["id"] != null) 
             {
                 valueIDRef_ = valueNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(valueNode);
                 IDManager.SetID(valueIDRef_, ob);
             }
             else if (valueNode.Attributes["href"] != null)
             {
                 valueIDRef_ = valueNode.Attributes["href"].Value;
             }
             else
             {
                 value_ = new XsdTypeToken(valueNode);
             }
         }
         else
         {
             value_ = new XsdTypeToken(valueNode);
         }
     }
     
 
     XmlNode descriptionNode = xmlNode.SelectSingleNode("description");
     
     if (descriptionNode != null)
     {
         if (descriptionNode.Attributes["href"] != null || descriptionNode.Attributes["id"] != null) 
         {
             if (descriptionNode.Attributes["id"] != null) 
             {
                 descriptionIDRef_ = descriptionNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(descriptionNode);
                 IDManager.SetID(descriptionIDRef_, ob);
             }
             else if (descriptionNode.Attributes["href"] != null)
             {
                 descriptionIDRef_ = descriptionNode.Attributes["href"].Value;
             }
             else
             {
                 description_ = new XsdTypeToken(descriptionNode);
             }
         }
         else
         {
             description_ = new XsdTypeToken(descriptionNode);
         }
     }
     
 
 }