public CommonResult(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode priceNode = xmlNode.SelectSingleNode("price");
     
     if (priceNode != null)
     {
         if (priceNode.Attributes["href"] != null || priceNode.Attributes["id"] != null) 
         {
             if (priceNode.Attributes["id"] != null) 
             {
                 priceIDRef_ = priceNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(priceNode);
                 IDManager.SetID(priceIDRef_, ob);
             }
             else if (priceNode.Attributes["href"] != null)
             {
                 priceIDRef_ = priceNode.Attributes["href"].Value;
             }
             else
             {
                 price_ = new XsdTypeDouble(priceNode);
             }
         }
         else
         {
             price_ = new XsdTypeDouble(priceNode);
         }
     }
     
 
     XmlNode unitPriceNode = xmlNode.SelectSingleNode("unitPrice");
     
     if (unitPriceNode != null)
     {
         if (unitPriceNode.Attributes["href"] != null || unitPriceNode.Attributes["id"] != null) 
         {
             if (unitPriceNode.Attributes["id"] != null) 
             {
                 unitPriceIDRef_ = unitPriceNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(unitPriceNode);
                 IDManager.SetID(unitPriceIDRef_, ob);
             }
             else if (unitPriceNode.Attributes["href"] != null)
             {
                 unitPriceIDRef_ = unitPriceNode.Attributes["href"].Value;
             }
             else
             {
                 unitPrice_ = new XsdTypeDouble(unitPriceNode);
             }
         }
         else
         {
             unitPrice_ = new XsdTypeDouble(unitPriceNode);
         }
     }
     
 
 }
        public FixedRateCouponCalculation(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode rateNode = xmlNode.SelectSingleNode("rate");

            if (rateNode != null)
            {
                if (rateNode.Attributes["href"] != null || rateNode.Attributes["id"] != null)
                {
                    if (rateNode.Attributes["id"] != null)
                    {
                        rateIDRef_ = rateNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(rateNode);
                        IDManager.SetID(rateIDRef_, ob);
                    }
                    else if (rateNode.Attributes["href"] != null)
                    {
                        rateIDRef_ = rateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        rate_ = new XsdTypeDouble(rateNode);
                    }
                }
                else
                {
                    rate_ = new XsdTypeDouble(rateNode);
                }
            }
        }
 public ConstReturnCal(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode constReturnNode = xmlNode.SelectSingleNode("constReturn");
     
     if (constReturnNode != null)
     {
         if (constReturnNode.Attributes["href"] != null || constReturnNode.Attributes["id"] != null) 
         {
             if (constReturnNode.Attributes["id"] != null) 
             {
                 constReturnIDRef_ = constReturnNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(constReturnNode);
                 IDManager.SetID(constReturnIDRef_, ob);
             }
             else if (constReturnNode.Attributes["href"] != null)
             {
                 constReturnIDRef_ = constReturnNode.Attributes["href"].Value;
             }
             else
             {
                 constReturn_ = new XsdTypeDouble(constReturnNode);
             }
         }
         else
         {
             constReturn_ = new XsdTypeDouble(constReturnNode);
         }
     }
     
 
 }
Пример #4
0
        public ConstReturnCal(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode constReturnNode = xmlNode.SelectSingleNode("constReturn");

            if (constReturnNode != null)
            {
                if (constReturnNode.Attributes["href"] != null || constReturnNode.Attributes["id"] != null)
                {
                    if (constReturnNode.Attributes["id"] != null)
                    {
                        constReturnIDRef_ = constReturnNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(constReturnNode);
                        IDManager.SetID(constReturnIDRef_, ob);
                    }
                    else if (constReturnNode.Attributes["href"] != null)
                    {
                        constReturnIDRef_ = constReturnNode.Attributes["href"].Value;
                    }
                    else
                    {
                        constReturn_ = new XsdTypeDouble(constReturnNode);
                    }
                }
                else
                {
                    constReturn_ = new XsdTypeDouble(constReturnNode);
                }
            }
        }
        public ConstPayoff(XmlNode xmlNode)
        {
            XmlNode constValueNode = xmlNode.SelectSingleNode("constValue");

            if (constValueNode != null)
            {
                if (constValueNode.Attributes["href"] != null || constValueNode.Attributes["id"] != null)
                {
                    if (constValueNode.Attributes["id"] != null)
                    {
                        constValueIDRef_ = constValueNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(constValueNode);
                        IDManager.SetID(constValueIDRef_, ob);
                    }
                    else if (constValueNode.Attributes["href"] != null)
                    {
                        constValueIDRef_ = constValueNode.Attributes["href"].Value;
                    }
                    else
                    {
                        constValue_ = new XsdTypeDouble(constValueNode);
                    }
                }
                else
                {
                    constValue_ = new XsdTypeDouble(constValueNode);
                }
            }
        }
Пример #6
0
        public ConstPayoff(XmlNode xmlNode)
        {
            XmlNodeList constValueNodeList = xmlNode.SelectNodes("constValue");

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

            foreach (XmlNode item in constValueNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        constValueIDRef = item.Attributes["id"].Name;
                        XsdTypeDouble ob = XsdTypeDouble();
                        IDManager.SetID(constValueIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        constValueIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        constValue = new XsdTypeDouble(item);
                    }
                }
            }
        }
 public FixedRateCouponCalculation(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode rateNode = xmlNode.SelectSingleNode("rate");
     
     if (rateNode != null)
     {
         if (rateNode.Attributes["href"] != null || rateNode.Attributes["id"] != null) 
         {
             if (rateNode.Attributes["id"] != null) 
             {
                 rateIDRef_ = rateNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(rateNode);
                 IDManager.SetID(rateIDRef_, ob);
             }
             else if (rateNode.Attributes["href"] != null)
             {
                 rateIDRef_ = rateNode.Attributes["href"].Value;
             }
             else
             {
                 rate_ = new XsdTypeDouble(rateNode);
             }
         }
         else
         {
             rate_ = new XsdTypeDouble(rateNode);
         }
     }
     
 
 }
 public SwapStreamPara(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode notionalNode = xmlNode.SelectSingleNode("notional");
     
     if (notionalNode != null)
     {
         if (notionalNode.Attributes["href"] != null || notionalNode.Attributes["id"] != null) 
         {
             if (notionalNode.Attributes["id"] != null) 
             {
                 notionalIDRef_ = notionalNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(notionalNode);
                 IDManager.SetID(notionalIDRef_, ob);
             }
             else if (notionalNode.Attributes["href"] != null)
             {
                 notionalIDRef_ = notionalNode.Attributes["href"].Value;
             }
             else
             {
                 notional_ = new XsdTypeDouble(notionalNode);
             }
         }
         else
         {
             notional_ = new XsdTypeDouble(notionalNode);
         }
     }
     
 
     XmlNode discountCurve_paraNode = xmlNode.SelectSingleNode("discountCurve_para");
     
     if (discountCurve_paraNode != null)
     {
         if (discountCurve_paraNode.Attributes["href"] != null || discountCurve_paraNode.Attributes["id"] != null) 
         {
             if (discountCurve_paraNode.Attributes["id"] != null) 
             {
                 discountCurve_paraIDRef_ = discountCurve_paraNode.Attributes["id"].Value;
                 DiscountCurve_para ob = new DiscountCurve_para(discountCurve_paraNode);
                 IDManager.SetID(discountCurve_paraIDRef_, ob);
             }
             else if (discountCurve_paraNode.Attributes["href"] != null)
             {
                 discountCurve_paraIDRef_ = discountCurve_paraNode.Attributes["href"].Value;
             }
             else
             {
                 discountCurve_para_ = new DiscountCurve_para(discountCurve_paraNode);
             }
         }
         else
         {
             discountCurve_para_ = new DiscountCurve_para(discountCurve_paraNode);
         }
     }
     
 
 }
 public CalculationAmount(XmlNode xmlNode)
 : base(xmlNode)
 {
     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 amountNode = xmlNode.SelectSingleNode("amount");
     
     if (amountNode != null)
     {
         if (amountNode.Attributes["href"] != null || amountNode.Attributes["id"] != null) 
         {
             if (amountNode.Attributes["id"] != null) 
             {
                 amountIDRef_ = amountNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(amountNode);
                 IDManager.SetID(amountIDRef_, ob);
             }
             else if (amountNode.Attributes["href"] != null)
             {
                 amountIDRef_ = amountNode.Attributes["href"].Value;
             }
             else
             {
                 amount_ = new XsdTypeDouble(amountNode);
             }
         }
         else
         {
             amount_ = new XsdTypeDouble(amountNode);
         }
     }
     
 
 }
Пример #10
0
        public TriggerAtleast(XmlNode xmlNode)
        {
            XmlNode countNode = xmlNode.SelectSingleNode("count");

            if (countNode != null)
            {
                if (countNode.Attributes["href"] != null || countNode.Attributes["id"] != null)
                {
                    if (countNode.Attributes["id"] != null)
                    {
                        countIDRef_ = countNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(countNode);
                        IDManager.SetID(countIDRef_, ob);
                    }
                    else if (countNode.Attributes["href"] != null)
                    {
                        countIDRef_ = countNode.Attributes["href"].Value;
                    }
                    else
                    {
                        count_ = new XsdTypeDouble(countNode);
                    }
                }
                else
                {
                    count_ = new XsdTypeDouble(countNode);
                }
            }
        }
 public TriggerAtleast(XmlNode xmlNode)
 {
     XmlNode countNode = xmlNode.SelectSingleNode("count");
     
     if (countNode != null)
     {
         if (countNode.Attributes["href"] != null || countNode.Attributes["id"] != null) 
         {
             if (countNode.Attributes["id"] != null) 
             {
                 countIDRef_ = countNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(countNode);
                 IDManager.SetID(countIDRef_, ob);
             }
             else if (countNode.Attributes["href"] != null)
             {
                 countIDRef_ = countNode.Attributes["href"].Value;
             }
             else
             {
                 count_ = new XsdTypeDouble(countNode);
             }
         }
         else
         {
             count_ = new XsdTypeDouble(countNode);
         }
     }
     
 
 }
 public DataValue(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode dateNode = xmlNode.SelectSingleNode("date");
     
     if (dateNode != null)
     {
         if (dateNode.Attributes["href"] != null || dateNode.Attributes["id"] != null) 
         {
             if (dateNode.Attributes["id"] != null) 
             {
                 dateIDRef_ = dateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(dateNode);
                 IDManager.SetID(dateIDRef_, ob);
             }
             else if (dateNode.Attributes["href"] != null)
             {
                 dateIDRef_ = dateNode.Attributes["href"].Value;
             }
             else
             {
                 date_ = new XsdTypeDate(dateNode);
             }
         }
         else
         {
             date_ = new XsdTypeDate(dateNode);
         }
     }
     
 
     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;
                 XsdTypeDouble ob = new XsdTypeDouble(valueNode);
                 IDManager.SetID(valueIDRef_, ob);
             }
             else if (valueNode.Attributes["href"] != null)
             {
                 valueIDRef_ = valueNode.Attributes["href"].Value;
             }
             else
             {
                 value_ = new XsdTypeDouble(valueNode);
             }
         }
         else
         {
             value_ = new XsdTypeDouble(valueNode);
         }
     }
     
 
 }
 public ConstPayoff(XmlNode xmlNode)
 {
     XmlNode constValueNode = xmlNode.SelectSingleNode("constValue");
     
     if (constValueNode != null)
     {
         if (constValueNode.Attributes["href"] != null || constValueNode.Attributes["id"] != null) 
         {
             if (constValueNode.Attributes["id"] != null) 
             {
                 constValueIDRef_ = constValueNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(constValueNode);
                 IDManager.SetID(constValueIDRef_, ob);
             }
             else if (constValueNode.Attributes["href"] != null)
             {
                 constValueIDRef_ = constValueNode.Attributes["href"].Value;
             }
             else
             {
                 constValue_ = new XsdTypeDouble(constValueNode);
             }
         }
         else
         {
             constValue_ = new XsdTypeDouble(constValueNode);
         }
     }
     
 
 }
 public RedemptionNotionalTrigger(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode payoffDateInfoNode = xmlNode.SelectSingleNode("payoffDateInfo");
     
     if (payoffDateInfoNode != null)
     {
         if (payoffDateInfoNode.Attributes["href"] != null || payoffDateInfoNode.Attributes["id"] != null) 
         {
             if (payoffDateInfoNode.Attributes["id"] != null) 
             {
                 payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["id"].Value;
                 PayoffDateInfo ob = new PayoffDateInfo(payoffDateInfoNode);
                 IDManager.SetID(payoffDateInfoIDRef_, ob);
             }
             else if (payoffDateInfoNode.Attributes["href"] != null)
             {
                 payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["href"].Value;
             }
             else
             {
                 payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
             }
         }
         else
         {
             payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
         }
     }
     
 
     XmlNode redemptionAmountNode = xmlNode.SelectSingleNode("redemptionAmount");
     
     if (redemptionAmountNode != null)
     {
         if (redemptionAmountNode.Attributes["href"] != null || redemptionAmountNode.Attributes["id"] != null) 
         {
             if (redemptionAmountNode.Attributes["id"] != null) 
             {
                 redemptionAmountIDRef_ = redemptionAmountNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(redemptionAmountNode);
                 IDManager.SetID(redemptionAmountIDRef_, ob);
             }
             else if (redemptionAmountNode.Attributes["href"] != null)
             {
                 redemptionAmountIDRef_ = redemptionAmountNode.Attributes["href"].Value;
             }
             else
             {
                 redemptionAmount_ = new XsdTypeDouble(redemptionAmountNode);
             }
         }
         else
         {
             redemptionAmount_ = new XsdTypeDouble(redemptionAmountNode);
         }
     }
     
 
 }
 public DownEventCheck(XmlNode xmlNode)
 {
     XmlNode checkValueNode = xmlNode.SelectSingleNode("checkValue");
     
     if (checkValueNode != null)
     {
         if (checkValueNode.Attributes["href"] != null || checkValueNode.Attributes["id"] != null) 
         {
             if (checkValueNode.Attributes["id"] != null) 
             {
                 checkValueIDRef_ = checkValueNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(checkValueNode);
                 IDManager.SetID(checkValueIDRef_, ob);
             }
             else if (checkValueNode.Attributes["href"] != null)
             {
                 checkValueIDRef_ = checkValueNode.Attributes["href"].Value;
             }
             else
             {
                 checkValue_ = new XsdTypeDouble(checkValueNode);
             }
         }
         else
         {
             checkValue_ = new XsdTypeDouble(checkValueNode);
         }
     }
     
 
     XmlNode equalityNode = xmlNode.SelectSingleNode("equality");
     
     if (equalityNode != null)
     {
         if (equalityNode.Attributes["href"] != null || equalityNode.Attributes["id"] != null) 
         {
             if (equalityNode.Attributes["id"] != null) 
             {
                 equalityIDRef_ = equalityNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(equalityNode);
                 IDManager.SetID(equalityIDRef_, ob);
             }
             else if (equalityNode.Attributes["href"] != null)
             {
                 equalityIDRef_ = equalityNode.Attributes["href"].Value;
             }
             else
             {
                 equality_ = new XsdTypeBoolean(equalityNode);
             }
         }
         else
         {
             equality_ = new XsdTypeBoolean(equalityNode);
         }
     }
     
 
 }
Пример #16
0
        public UpEventCheck(XmlNode xmlNode)
        {
            XmlNodeList checkValueNodeList = xmlNode.SelectNodes("checkValue");

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

            foreach (XmlNode item in checkValueNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        checkValueIDRef = item.Attributes["id"].Name;
                        XsdTypeDouble ob = XsdTypeDouble();
                        IDManager.SetID(checkValueIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        checkValueIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        checkValue = new XsdTypeDouble(item);
                    }
                }
            }


            XmlNodeList equalityNodeList = xmlNode.SelectNodes("equality");

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

            foreach (XmlNode item in equalityNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        equalityIDRef = item.Attributes["id"].Name;
                        XsdTypeBoolean ob = XsdTypeBoolean();
                        IDManager.SetID(equalityIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        equalityIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        equality = new XsdTypeBoolean(item);
                    }
                }
            }
        }
        public SwapStreamPara(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode notionalNode = xmlNode.SelectSingleNode("notional");

            if (notionalNode != null)
            {
                if (notionalNode.Attributes["href"] != null || notionalNode.Attributes["id"] != null)
                {
                    if (notionalNode.Attributes["id"] != null)
                    {
                        notionalIDRef_ = notionalNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(notionalNode);
                        IDManager.SetID(notionalIDRef_, ob);
                    }
                    else if (notionalNode.Attributes["href"] != null)
                    {
                        notionalIDRef_ = notionalNode.Attributes["href"].Value;
                    }
                    else
                    {
                        notional_ = new XsdTypeDouble(notionalNode);
                    }
                }
                else
                {
                    notional_ = new XsdTypeDouble(notionalNode);
                }
            }


            XmlNode discountCurve_paraNode = xmlNode.SelectSingleNode("discountCurve_para");

            if (discountCurve_paraNode != null)
            {
                if (discountCurve_paraNode.Attributes["href"] != null || discountCurve_paraNode.Attributes["id"] != null)
                {
                    if (discountCurve_paraNode.Attributes["id"] != null)
                    {
                        discountCurve_paraIDRef_ = discountCurve_paraNode.Attributes["id"].Value;
                        DiscountCurve_para ob = new DiscountCurve_para(discountCurve_paraNode);
                        IDManager.SetID(discountCurve_paraIDRef_, ob);
                    }
                    else if (discountCurve_paraNode.Attributes["href"] != null)
                    {
                        discountCurve_paraIDRef_ = discountCurve_paraNode.Attributes["href"].Value;
                    }
                    else
                    {
                        discountCurve_para_ = new DiscountCurve_para(discountCurve_paraNode);
                    }
                }
                else
                {
                    discountCurve_para_ = new DiscountCurve_para(discountCurve_paraNode);
                }
            }
        }
        public RedemptionNotionalTrigger(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode payoffDateInfoNode = xmlNode.SelectSingleNode("payoffDateInfo");

            if (payoffDateInfoNode != null)
            {
                if (payoffDateInfoNode.Attributes["href"] != null || payoffDateInfoNode.Attributes["id"] != null)
                {
                    if (payoffDateInfoNode.Attributes["id"] != null)
                    {
                        payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["id"].Value;
                        PayoffDateInfo ob = new PayoffDateInfo(payoffDateInfoNode);
                        IDManager.SetID(payoffDateInfoIDRef_, ob);
                    }
                    else if (payoffDateInfoNode.Attributes["href"] != null)
                    {
                        payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
                    }
                }
                else
                {
                    payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
                }
            }


            XmlNode redemptionAmountNode = xmlNode.SelectSingleNode("redemptionAmount");

            if (redemptionAmountNode != null)
            {
                if (redemptionAmountNode.Attributes["href"] != null || redemptionAmountNode.Attributes["id"] != null)
                {
                    if (redemptionAmountNode.Attributes["id"] != null)
                    {
                        redemptionAmountIDRef_ = redemptionAmountNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(redemptionAmountNode);
                        IDManager.SetID(redemptionAmountIDRef_, ob);
                    }
                    else if (redemptionAmountNode.Attributes["href"] != null)
                    {
                        redemptionAmountIDRef_ = redemptionAmountNode.Attributes["href"].Value;
                    }
                    else
                    {
                        redemptionAmount_ = new XsdTypeDouble(redemptionAmountNode);
                    }
                }
                else
                {
                    redemptionAmount_ = new XsdTypeDouble(redemptionAmountNode);
                }
            }
        }
Пример #19
0
        public DataValue(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode dateNode = xmlNode.SelectSingleNode("date");

            if (dateNode != null)
            {
                if (dateNode.Attributes["href"] != null || dateNode.Attributes["id"] != null)
                {
                    if (dateNode.Attributes["id"] != null)
                    {
                        dateIDRef_ = dateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(dateNode);
                        IDManager.SetID(dateIDRef_, ob);
                    }
                    else if (dateNode.Attributes["href"] != null)
                    {
                        dateIDRef_ = dateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        date_ = new XsdTypeDate(dateNode);
                    }
                }
                else
                {
                    date_ = new XsdTypeDate(dateNode);
                }
            }


            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;
                        XsdTypeDouble ob = new XsdTypeDouble(valueNode);
                        IDManager.SetID(valueIDRef_, ob);
                    }
                    else if (valueNode.Attributes["href"] != null)
                    {
                        valueIDRef_ = valueNode.Attributes["href"].Value;
                    }
                    else
                    {
                        value_ = new XsdTypeDouble(valueNode);
                    }
                }
                else
                {
                    value_ = new XsdTypeDouble(valueNode);
                }
            }
        }
        public CommonResult(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode priceNode = xmlNode.SelectSingleNode("price");

            if (priceNode != null)
            {
                if (priceNode.Attributes["href"] != null || priceNode.Attributes["id"] != null)
                {
                    if (priceNode.Attributes["id"] != null)
                    {
                        priceIDRef_ = priceNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(priceNode);
                        IDManager.SetID(priceIDRef_, ob);
                    }
                    else if (priceNode.Attributes["href"] != null)
                    {
                        priceIDRef_ = priceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        price_ = new XsdTypeDouble(priceNode);
                    }
                }
                else
                {
                    price_ = new XsdTypeDouble(priceNode);
                }
            }


            XmlNode unitPriceNode = xmlNode.SelectSingleNode("unitPrice");

            if (unitPriceNode != null)
            {
                if (unitPriceNode.Attributes["href"] != null || unitPriceNode.Attributes["id"] != null)
                {
                    if (unitPriceNode.Attributes["id"] != null)
                    {
                        unitPriceIDRef_ = unitPriceNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(unitPriceNode);
                        IDManager.SetID(unitPriceIDRef_, ob);
                    }
                    else if (unitPriceNode.Attributes["href"] != null)
                    {
                        unitPriceIDRef_ = unitPriceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        unitPrice_ = new XsdTypeDouble(unitPriceNode);
                    }
                }
                else
                {
                    unitPrice_ = new XsdTypeDouble(unitPriceNode);
                }
            }
        }
        public CalculationAmount(XmlNode xmlNode)
            : base(xmlNode)
        {
            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 amountNode = xmlNode.SelectSingleNode("amount");

            if (amountNode != null)
            {
                if (amountNode.Attributes["href"] != null || amountNode.Attributes["id"] != null)
                {
                    if (amountNode.Attributes["id"] != null)
                    {
                        amountIDRef_ = amountNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(amountNode);
                        IDManager.SetID(amountIDRef_, ob);
                    }
                    else if (amountNode.Attributes["href"] != null)
                    {
                        amountIDRef_ = amountNode.Attributes["href"].Value;
                    }
                    else
                    {
                        amount_ = new XsdTypeDouble(amountNode);
                    }
                }
                else
                {
                    amount_ = new XsdTypeDouble(amountNode);
                }
            }
        }
        public DownEventCheck(XmlNode xmlNode)
        {
            XmlNode checkValueNode = xmlNode.SelectSingleNode("checkValue");

            if (checkValueNode != null)
            {
                if (checkValueNode.Attributes["href"] != null || checkValueNode.Attributes["id"] != null)
                {
                    if (checkValueNode.Attributes["id"] != null)
                    {
                        checkValueIDRef_ = checkValueNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(checkValueNode);
                        IDManager.SetID(checkValueIDRef_, ob);
                    }
                    else if (checkValueNode.Attributes["href"] != null)
                    {
                        checkValueIDRef_ = checkValueNode.Attributes["href"].Value;
                    }
                    else
                    {
                        checkValue_ = new XsdTypeDouble(checkValueNode);
                    }
                }
                else
                {
                    checkValue_ = new XsdTypeDouble(checkValueNode);
                }
            }


            XmlNode equalityNode = xmlNode.SelectSingleNode("equality");

            if (equalityNode != null)
            {
                if (equalityNode.Attributes["href"] != null || equalityNode.Attributes["id"] != null)
                {
                    if (equalityNode.Attributes["id"] != null)
                    {
                        equalityIDRef_ = equalityNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(equalityNode);
                        IDManager.SetID(equalityIDRef_, ob);
                    }
                    else if (equalityNode.Attributes["href"] != null)
                    {
                        equalityIDRef_ = equalityNode.Attributes["href"].Value;
                    }
                    else
                    {
                        equality_ = new XsdTypeBoolean(equalityNode);
                    }
                }
                else
                {
                    equality_ = new XsdTypeBoolean(equalityNode);
                }
            }
        }
 public HullWhiteGreekResult(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode underlyingNameNode = xmlNode.SelectSingleNode("underlyingName");
     
     if (underlyingNameNode != null)
     {
         if (underlyingNameNode.Attributes["href"] != null || underlyingNameNode.Attributes["id"] != null) 
         {
             if (underlyingNameNode.Attributes["id"] != null) 
             {
                 underlyingNameIDRef_ = underlyingNameNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(underlyingNameNode);
                 IDManager.SetID(underlyingNameIDRef_, ob);
             }
             else if (underlyingNameNode.Attributes["href"] != null)
             {
                 underlyingNameIDRef_ = underlyingNameNode.Attributes["href"].Value;
             }
             else
             {
                 underlyingName_ = new XsdTypeToken(underlyingNameNode);
             }
         }
         else
         {
             underlyingName_ = new XsdTypeToken(underlyingNameNode);
         }
     }
     
 
     XmlNode deltaNode = xmlNode.SelectSingleNode("delta");
     
     if (deltaNode != null)
     {
         if (deltaNode.Attributes["href"] != null || deltaNode.Attributes["id"] != null) 
         {
             if (deltaNode.Attributes["id"] != null) 
             {
                 deltaIDRef_ = deltaNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(deltaNode);
                 IDManager.SetID(deltaIDRef_, ob);
             }
             else if (deltaNode.Attributes["href"] != null)
             {
                 deltaIDRef_ = deltaNode.Attributes["href"].Value;
             }
             else
             {
                 delta_ = new XsdTypeDouble(deltaNode);
             }
         }
         else
         {
             delta_ = new XsdTypeDouble(deltaNode);
         }
     }
     
 
     XmlNode gammaNode = xmlNode.SelectSingleNode("gamma");
     
     if (gammaNode != null)
     {
         if (gammaNode.Attributes["href"] != null || gammaNode.Attributes["id"] != null) 
         {
             if (gammaNode.Attributes["id"] != null) 
             {
                 gammaIDRef_ = gammaNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(gammaNode);
                 IDManager.SetID(gammaIDRef_, ob);
             }
             else if (gammaNode.Attributes["href"] != null)
             {
                 gammaIDRef_ = gammaNode.Attributes["href"].Value;
             }
             else
             {
                 gamma_ = new XsdTypeToken(gammaNode);
             }
         }
         else
         {
             gamma_ = new XsdTypeToken(gammaNode);
         }
     }
     
 
     XmlNode vegaNode = xmlNode.SelectSingleNode("vega");
     
     if (vegaNode != null)
     {
         if (vegaNode.Attributes["href"] != null || vegaNode.Attributes["id"] != null) 
         {
             if (vegaNode.Attributes["id"] != null) 
             {
                 vegaIDRef_ = vegaNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(vegaNode);
                 IDManager.SetID(vegaIDRef_, ob);
             }
             else if (vegaNode.Attributes["href"] != null)
             {
                 vegaIDRef_ = vegaNode.Attributes["href"].Value;
             }
             else
             {
                 vega_ = new XsdTypeToken(vegaNode);
             }
         }
         else
         {
             vega_ = new XsdTypeToken(vegaNode);
         }
     }
     
 
 }
        public StepDownKIResult(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode underylingInfoResultNode = xmlNode.SelectSingleNode("underylingInfoResult");

            if (underylingInfoResultNode != null)
            {
                if (underylingInfoResultNode.Attributes["href"] != null || underylingInfoResultNode.Attributes["id"] != null)
                {
                    if (underylingInfoResultNode.Attributes["id"] != null)
                    {
                        underylingInfoResultIDRef_ = underylingInfoResultNode.Attributes["id"].Value;
                        UnderylingInfoResult ob = new UnderylingInfoResult(underylingInfoResultNode);
                        IDManager.SetID(underylingInfoResultIDRef_, ob);
                    }
                    else if (underylingInfoResultNode.Attributes["href"] != null)
                    {
                        underylingInfoResultIDRef_ = underylingInfoResultNode.Attributes["href"].Value;
                    }
                    else
                    {
                        underylingInfoResult_ = new UnderylingInfoResult(underylingInfoResultNode);
                    }
                }
                else
                {
                    underylingInfoResult_ = new UnderylingInfoResult(underylingInfoResultNode);
                }
            }


            XmlNode cashFlowInfoResultNode = xmlNode.SelectSingleNode("cashFlowInfoResult");

            if (cashFlowInfoResultNode != null)
            {
                if (cashFlowInfoResultNode.Attributes["href"] != null || cashFlowInfoResultNode.Attributes["id"] != null)
                {
                    if (cashFlowInfoResultNode.Attributes["id"] != null)
                    {
                        cashFlowInfoResultIDRef_ = cashFlowInfoResultNode.Attributes["id"].Value;
                        CashFlowInfoResult ob = new CashFlowInfoResult(cashFlowInfoResultNode);
                        IDManager.SetID(cashFlowInfoResultIDRef_, ob);
                    }
                    else if (cashFlowInfoResultNode.Attributes["href"] != null)
                    {
                        cashFlowInfoResultIDRef_ = cashFlowInfoResultNode.Attributes["href"].Value;
                    }
                    else
                    {
                        cashFlowInfoResult_ = new CashFlowInfoResult(cashFlowInfoResultNode);
                    }
                }
                else
                {
                    cashFlowInfoResult_ = new CashFlowInfoResult(cashFlowInfoResultNode);
                }
            }


            XmlNode thetaNode = xmlNode.SelectSingleNode("theta");

            if (thetaNode != null)
            {
                if (thetaNode.Attributes["href"] != null || thetaNode.Attributes["id"] != null)
                {
                    if (thetaNode.Attributes["id"] != null)
                    {
                        thetaIDRef_ = thetaNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(thetaNode);
                        IDManager.SetID(thetaIDRef_, ob);
                    }
                    else if (thetaNode.Attributes["href"] != null)
                    {
                        thetaIDRef_ = thetaNode.Attributes["href"].Value;
                    }
                    else
                    {
                        theta_ = new XsdTypeDouble(thetaNode);
                    }
                }
                else
                {
                    theta_ = new XsdTypeDouble(thetaNode);
                }
            }
        }
 public FixingInformation(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode initialValueNode = xmlNode.SelectSingleNode("initialValue");
     
     if (initialValueNode != null)
     {
         if (initialValueNode.Attributes["href"] != null || initialValueNode.Attributes["id"] != null) 
         {
             if (initialValueNode.Attributes["id"] != null) 
             {
                 initialValueIDRef_ = initialValueNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(initialValueNode);
                 IDManager.SetID(initialValueIDRef_, ob);
             }
             else if (initialValueNode.Attributes["href"] != null)
             {
                 initialValueIDRef_ = initialValueNode.Attributes["href"].Value;
             }
             else
             {
                 initialValue_ = new XsdTypeDouble(initialValueNode);
             }
         }
         else
         {
             initialValue_ = new XsdTypeDouble(initialValueNode);
         }
     }
     
 
     XmlNodeList fixingNodeList = xmlNode.SelectNodes("fixing");
     
     if (fixingNodeList != null)
     {
         this.fixing_ = new List<Fixing>();
         foreach (XmlNode item in fixingNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     fixingIDRef_ = item.Attributes["id"].Value;
                     fixing_.Add(new Fixing(item));
                     IDManager.SetID(fixingIDRef_, fixing_[fixing_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     fixingIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 fixing_.Add(new Fixing(item));
                 }
             }
             else
             {
                 fixing_.Add(new Fixing(item));
             }
         }
     }
     
 
 }
        public VariableValue(XmlNode xmlNode)
        {
            XmlNode indexRefNode = xmlNode.SelectSingleNode("indexRef");

            if (indexRefNode != null)
            {
                if (indexRefNode.Attributes["href"] != null || indexRefNode.Attributes["id"] != null)
                {
                    if (indexRefNode.Attributes["id"] != null)
                    {
                        indexRefIDRef_ = indexRefNode.Attributes["id"].Value;
                        IndexRef ob = new IndexRef(indexRefNode);
                        IDManager.SetID(indexRefIDRef_, ob);
                    }
                    else if (indexRefNode.Attributes["href"] != null)
                    {
                        indexRefIDRef_ = indexRefNode.Attributes["href"].Value;
                    }
                    else
                    {
                        indexRef_ = new IndexRef(indexRefNode);
                    }
                }
                else
                {
                    indexRef_ = new IndexRef(indexRefNode);
                }
            }


            XmlNode indexTimeRefNode = xmlNode.SelectSingleNode("indexTimeRef");

            if (indexTimeRefNode != null)
            {
                if (indexTimeRefNode.Attributes["href"] != null || indexTimeRefNode.Attributes["id"] != null)
                {
                    if (indexTimeRefNode.Attributes["id"] != null)
                    {
                        indexTimeRefIDRef_ = indexTimeRefNode.Attributes["id"].Value;
                        IndexTimeRef ob = new IndexTimeRef(indexTimeRefNode);
                        IDManager.SetID(indexTimeRefIDRef_, ob);
                    }
                    else if (indexTimeRefNode.Attributes["href"] != null)
                    {
                        indexTimeRefIDRef_ = indexTimeRefNode.Attributes["href"].Value;
                    }
                    else
                    {
                        indexTimeRef_ = new IndexTimeRef(indexTimeRefNode);
                    }
                }
                else
                {
                    indexTimeRef_ = new IndexTimeRef(indexTimeRefNode);
                }
            }


            XmlNode symbolNameNode = xmlNode.SelectSingleNode("symbolName");

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


            XmlNode constValueNode = xmlNode.SelectSingleNode("constValue");

            if (constValueNode != null)
            {
                if (constValueNode.Attributes["href"] != null || constValueNode.Attributes["id"] != null)
                {
                    if (constValueNode.Attributes["id"] != null)
                    {
                        constValueIDRef_ = constValueNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(constValueNode);
                        IDManager.SetID(constValueIDRef_, ob);
                    }
                    else if (constValueNode.Attributes["href"] != null)
                    {
                        constValueIDRef_ = constValueNode.Attributes["href"].Value;
                    }
                    else
                    {
                        constValue_ = new XsdTypeDouble(constValueNode);
                    }
                }
                else
                {
                    constValue_ = new XsdTypeDouble(constValueNode);
                }
            }
        }
 public SecuritiesInfo(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode notionalNode = xmlNode.SelectSingleNode("notional");
     
     if (notionalNode != null)
     {
         if (notionalNode.Attributes["href"] != null || notionalNode.Attributes["id"] != null) 
         {
             if (notionalNode.Attributes["id"] != null) 
             {
                 notionalIDRef_ = notionalNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(notionalNode);
                 IDManager.SetID(notionalIDRef_, ob);
             }
             else if (notionalNode.Attributes["href"] != null)
             {
                 notionalIDRef_ = notionalNode.Attributes["href"].Value;
             }
             else
             {
                 notional_ = new XsdTypeDate(notionalNode);
             }
         }
         else
         {
             notional_ = new XsdTypeDate(notionalNode);
         }
     }
     
 
     XmlNode tradeDateNode = xmlNode.SelectSingleNode("tradeDate");
     
     if (tradeDateNode != null)
     {
         if (tradeDateNode.Attributes["href"] != null || tradeDateNode.Attributes["id"] != null) 
         {
             if (tradeDateNode.Attributes["id"] != null) 
             {
                 tradeDateIDRef_ = tradeDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(tradeDateNode);
                 IDManager.SetID(tradeDateIDRef_, ob);
             }
             else if (tradeDateNode.Attributes["href"] != null)
             {
                 tradeDateIDRef_ = tradeDateNode.Attributes["href"].Value;
             }
             else
             {
                 tradeDate_ = new XsdTypeDate(tradeDateNode);
             }
         }
         else
         {
             tradeDate_ = new XsdTypeDate(tradeDateNode);
         }
     }
     
 
     XmlNode effectiveDateNode = xmlNode.SelectSingleNode("effectiveDate");
     
     if (effectiveDateNode != null)
     {
         if (effectiveDateNode.Attributes["href"] != null || effectiveDateNode.Attributes["id"] != null) 
         {
             if (effectiveDateNode.Attributes["id"] != null) 
             {
                 effectiveDateIDRef_ = effectiveDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(effectiveDateNode);
                 IDManager.SetID(effectiveDateIDRef_, ob);
             }
             else if (effectiveDateNode.Attributes["href"] != null)
             {
                 effectiveDateIDRef_ = effectiveDateNode.Attributes["href"].Value;
             }
             else
             {
                 effectiveDate_ = new XsdTypeDate(effectiveDateNode);
             }
         }
         else
         {
             effectiveDate_ = new XsdTypeDate(effectiveDateNode);
         }
     }
     
 
     XmlNode maturityDateNode = xmlNode.SelectSingleNode("maturityDate");
     
     if (maturityDateNode != null)
     {
         if (maturityDateNode.Attributes["href"] != null || maturityDateNode.Attributes["id"] != null) 
         {
             if (maturityDateNode.Attributes["id"] != null) 
             {
                 maturityDateIDRef_ = maturityDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(maturityDateNode);
                 IDManager.SetID(maturityDateIDRef_, ob);
             }
             else if (maturityDateNode.Attributes["href"] != null)
             {
                 maturityDateIDRef_ = maturityDateNode.Attributes["href"].Value;
             }
             else
             {
                 maturityDate_ = new XsdTypeDate(maturityDateNode);
             }
         }
         else
         {
             maturityDate_ = new XsdTypeDate(maturityDateNode);
         }
     }
     
 
     XmlNode calculationAmountNode = xmlNode.SelectSingleNode("calculationAmount");
     
     if (calculationAmountNode != null)
     {
         if (calculationAmountNode.Attributes["href"] != null || calculationAmountNode.Attributes["id"] != null) 
         {
             if (calculationAmountNode.Attributes["id"] != null) 
             {
                 calculationAmountIDRef_ = calculationAmountNode.Attributes["id"].Value;
                 CalculationAmount ob = new CalculationAmount(calculationAmountNode);
                 IDManager.SetID(calculationAmountIDRef_, ob);
             }
             else if (calculationAmountNode.Attributes["href"] != null)
             {
                 calculationAmountIDRef_ = calculationAmountNode.Attributes["href"].Value;
             }
             else
             {
                 calculationAmount_ = new CalculationAmount(calculationAmountNode);
             }
         }
         else
         {
             calculationAmount_ = new CalculationAmount(calculationAmountNode);
         }
     }
     
 
     XmlNode premiumNode = xmlNode.SelectSingleNode("premium");
     
     if (premiumNode != null)
     {
         if (premiumNode.Attributes["href"] != null || premiumNode.Attributes["id"] != null) 
         {
             if (premiumNode.Attributes["id"] != null) 
             {
                 premiumIDRef_ = premiumNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(premiumNode);
                 IDManager.SetID(premiumIDRef_, ob);
             }
             else if (premiumNode.Attributes["href"] != null)
             {
                 premiumIDRef_ = premiumNode.Attributes["href"].Value;
             }
             else
             {
                 premium_ = new XsdTypeDouble(premiumNode);
             }
         }
         else
         {
             premium_ = new XsdTypeDouble(premiumNode);
         }
     }
     
 
 }
 public SingleBarrier(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode payoffDateInfoNode = xmlNode.SelectSingleNode("payoffDateInfo");
     
     if (payoffDateInfoNode != null)
     {
         if (payoffDateInfoNode.Attributes["href"] != null || payoffDateInfoNode.Attributes["id"] != null) 
         {
             if (payoffDateInfoNode.Attributes["id"] != null) 
             {
                 payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["id"].Value;
                 PayoffDateInfo ob = new PayoffDateInfo(payoffDateInfoNode);
                 IDManager.SetID(payoffDateInfoIDRef_, ob);
             }
             else if (payoffDateInfoNode.Attributes["href"] != null)
             {
                 payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["href"].Value;
             }
             else
             {
                 payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
             }
         }
         else
         {
             payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
         }
     }
     
 
     XmlNode participateRateNode = xmlNode.SelectSingleNode("participateRate");
     
     if (participateRateNode != null)
     {
         if (participateRateNode.Attributes["href"] != null || participateRateNode.Attributes["id"] != null) 
         {
             if (participateRateNode.Attributes["id"] != null) 
             {
                 participateRateIDRef_ = participateRateNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(participateRateNode);
                 IDManager.SetID(participateRateIDRef_, ob);
             }
             else if (participateRateNode.Attributes["href"] != null)
             {
                 participateRateIDRef_ = participateRateNode.Attributes["href"].Value;
             }
             else
             {
                 participateRate_ = new XsdTypeDouble(participateRateNode);
             }
         }
         else
         {
             participateRate_ = new XsdTypeDouble(participateRateNode);
         }
     }
     
 
     XmlNode barrierInfoNode = xmlNode.SelectSingleNode("barrierInfo");
     
     if (barrierInfoNode != null)
     {
         if (barrierInfoNode.Attributes["href"] != null || barrierInfoNode.Attributes["id"] != null) 
         {
             if (barrierInfoNode.Attributes["id"] != null) 
             {
                 barrierInfoIDRef_ = barrierInfoNode.Attributes["id"].Value;
                 BarrierInfo ob = new BarrierInfo(barrierInfoNode);
                 IDManager.SetID(barrierInfoIDRef_, ob);
             }
             else if (barrierInfoNode.Attributes["href"] != null)
             {
                 barrierInfoIDRef_ = barrierInfoNode.Attributes["href"].Value;
             }
             else
             {
                 barrierInfo_ = new BarrierInfo(barrierInfoNode);
             }
         }
         else
         {
             barrierInfo_ = new BarrierInfo(barrierInfoNode);
         }
     }
     
 
     XmlNode rebateNode = xmlNode.SelectSingleNode("rebate");
     
     if (rebateNode != null)
     {
         if (rebateNode.Attributes["href"] != null || rebateNode.Attributes["id"] != null) 
         {
             if (rebateNode.Attributes["id"] != null) 
             {
                 rebateIDRef_ = rebateNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(rebateNode);
                 IDManager.SetID(rebateIDRef_, ob);
             }
             else if (rebateNode.Attributes["href"] != null)
             {
                 rebateIDRef_ = rebateNode.Attributes["href"].Value;
             }
             else
             {
                 rebate_ = new XsdTypeDouble(rebateNode);
             }
         }
         else
         {
             rebate_ = new XsdTypeDouble(rebateNode);
         }
     }
     
 
 }
        public Excel_valueSideResult(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode typeNode = xmlNode.SelectSingleNode("type");

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


            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;
                        XsdTypeDouble ob = new XsdTypeDouble(currencyNode);
                        IDManager.SetID(currencyIDRef_, ob);
                    }
                    else if (currencyNode.Attributes["href"] != null)
                    {
                        currencyIDRef_ = currencyNode.Attributes["href"].Value;
                    }
                    else
                    {
                        currency_ = new XsdTypeDouble(currencyNode);
                    }
                }
                else
                {
                    currency_ = new XsdTypeDouble(currencyNode);
                }
            }


            XmlNode dirtyNode = xmlNode.SelectSingleNode("dirty");

            if (dirtyNode != null)
            {
                if (dirtyNode.Attributes["href"] != null || dirtyNode.Attributes["id"] != null)
                {
                    if (dirtyNode.Attributes["id"] != null)
                    {
                        dirtyIDRef_ = dirtyNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(dirtyNode);
                        IDManager.SetID(dirtyIDRef_, ob);
                    }
                    else if (dirtyNode.Attributes["href"] != null)
                    {
                        dirtyIDRef_ = dirtyNode.Attributes["href"].Value;
                    }
                    else
                    {
                        dirty_ = new XsdTypeDouble(dirtyNode);
                    }
                }
                else
                {
                    dirty_ = new XsdTypeDouble(dirtyNode);
                }
            }


            XmlNode cleanNode = xmlNode.SelectSingleNode("clean");

            if (cleanNode != null)
            {
                if (cleanNode.Attributes["href"] != null || cleanNode.Attributes["id"] != null)
                {
                    if (cleanNode.Attributes["id"] != null)
                    {
                        cleanIDRef_ = cleanNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(cleanNode);
                        IDManager.SetID(cleanIDRef_, ob);
                    }
                    else if (cleanNode.Attributes["href"] != null)
                    {
                        cleanIDRef_ = cleanNode.Attributes["href"].Value;
                    }
                    else
                    {
                        clean_ = new XsdTypeDouble(cleanNode);
                    }
                }
                else
                {
                    clean_ = new XsdTypeDouble(cleanNode);
                }
            }


            XmlNode accrualAmtNode = xmlNode.SelectSingleNode("accrualAmt");

            if (accrualAmtNode != null)
            {
                if (accrualAmtNode.Attributes["href"] != null || accrualAmtNode.Attributes["id"] != null)
                {
                    if (accrualAmtNode.Attributes["id"] != null)
                    {
                        accrualAmtIDRef_ = accrualAmtNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(accrualAmtNode);
                        IDManager.SetID(accrualAmtIDRef_, ob);
                    }
                    else if (accrualAmtNode.Attributes["href"] != null)
                    {
                        accrualAmtIDRef_ = accrualAmtNode.Attributes["href"].Value;
                    }
                    else
                    {
                        accrualAmt_ = new XsdTypeDouble(accrualAmtNode);
                    }
                }
                else
                {
                    accrualAmt_ = new XsdTypeDouble(accrualAmtNode);
                }
            }


            XmlNode optionNode = xmlNode.SelectSingleNode("option");

            if (optionNode != null)
            {
                if (optionNode.Attributes["href"] != null || optionNode.Attributes["id"] != null)
                {
                    if (optionNode.Attributes["id"] != null)
                    {
                        optionIDRef_ = optionNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(optionNode);
                        IDManager.SetID(optionIDRef_, ob);
                    }
                    else if (optionNode.Attributes["href"] != null)
                    {
                        optionIDRef_ = optionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        option_ = new XsdTypeDouble(optionNode);
                    }
                }
                else
                {
                    option_ = new XsdTypeDouble(optionNode);
                }
            }
        }
        public FixingInformation(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode initialValueNode = xmlNode.SelectSingleNode("initialValue");

            if (initialValueNode != null)
            {
                if (initialValueNode.Attributes["href"] != null || initialValueNode.Attributes["id"] != null)
                {
                    if (initialValueNode.Attributes["id"] != null)
                    {
                        initialValueIDRef_ = initialValueNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(initialValueNode);
                        IDManager.SetID(initialValueIDRef_, ob);
                    }
                    else if (initialValueNode.Attributes["href"] != null)
                    {
                        initialValueIDRef_ = initialValueNode.Attributes["href"].Value;
                    }
                    else
                    {
                        initialValue_ = new XsdTypeDouble(initialValueNode);
                    }
                }
                else
                {
                    initialValue_ = new XsdTypeDouble(initialValueNode);
                }
            }


            XmlNodeList fixingNodeList = xmlNode.SelectNodes("fixing");

            if (fixingNodeList != null)
            {
                this.fixing_ = new List <Fixing>();
                foreach (XmlNode item in fixingNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            fixingIDRef_ = item.Attributes["id"].Value;
                            fixing_.Add(new Fixing(item));
                            IDManager.SetID(fixingIDRef_, fixing_[fixing_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            fixingIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            fixing_.Add(new Fixing(item));
                        }
                    }
                    else
                    {
                        fixing_.Add(new Fixing(item));
                    }
                }
            }
        }
        public GeometricBM(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode currentValueNode = xmlNode.SelectSingleNode("currentValue");

            if (currentValueNode != null)
            {
                if (currentValueNode.Attributes["href"] != null || currentValueNode.Attributes["id"] != null)
                {
                    if (currentValueNode.Attributes["id"] != null)
                    {
                        currentValueIDRef_ = currentValueNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(currentValueNode);
                        IDManager.SetID(currentValueIDRef_, ob);
                    }
                    else if (currentValueNode.Attributes["href"] != null)
                    {
                        currentValueIDRef_ = currentValueNode.Attributes["href"].Value;
                    }
                    else
                    {
                        currentValue_ = new XsdTypeDouble(currentValueNode);
                    }
                }
                else
                {
                    currentValue_ = new XsdTypeDouble(currentValueNode);
                }
            }


            XmlNode driftNode = xmlNode.SelectSingleNode("drift");

            if (driftNode != null)
            {
                if (driftNode.Attributes["href"] != null || driftNode.Attributes["id"] != null)
                {
                    if (driftNode.Attributes["id"] != null)
                    {
                        driftIDRef_ = driftNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(driftNode);
                        IDManager.SetID(driftIDRef_, ob);
                    }
                    else if (driftNode.Attributes["href"] != null)
                    {
                        driftIDRef_ = driftNode.Attributes["href"].Value;
                    }
                    else
                    {
                        drift_ = new XsdTypeDouble(driftNode);
                    }
                }
                else
                {
                    drift_ = new XsdTypeDouble(driftNode);
                }
            }


            XmlNode dividendNode = xmlNode.SelectSingleNode("dividend");

            if (dividendNode != null)
            {
                if (dividendNode.Attributes["href"] != null || dividendNode.Attributes["id"] != null)
                {
                    if (dividendNode.Attributes["id"] != null)
                    {
                        dividendIDRef_ = dividendNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(dividendNode);
                        IDManager.SetID(dividendIDRef_, ob);
                    }
                    else if (dividendNode.Attributes["href"] != null)
                    {
                        dividendIDRef_ = dividendNode.Attributes["href"].Value;
                    }
                    else
                    {
                        dividend_ = new XsdTypeDouble(dividendNode);
                    }
                }
                else
                {
                    dividend_ = new XsdTypeDouble(dividendNode);
                }
            }


            XmlNode volatilityNode = xmlNode.SelectSingleNode("volatility");

            if (volatilityNode != null)
            {
                if (volatilityNode.Attributes["href"] != null || volatilityNode.Attributes["id"] != null)
                {
                    if (volatilityNode.Attributes["id"] != null)
                    {
                        volatilityIDRef_ = volatilityNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(volatilityNode);
                        IDManager.SetID(volatilityIDRef_, ob);
                    }
                    else if (volatilityNode.Attributes["href"] != null)
                    {
                        volatilityIDRef_ = volatilityNode.Attributes["href"].Value;
                    }
                    else
                    {
                        volatility_ = new XsdTypeDouble(volatilityNode);
                    }
                }
                else
                {
                    volatility_ = new XsdTypeDouble(volatilityNode);
                }
            }
        }
        public HullWhiteGreekResult(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode underlyingNameNode = xmlNode.SelectSingleNode("underlyingName");

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


            XmlNode deltaNode = xmlNode.SelectSingleNode("delta");

            if (deltaNode != null)
            {
                if (deltaNode.Attributes["href"] != null || deltaNode.Attributes["id"] != null)
                {
                    if (deltaNode.Attributes["id"] != null)
                    {
                        deltaIDRef_ = deltaNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(deltaNode);
                        IDManager.SetID(deltaIDRef_, ob);
                    }
                    else if (deltaNode.Attributes["href"] != null)
                    {
                        deltaIDRef_ = deltaNode.Attributes["href"].Value;
                    }
                    else
                    {
                        delta_ = new XsdTypeDouble(deltaNode);
                    }
                }
                else
                {
                    delta_ = new XsdTypeDouble(deltaNode);
                }
            }


            XmlNode gammaNode = xmlNode.SelectSingleNode("gamma");

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


            XmlNode vegaNode = xmlNode.SelectSingleNode("vega");

            if (vegaNode != null)
            {
                if (vegaNode.Attributes["href"] != null || vegaNode.Attributes["id"] != null)
                {
                    if (vegaNode.Attributes["id"] != null)
                    {
                        vegaIDRef_ = vegaNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(vegaNode);
                        IDManager.SetID(vegaIDRef_, ob);
                    }
                    else if (vegaNode.Attributes["href"] != null)
                    {
                        vegaIDRef_ = vegaNode.Attributes["href"].Value;
                    }
                    else
                    {
                        vega_ = new XsdTypeToken(vegaNode);
                    }
                }
                else
                {
                    vega_ = new XsdTypeToken(vegaNode);
                }
            }
        }
 public Excel_valueSideResult(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode typeNode = xmlNode.SelectSingleNode("type");
     
     if (typeNode != null)
     {
         if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null) 
         {
             if (typeNode.Attributes["id"] != null) 
             {
                 typeIDRef_ = typeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(typeNode);
                 IDManager.SetID(typeIDRef_, ob);
             }
             else if (typeNode.Attributes["href"] != null)
             {
                 typeIDRef_ = typeNode.Attributes["href"].Value;
             }
             else
             {
                 type_ = new XsdTypeToken(typeNode);
             }
         }
         else
         {
             type_ = new XsdTypeToken(typeNode);
         }
     }
     
 
     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;
                 XsdTypeDouble ob = new XsdTypeDouble(currencyNode);
                 IDManager.SetID(currencyIDRef_, ob);
             }
             else if (currencyNode.Attributes["href"] != null)
             {
                 currencyIDRef_ = currencyNode.Attributes["href"].Value;
             }
             else
             {
                 currency_ = new XsdTypeDouble(currencyNode);
             }
         }
         else
         {
             currency_ = new XsdTypeDouble(currencyNode);
         }
     }
     
 
     XmlNode dirtyNode = xmlNode.SelectSingleNode("dirty");
     
     if (dirtyNode != null)
     {
         if (dirtyNode.Attributes["href"] != null || dirtyNode.Attributes["id"] != null) 
         {
             if (dirtyNode.Attributes["id"] != null) 
             {
                 dirtyIDRef_ = dirtyNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(dirtyNode);
                 IDManager.SetID(dirtyIDRef_, ob);
             }
             else if (dirtyNode.Attributes["href"] != null)
             {
                 dirtyIDRef_ = dirtyNode.Attributes["href"].Value;
             }
             else
             {
                 dirty_ = new XsdTypeDouble(dirtyNode);
             }
         }
         else
         {
             dirty_ = new XsdTypeDouble(dirtyNode);
         }
     }
     
 
     XmlNode cleanNode = xmlNode.SelectSingleNode("clean");
     
     if (cleanNode != null)
     {
         if (cleanNode.Attributes["href"] != null || cleanNode.Attributes["id"] != null) 
         {
             if (cleanNode.Attributes["id"] != null) 
             {
                 cleanIDRef_ = cleanNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(cleanNode);
                 IDManager.SetID(cleanIDRef_, ob);
             }
             else if (cleanNode.Attributes["href"] != null)
             {
                 cleanIDRef_ = cleanNode.Attributes["href"].Value;
             }
             else
             {
                 clean_ = new XsdTypeDouble(cleanNode);
             }
         }
         else
         {
             clean_ = new XsdTypeDouble(cleanNode);
         }
     }
     
 
     XmlNode accrualAmtNode = xmlNode.SelectSingleNode("accrualAmt");
     
     if (accrualAmtNode != null)
     {
         if (accrualAmtNode.Attributes["href"] != null || accrualAmtNode.Attributes["id"] != null) 
         {
             if (accrualAmtNode.Attributes["id"] != null) 
             {
                 accrualAmtIDRef_ = accrualAmtNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(accrualAmtNode);
                 IDManager.SetID(accrualAmtIDRef_, ob);
             }
             else if (accrualAmtNode.Attributes["href"] != null)
             {
                 accrualAmtIDRef_ = accrualAmtNode.Attributes["href"].Value;
             }
             else
             {
                 accrualAmt_ = new XsdTypeDouble(accrualAmtNode);
             }
         }
         else
         {
             accrualAmt_ = new XsdTypeDouble(accrualAmtNode);
         }
     }
     
 
     XmlNode optionNode = xmlNode.SelectSingleNode("option");
     
     if (optionNode != null)
     {
         if (optionNode.Attributes["href"] != null || optionNode.Attributes["id"] != null) 
         {
             if (optionNode.Attributes["id"] != null) 
             {
                 optionIDRef_ = optionNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(optionNode);
                 IDManager.SetID(optionIDRef_, ob);
             }
             else if (optionNode.Attributes["href"] != null)
             {
                 optionIDRef_ = optionNode.Attributes["href"].Value;
             }
             else
             {
                 option_ = new XsdTypeDouble(optionNode);
             }
         }
         else
         {
             option_ = new XsdTypeDouble(optionNode);
         }
     }
     
 
 }
        public Correlation_para(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode firstNode = xmlNode.SelectSingleNode("first");

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


            XmlNode secondNode = xmlNode.SelectSingleNode("second");

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


            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;
                        XsdTypeDouble ob = new XsdTypeDouble(valueNode);
                        IDManager.SetID(valueIDRef_, ob);
                    }
                    else if (valueNode.Attributes["href"] != null)
                    {
                        valueIDRef_ = valueNode.Attributes["href"].Value;
                    }
                    else
                    {
                        value_ = new XsdTypeDouble(valueNode);
                    }
                }
                else
                {
                    value_ = new XsdTypeDouble(valueNode);
                }
            }
        }
 public StepDownKIResult(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode underylingInfoResultNode = xmlNode.SelectSingleNode("underylingInfoResult");
     
     if (underylingInfoResultNode != null)
     {
         if (underylingInfoResultNode.Attributes["href"] != null || underylingInfoResultNode.Attributes["id"] != null) 
         {
             if (underylingInfoResultNode.Attributes["id"] != null) 
             {
                 underylingInfoResultIDRef_ = underylingInfoResultNode.Attributes["id"].Value;
                 UnderylingInfoResult ob = new UnderylingInfoResult(underylingInfoResultNode);
                 IDManager.SetID(underylingInfoResultIDRef_, ob);
             }
             else if (underylingInfoResultNode.Attributes["href"] != null)
             {
                 underylingInfoResultIDRef_ = underylingInfoResultNode.Attributes["href"].Value;
             }
             else
             {
                 underylingInfoResult_ = new UnderylingInfoResult(underylingInfoResultNode);
             }
         }
         else
         {
             underylingInfoResult_ = new UnderylingInfoResult(underylingInfoResultNode);
         }
     }
     
 
     XmlNode cashFlowInfoResultNode = xmlNode.SelectSingleNode("cashFlowInfoResult");
     
     if (cashFlowInfoResultNode != null)
     {
         if (cashFlowInfoResultNode.Attributes["href"] != null || cashFlowInfoResultNode.Attributes["id"] != null) 
         {
             if (cashFlowInfoResultNode.Attributes["id"] != null) 
             {
                 cashFlowInfoResultIDRef_ = cashFlowInfoResultNode.Attributes["id"].Value;
                 CashFlowInfoResult ob = new CashFlowInfoResult(cashFlowInfoResultNode);
                 IDManager.SetID(cashFlowInfoResultIDRef_, ob);
             }
             else if (cashFlowInfoResultNode.Attributes["href"] != null)
             {
                 cashFlowInfoResultIDRef_ = cashFlowInfoResultNode.Attributes["href"].Value;
             }
             else
             {
                 cashFlowInfoResult_ = new CashFlowInfoResult(cashFlowInfoResultNode);
             }
         }
         else
         {
             cashFlowInfoResult_ = new CashFlowInfoResult(cashFlowInfoResultNode);
         }
     }
     
 
     XmlNode thetaNode = xmlNode.SelectSingleNode("theta");
     
     if (thetaNode != null)
     {
         if (thetaNode.Attributes["href"] != null || thetaNode.Attributes["id"] != null) 
         {
             if (thetaNode.Attributes["id"] != null) 
             {
                 thetaIDRef_ = thetaNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(thetaNode);
                 IDManager.SetID(thetaIDRef_, ob);
             }
             else if (thetaNode.Attributes["href"] != null)
             {
                 thetaIDRef_ = thetaNode.Attributes["href"].Value;
             }
             else
             {
                 theta_ = new XsdTypeDouble(thetaNode);
             }
         }
         else
         {
             theta_ = new XsdTypeDouble(thetaNode);
         }
     }
     
 
 }
 public VanillaPutFunction(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode partiRateNode = xmlNode.SelectSingleNode("partiRate");
     
     if (partiRateNode != null)
     {
         if (partiRateNode.Attributes["href"] != null || partiRateNode.Attributes["id"] != null) 
         {
             if (partiRateNode.Attributes["id"] != null) 
             {
                 partiRateIDRef_ = partiRateNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(partiRateNode);
                 IDManager.SetID(partiRateIDRef_, ob);
             }
             else if (partiRateNode.Attributes["href"] != null)
             {
                 partiRateIDRef_ = partiRateNode.Attributes["href"].Value;
             }
             else
             {
                 partiRate_ = new XsdTypeDouble(partiRateNode);
             }
         }
         else
         {
             partiRate_ = new XsdTypeDouble(partiRateNode);
         }
     }
     
 
     XmlNode strikeNode = xmlNode.SelectSingleNode("strike");
     
     if (strikeNode != null)
     {
         if (strikeNode.Attributes["href"] != null || strikeNode.Attributes["id"] != null) 
         {
             if (strikeNode.Attributes["id"] != null) 
             {
                 strikeIDRef_ = strikeNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(strikeNode);
                 IDManager.SetID(strikeIDRef_, ob);
             }
             else if (strikeNode.Attributes["href"] != null)
             {
                 strikeIDRef_ = strikeNode.Attributes["href"].Value;
             }
             else
             {
                 strike_ = new XsdTypeDouble(strikeNode);
             }
         }
         else
         {
             strike_ = new XsdTypeDouble(strikeNode);
         }
     }
     
 
     XmlNode spreadNode = xmlNode.SelectSingleNode("spread");
     
     if (spreadNode != null)
     {
         if (spreadNode.Attributes["href"] != null || spreadNode.Attributes["id"] != null) 
         {
             if (spreadNode.Attributes["id"] != null) 
             {
                 spreadIDRef_ = spreadNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(spreadNode);
                 IDManager.SetID(spreadIDRef_, ob);
             }
             else if (spreadNode.Attributes["href"] != null)
             {
                 spreadIDRef_ = spreadNode.Attributes["href"].Value;
             }
             else
             {
                 spread_ = new XsdTypeDouble(spreadNode);
             }
         }
         else
         {
             spread_ = new XsdTypeDouble(spreadNode);
         }
     }
     
 
 }
        public NthDefaultTrait(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode typeNode = xmlNode.SelectSingleNode("type");

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


            XmlNode nthNode = xmlNode.SelectSingleNode("nth");

            if (nthNode != null)
            {
                if (nthNode.Attributes["href"] != null || nthNode.Attributes["id"] != null)
                {
                    if (nthNode.Attributes["id"] != null)
                    {
                        nthIDRef_ = nthNode.Attributes["id"].Value;
                        XsdTypeInt ob = new XsdTypeInt(nthNode);
                        IDManager.SetID(nthIDRef_, ob);
                    }
                    else if (nthNode.Attributes["href"] != null)
                    {
                        nthIDRef_ = nthNode.Attributes["href"].Value;
                    }
                    else
                    {
                        nth_ = new XsdTypeInt(nthNode);
                    }
                }
                else
                {
                    nth_ = new XsdTypeInt(nthNode);
                }
            }


            XmlNode correlationNode = xmlNode.SelectSingleNode("correlation");

            if (correlationNode != null)
            {
                if (correlationNode.Attributes["href"] != null || correlationNode.Attributes["id"] != null)
                {
                    if (correlationNode.Attributes["id"] != null)
                    {
                        correlationIDRef_ = correlationNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(correlationNode);
                        IDManager.SetID(correlationIDRef_, ob);
                    }
                    else if (correlationNode.Attributes["href"] != null)
                    {
                        correlationIDRef_ = correlationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        correlation_ = new XsdTypeDouble(correlationNode);
                    }
                }
                else
                {
                    correlation_ = new XsdTypeDouble(correlationNode);
                }
            }
        }
Пример #38
0
        public Range1D(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode lowerBoundNode = xmlNode.SelectSingleNode("lowerBound");

            if (lowerBoundNode != null)
            {
                if (lowerBoundNode.Attributes["href"] != null || lowerBoundNode.Attributes["id"] != null)
                {
                    if (lowerBoundNode.Attributes["id"] != null)
                    {
                        lowerBoundIDRef_ = lowerBoundNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(lowerBoundNode);
                        IDManager.SetID(lowerBoundIDRef_, ob);
                    }
                    else if (lowerBoundNode.Attributes["href"] != null)
                    {
                        lowerBoundIDRef_ = lowerBoundNode.Attributes["href"].Value;
                    }
                    else
                    {
                        lowerBound_ = new XsdTypeDouble(lowerBoundNode);
                    }
                }
                else
                {
                    lowerBound_ = new XsdTypeDouble(lowerBoundNode);
                }
            }


            XmlNode upperBoundNode = xmlNode.SelectSingleNode("upperBound");

            if (upperBoundNode != null)
            {
                if (upperBoundNode.Attributes["href"] != null || upperBoundNode.Attributes["id"] != null)
                {
                    if (upperBoundNode.Attributes["id"] != null)
                    {
                        upperBoundIDRef_ = upperBoundNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(upperBoundNode);
                        IDManager.SetID(upperBoundIDRef_, ob);
                    }
                    else if (upperBoundNode.Attributes["href"] != null)
                    {
                        upperBoundIDRef_ = upperBoundNode.Attributes["href"].Value;
                    }
                    else
                    {
                        upperBound_ = new XsdTypeDouble(upperBoundNode);
                    }
                }
                else
                {
                    upperBound_ = new XsdTypeDouble(upperBoundNode);
                }
            }


            XmlNode lowerBoundEqualityNode = xmlNode.SelectSingleNode("lowerBoundEquality");

            if (lowerBoundEqualityNode != null)
            {
                if (lowerBoundEqualityNode.Attributes["href"] != null || lowerBoundEqualityNode.Attributes["id"] != null)
                {
                    if (lowerBoundEqualityNode.Attributes["id"] != null)
                    {
                        lowerBoundEqualityIDRef_ = lowerBoundEqualityNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(lowerBoundEqualityNode);
                        IDManager.SetID(lowerBoundEqualityIDRef_, ob);
                    }
                    else if (lowerBoundEqualityNode.Attributes["href"] != null)
                    {
                        lowerBoundEqualityIDRef_ = lowerBoundEqualityNode.Attributes["href"].Value;
                    }
                    else
                    {
                        lowerBoundEquality_ = new XsdTypeDouble(lowerBoundEqualityNode);
                    }
                }
                else
                {
                    lowerBoundEquality_ = new XsdTypeDouble(lowerBoundEqualityNode);
                }
            }


            XmlNode upperBoundEqualityNode = xmlNode.SelectSingleNode("upperBoundEquality");

            if (upperBoundEqualityNode != null)
            {
                if (upperBoundEqualityNode.Attributes["href"] != null || upperBoundEqualityNode.Attributes["id"] != null)
                {
                    if (upperBoundEqualityNode.Attributes["id"] != null)
                    {
                        upperBoundEqualityIDRef_ = upperBoundEqualityNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(upperBoundEqualityNode);
                        IDManager.SetID(upperBoundEqualityIDRef_, ob);
                    }
                    else if (upperBoundEqualityNode.Attributes["href"] != null)
                    {
                        upperBoundEqualityIDRef_ = upperBoundEqualityNode.Attributes["href"].Value;
                    }
                    else
                    {
                        upperBoundEquality_ = new XsdTypeDouble(upperBoundEqualityNode);
                    }
                }
                else
                {
                    upperBoundEquality_ = new XsdTypeDouble(upperBoundEqualityNode);
                }
            }
        }
 public ForwardModel(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode currentValueNode = xmlNode.SelectSingleNode("currentValue");
     
     if (currentValueNode != null)
     {
         if (currentValueNode.Attributes["href"] != null || currentValueNode.Attributes["id"] != null) 
         {
             if (currentValueNode.Attributes["id"] != null) 
             {
                 currentValueIDRef_ = currentValueNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(currentValueNode);
                 IDManager.SetID(currentValueIDRef_, ob);
             }
             else if (currentValueNode.Attributes["href"] != null)
             {
                 currentValueIDRef_ = currentValueNode.Attributes["href"].Value;
             }
             else
             {
                 currentValue_ = new XsdTypeDouble(currentValueNode);
             }
         }
         else
         {
             currentValue_ = new XsdTypeDouble(currentValueNode);
         }
     }
     
 
     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;
                 Tenor ob = new Tenor(tenorNode);
                 IDManager.SetID(tenorIDRef_, ob);
             }
             else if (tenorNode.Attributes["href"] != null)
             {
                 tenorIDRef_ = tenorNode.Attributes["href"].Value;
             }
             else
             {
                 tenor_ = new Tenor(tenorNode);
             }
         }
         else
         {
             tenor_ = new Tenor(tenorNode);
         }
     }
     
 
     XmlNode fittingYieldCurveNode = xmlNode.SelectSingleNode("fittingYieldCurve");
     
     if (fittingYieldCurveNode != null)
     {
         if (fittingYieldCurveNode.Attributes["href"] != null || fittingYieldCurveNode.Attributes["id"] != null) 
         {
             if (fittingYieldCurveNode.Attributes["id"] != null) 
             {
                 fittingYieldCurveIDRef_ = fittingYieldCurveNode.Attributes["id"].Value;
                 FittingYieldCurve ob = new FittingYieldCurve(fittingYieldCurveNode);
                 IDManager.SetID(fittingYieldCurveIDRef_, ob);
             }
             else if (fittingYieldCurveNode.Attributes["href"] != null)
             {
                 fittingYieldCurveIDRef_ = fittingYieldCurveNode.Attributes["href"].Value;
             }
             else
             {
                 fittingYieldCurve_ = new FittingYieldCurve(fittingYieldCurveNode);
             }
         }
         else
         {
             fittingYieldCurve_ = new FittingYieldCurve(fittingYieldCurveNode);
         }
     }
     
 
 }
 public VanillaFloatingRatePayoff_A(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode dayCounterNode = xmlNode.SelectSingleNode("dayCounter");
     
     if (dayCounterNode != null)
     {
         if (dayCounterNode.Attributes["href"] != null || dayCounterNode.Attributes["id"] != null) 
         {
             if (dayCounterNode.Attributes["id"] != null) 
             {
                 dayCounterIDRef_ = dayCounterNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(dayCounterNode);
                 IDManager.SetID(dayCounterIDRef_, ob);
             }
             else if (dayCounterNode.Attributes["href"] != null)
             {
                 dayCounterIDRef_ = dayCounterNode.Attributes["href"].Value;
             }
             else
             {
                 dayCounter_ = new XsdTypeToken(dayCounterNode);
             }
         }
         else
         {
             dayCounter_ = new XsdTypeToken(dayCounterNode);
         }
     }
     
 
     XmlNode calculationStartDateNode = xmlNode.SelectSingleNode("calculationStartDate");
     
     if (calculationStartDateNode != null)
     {
         if (calculationStartDateNode.Attributes["href"] != null || calculationStartDateNode.Attributes["id"] != null) 
         {
             if (calculationStartDateNode.Attributes["id"] != null) 
             {
                 calculationStartDateIDRef_ = calculationStartDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(calculationStartDateNode);
                 IDManager.SetID(calculationStartDateIDRef_, ob);
             }
             else if (calculationStartDateNode.Attributes["href"] != null)
             {
                 calculationStartDateIDRef_ = calculationStartDateNode.Attributes["href"].Value;
             }
             else
             {
                 calculationStartDate_ = new XsdTypeDate(calculationStartDateNode);
             }
         }
         else
         {
             calculationStartDate_ = new XsdTypeDate(calculationStartDateNode);
         }
     }
     
 
     XmlNode calculationEndDateNode = xmlNode.SelectSingleNode("calculationEndDate");
     
     if (calculationEndDateNode != null)
     {
         if (calculationEndDateNode.Attributes["href"] != null || calculationEndDateNode.Attributes["id"] != null) 
         {
             if (calculationEndDateNode.Attributes["id"] != null) 
             {
                 calculationEndDateIDRef_ = calculationEndDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(calculationEndDateNode);
                 IDManager.SetID(calculationEndDateIDRef_, ob);
             }
             else if (calculationEndDateNode.Attributes["href"] != null)
             {
                 calculationEndDateIDRef_ = calculationEndDateNode.Attributes["href"].Value;
             }
             else
             {
                 calculationEndDate_ = new XsdTypeDate(calculationEndDateNode);
             }
         }
         else
         {
             calculationEndDate_ = new XsdTypeDate(calculationEndDateNode);
         }
     }
     
 
     XmlNode gearingNode = xmlNode.SelectSingleNode("gearing");
     
     if (gearingNode != null)
     {
         if (gearingNode.Attributes["href"] != null || gearingNode.Attributes["id"] != null) 
         {
             if (gearingNode.Attributes["id"] != null) 
             {
                 gearingIDRef_ = gearingNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(gearingNode);
                 IDManager.SetID(gearingIDRef_, ob);
             }
             else if (gearingNode.Attributes["href"] != null)
             {
                 gearingIDRef_ = gearingNode.Attributes["href"].Value;
             }
             else
             {
                 gearing_ = new XsdTypeDouble(gearingNode);
             }
         }
         else
         {
             gearing_ = new XsdTypeDouble(gearingNode);
         }
     }
     
 
     XmlNode spreadNode = xmlNode.SelectSingleNode("spread");
     
     if (spreadNode != null)
     {
         if (spreadNode.Attributes["href"] != null || spreadNode.Attributes["id"] != null) 
         {
             if (spreadNode.Attributes["id"] != null) 
             {
                 spreadIDRef_ = spreadNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(spreadNode);
                 IDManager.SetID(spreadIDRef_, ob);
             }
             else if (spreadNode.Attributes["href"] != null)
             {
                 spreadIDRef_ = spreadNode.Attributes["href"].Value;
             }
             else
             {
                 spread_ = new XsdTypeDouble(spreadNode);
             }
         }
         else
         {
             spread_ = new XsdTypeDouble(spreadNode);
         }
     }
     
 
     XmlNode referenceStrNode = xmlNode.SelectSingleNode("referenceStr");
     
     if (referenceStrNode != null)
     {
         if (referenceStrNode.Attributes["href"] != null || referenceStrNode.Attributes["id"] != null) 
         {
             if (referenceStrNode.Attributes["id"] != null) 
             {
                 referenceStrIDRef_ = referenceStrNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(referenceStrNode);
                 IDManager.SetID(referenceStrIDRef_, ob);
             }
             else if (referenceStrNode.Attributes["href"] != null)
             {
                 referenceStrIDRef_ = referenceStrNode.Attributes["href"].Value;
             }
             else
             {
                 referenceStr_ = new XsdTypeToken(referenceStrNode);
             }
         }
         else
         {
             referenceStr_ = new XsdTypeToken(referenceStrNode);
         }
     }
     
 
     XmlNode payoffDateNode = xmlNode.SelectSingleNode("payoffDate");
     
     if (payoffDateNode != null)
     {
         if (payoffDateNode.Attributes["href"] != null || payoffDateNode.Attributes["id"] != null) 
         {
             if (payoffDateNode.Attributes["id"] != null) 
             {
                 payoffDateIDRef_ = payoffDateNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(payoffDateNode);
                 IDManager.SetID(payoffDateIDRef_, ob);
             }
             else if (payoffDateNode.Attributes["href"] != null)
             {
                 payoffDateIDRef_ = payoffDateNode.Attributes["href"].Value;
             }
             else
             {
                 payoffDate_ = new XsdTypeToken(payoffDateNode);
             }
         }
         else
         {
             payoffDate_ = new XsdTypeToken(payoffDateNode);
         }
     }
     
 
     XmlNode capFloorOptionNode = xmlNode.SelectSingleNode("capFloorOption");
     
     if (capFloorOptionNode != null)
     {
         if (capFloorOptionNode.Attributes["href"] != null || capFloorOptionNode.Attributes["id"] != null) 
         {
             if (capFloorOptionNode.Attributes["id"] != null) 
             {
                 capFloorOptionIDRef_ = capFloorOptionNode.Attributes["id"].Value;
                 CapFloorOption ob = new CapFloorOption(capFloorOptionNode);
                 IDManager.SetID(capFloorOptionIDRef_, ob);
             }
             else if (capFloorOptionNode.Attributes["href"] != null)
             {
                 capFloorOptionIDRef_ = capFloorOptionNode.Attributes["href"].Value;
             }
             else
             {
                 capFloorOption_ = new CapFloorOption(capFloorOptionNode);
             }
         }
         else
         {
             capFloorOption_ = new CapFloorOption(capFloorOptionNode);
         }
     }
     
 
 }
        public MinimumReferenceCal(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode nthNode = xmlNode.SelectSingleNode("nth");

            if (nthNode != null)
            {
                if (nthNode.Attributes["href"] != null || nthNode.Attributes["id"] != null)
                {
                    if (nthNode.Attributes["id"] != null)
                    {
                        nthIDRef_ = nthNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(nthNode);
                        IDManager.SetID(nthIDRef_, ob);
                    }
                    else if (nthNode.Attributes["href"] != null)
                    {
                        nthIDRef_ = nthNode.Attributes["href"].Value;
                    }
                    else
                    {
                        nth_ = new XsdTypeDouble(nthNode);
                    }
                }
                else
                {
                    nth_ = new XsdTypeDouble(nthNode);
                }
            }


            XmlNodeList selectedUnderNameNodeList = xmlNode.SelectNodes("selectedUnderName");

            if (selectedUnderNameNodeList != null)
            {
                this.selectedUnderName_ = new List <XsdTypeToken>();
                foreach (XmlNode item in selectedUnderNameNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            selectedUnderNameIDRef_ = item.Attributes["id"].Value;
                            selectedUnderName_.Add(new XsdTypeToken(item));
                            IDManager.SetID(selectedUnderNameIDRef_, selectedUnderName_[selectedUnderName_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            selectedUnderNameIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            selectedUnderName_.Add(new XsdTypeToken(item));
                        }
                    }
                    else
                    {
                        selectedUnderName_.Add(new XsdTypeToken(item));
                    }
                }
            }


            XmlNode fixingDateInfoNode = xmlNode.SelectSingleNode("fixingDateInfo");

            if (fixingDateInfoNode != null)
            {
                if (fixingDateInfoNode.Attributes["href"] != null || fixingDateInfoNode.Attributes["id"] != null)
                {
                    if (fixingDateInfoNode.Attributes["id"] != null)
                    {
                        fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["id"].Value;
                        FixingDateInfo ob = new FixingDateInfo(fixingDateInfoNode);
                        IDManager.SetID(fixingDateInfoIDRef_, ob);
                    }
                    else if (fixingDateInfoNode.Attributes["href"] != null)
                    {
                        fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode);
                    }
                }
                else
                {
                    fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode);
                }
            }
        }
Пример #42
0
        public OptionInfo(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode notionalNode = xmlNode.SelectSingleNode("notional");

            if (notionalNode != null)
            {
                if (notionalNode.Attributes["href"] != null || notionalNode.Attributes["id"] != null)
                {
                    if (notionalNode.Attributes["id"] != null)
                    {
                        notionalIDRef_ = notionalNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(notionalNode);
                        IDManager.SetID(notionalIDRef_, ob);
                    }
                    else if (notionalNode.Attributes["href"] != null)
                    {
                        notionalIDRef_ = notionalNode.Attributes["href"].Value;
                    }
                    else
                    {
                        notional_ = new XsdTypeDate(notionalNode);
                    }
                }
                else
                {
                    notional_ = new XsdTypeDate(notionalNode);
                }
            }


            XmlNode tradeDateNode = xmlNode.SelectSingleNode("tradeDate");

            if (tradeDateNode != null)
            {
                if (tradeDateNode.Attributes["href"] != null || tradeDateNode.Attributes["id"] != null)
                {
                    if (tradeDateNode.Attributes["id"] != null)
                    {
                        tradeDateIDRef_ = tradeDateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(tradeDateNode);
                        IDManager.SetID(tradeDateIDRef_, ob);
                    }
                    else if (tradeDateNode.Attributes["href"] != null)
                    {
                        tradeDateIDRef_ = tradeDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        tradeDate_ = new XsdTypeDate(tradeDateNode);
                    }
                }
                else
                {
                    tradeDate_ = new XsdTypeDate(tradeDateNode);
                }
            }


            XmlNode effectiveDateNode = xmlNode.SelectSingleNode("effectiveDate");

            if (effectiveDateNode != null)
            {
                if (effectiveDateNode.Attributes["href"] != null || effectiveDateNode.Attributes["id"] != null)
                {
                    if (effectiveDateNode.Attributes["id"] != null)
                    {
                        effectiveDateIDRef_ = effectiveDateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(effectiveDateNode);
                        IDManager.SetID(effectiveDateIDRef_, ob);
                    }
                    else if (effectiveDateNode.Attributes["href"] != null)
                    {
                        effectiveDateIDRef_ = effectiveDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        effectiveDate_ = new XsdTypeDate(effectiveDateNode);
                    }
                }
                else
                {
                    effectiveDate_ = new XsdTypeDate(effectiveDateNode);
                }
            }


            XmlNode maturityDateNode = xmlNode.SelectSingleNode("maturityDate");

            if (maturityDateNode != null)
            {
                if (maturityDateNode.Attributes["href"] != null || maturityDateNode.Attributes["id"] != null)
                {
                    if (maturityDateNode.Attributes["id"] != null)
                    {
                        maturityDateIDRef_ = maturityDateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(maturityDateNode);
                        IDManager.SetID(maturityDateIDRef_, ob);
                    }
                    else if (maturityDateNode.Attributes["href"] != null)
                    {
                        maturityDateIDRef_ = maturityDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        maturityDate_ = new XsdTypeDate(maturityDateNode);
                    }
                }
                else
                {
                    maturityDate_ = new XsdTypeDate(maturityDateNode);
                }
            }


            XmlNode calculationAmountNode = xmlNode.SelectSingleNode("calculationAmount");

            if (calculationAmountNode != null)
            {
                if (calculationAmountNode.Attributes["href"] != null || calculationAmountNode.Attributes["id"] != null)
                {
                    if (calculationAmountNode.Attributes["id"] != null)
                    {
                        calculationAmountIDRef_ = calculationAmountNode.Attributes["id"].Value;
                        CalculationAmount ob = new CalculationAmount(calculationAmountNode);
                        IDManager.SetID(calculationAmountIDRef_, ob);
                    }
                    else if (calculationAmountNode.Attributes["href"] != null)
                    {
                        calculationAmountIDRef_ = calculationAmountNode.Attributes["href"].Value;
                    }
                    else
                    {
                        calculationAmount_ = new CalculationAmount(calculationAmountNode);
                    }
                }
                else
                {
                    calculationAmount_ = new CalculationAmount(calculationAmountNode);
                }
            }


            XmlNode premiumNode = xmlNode.SelectSingleNode("premium");

            if (premiumNode != null)
            {
                if (premiumNode.Attributes["href"] != null || premiumNode.Attributes["id"] != null)
                {
                    if (premiumNode.Attributes["id"] != null)
                    {
                        premiumIDRef_ = premiumNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(premiumNode);
                        IDManager.SetID(premiumIDRef_, ob);
                    }
                    else if (premiumNode.Attributes["href"] != null)
                    {
                        premiumIDRef_ = premiumNode.Attributes["href"].Value;
                    }
                    else
                    {
                        premium_ = new XsdTypeDouble(premiumNode);
                    }
                }
                else
                {
                    premium_ = new XsdTypeDouble(premiumNode);
                }
            }
        }
 public ConstDualBarrierInfo(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode referenceCalculationInfoNode = xmlNode.SelectSingleNode("referenceCalculationInfo");
     
     if (referenceCalculationInfoNode != null)
     {
         if (referenceCalculationInfoNode.Attributes["href"] != null || referenceCalculationInfoNode.Attributes["id"] != null) 
         {
             if (referenceCalculationInfoNode.Attributes["id"] != null) 
             {
                 referenceCalculationInfoIDRef_ = referenceCalculationInfoNode.Attributes["id"].Value;
                 ReferenceCalculationInfo ob = new ReferenceCalculationInfo(referenceCalculationInfoNode);
                 IDManager.SetID(referenceCalculationInfoIDRef_, ob);
             }
             else if (referenceCalculationInfoNode.Attributes["href"] != null)
             {
                 referenceCalculationInfoIDRef_ = referenceCalculationInfoNode.Attributes["href"].Value;
             }
             else
             {
                 referenceCalculationInfo_ = new ReferenceCalculationInfo(referenceCalculationInfoNode);
             }
         }
         else
         {
             referenceCalculationInfo_ = new ReferenceCalculationInfo(referenceCalculationInfoNode);
         }
     }
     
 
     XmlNode barrierDateInfoNode = xmlNode.SelectSingleNode("barrierDateInfo");
     
     if (barrierDateInfoNode != null)
     {
         if (barrierDateInfoNode.Attributes["href"] != null || barrierDateInfoNode.Attributes["id"] != null) 
         {
             if (barrierDateInfoNode.Attributes["id"] != null) 
             {
                 barrierDateInfoIDRef_ = barrierDateInfoNode.Attributes["id"].Value;
                 BarrierDateInfo ob = new BarrierDateInfo(barrierDateInfoNode);
                 IDManager.SetID(barrierDateInfoIDRef_, ob);
             }
             else if (barrierDateInfoNode.Attributes["href"] != null)
             {
                 barrierDateInfoIDRef_ = barrierDateInfoNode.Attributes["href"].Value;
             }
             else
             {
                 barrierDateInfo_ = new BarrierDateInfo(barrierDateInfoNode);
             }
         }
         else
         {
             barrierDateInfo_ = new BarrierDateInfo(barrierDateInfoNode);
         }
     }
     
 
     XmlNode upperTriggerNode = xmlNode.SelectSingleNode("upperTrigger");
     
     if (upperTriggerNode != null)
     {
         if (upperTriggerNode.Attributes["href"] != null || upperTriggerNode.Attributes["id"] != null) 
         {
             if (upperTriggerNode.Attributes["id"] != null) 
             {
                 upperTriggerIDRef_ = upperTriggerNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(upperTriggerNode);
                 IDManager.SetID(upperTriggerIDRef_, ob);
             }
             else if (upperTriggerNode.Attributes["href"] != null)
             {
                 upperTriggerIDRef_ = upperTriggerNode.Attributes["href"].Value;
             }
             else
             {
                 upperTrigger_ = new XsdTypeDouble(upperTriggerNode);
             }
         }
         else
         {
             upperTrigger_ = new XsdTypeDouble(upperTriggerNode);
         }
     }
     
 
     XmlNode lowerTriggerNode = xmlNode.SelectSingleNode("lowerTrigger");
     
     if (lowerTriggerNode != null)
     {
         if (lowerTriggerNode.Attributes["href"] != null || lowerTriggerNode.Attributes["id"] != null) 
         {
             if (lowerTriggerNode.Attributes["id"] != null) 
             {
                 lowerTriggerIDRef_ = lowerTriggerNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(lowerTriggerNode);
                 IDManager.SetID(lowerTriggerIDRef_, ob);
             }
             else if (lowerTriggerNode.Attributes["href"] != null)
             {
                 lowerTriggerIDRef_ = lowerTriggerNode.Attributes["href"].Value;
             }
             else
             {
                 lowerTrigger_ = new XsdTypeDouble(lowerTriggerNode);
             }
         }
         else
         {
             lowerTrigger_ = new XsdTypeDouble(lowerTriggerNode);
         }
     }
     
 
     XmlNode pastEventOccDateNode = xmlNode.SelectSingleNode("pastEventOccDate");
     
     if (pastEventOccDateNode != null)
     {
         if (pastEventOccDateNode.Attributes["href"] != null || pastEventOccDateNode.Attributes["id"] != null) 
         {
             if (pastEventOccDateNode.Attributes["id"] != null) 
             {
                 pastEventOccDateIDRef_ = pastEventOccDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(pastEventOccDateNode);
                 IDManager.SetID(pastEventOccDateIDRef_, ob);
             }
             else if (pastEventOccDateNode.Attributes["href"] != null)
             {
                 pastEventOccDateIDRef_ = pastEventOccDateNode.Attributes["href"].Value;
             }
             else
             {
                 pastEventOccDate_ = new XsdTypeDate(pastEventOccDateNode);
             }
         }
         else
         {
             pastEventOccDate_ = new XsdTypeDate(pastEventOccDateNode);
         }
     }
     
 
     XmlNode pastEventOccValueNode = xmlNode.SelectSingleNode("pastEventOccValue");
     
     if (pastEventOccValueNode != null)
     {
         if (pastEventOccValueNode.Attributes["href"] != null || pastEventOccValueNode.Attributes["id"] != null) 
         {
             if (pastEventOccValueNode.Attributes["id"] != null) 
             {
                 pastEventOccValueIDRef_ = pastEventOccValueNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(pastEventOccValueNode);
                 IDManager.SetID(pastEventOccValueIDRef_, ob);
             }
             else if (pastEventOccValueNode.Attributes["href"] != null)
             {
                 pastEventOccValueIDRef_ = pastEventOccValueNode.Attributes["href"].Value;
             }
             else
             {
                 pastEventOccValue_ = new XsdTypeDouble(pastEventOccValueNode);
             }
         }
         else
         {
             pastEventOccValue_ = new XsdTypeDouble(pastEventOccValueNode);
         }
     }
     
 
     XmlNode refVariableFlag_eventOccDateNode = xmlNode.SelectSingleNode("refVariableFlag_eventOccDate");
     
     if (refVariableFlag_eventOccDateNode != null)
     {
         if (refVariableFlag_eventOccDateNode.Attributes["href"] != null || refVariableFlag_eventOccDateNode.Attributes["id"] != null) 
         {
             if (refVariableFlag_eventOccDateNode.Attributes["id"] != null) 
             {
                 refVariableFlag_eventOccDateIDRef_ = refVariableFlag_eventOccDateNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(refVariableFlag_eventOccDateNode);
                 IDManager.SetID(refVariableFlag_eventOccDateIDRef_, ob);
             }
             else if (refVariableFlag_eventOccDateNode.Attributes["href"] != null)
             {
                 refVariableFlag_eventOccDateIDRef_ = refVariableFlag_eventOccDateNode.Attributes["href"].Value;
             }
             else
             {
                 refVariableFlag_eventOccDate_ = new XsdTypeToken(refVariableFlag_eventOccDateNode);
             }
         }
         else
         {
             refVariableFlag_eventOccDate_ = new XsdTypeToken(refVariableFlag_eventOccDateNode);
         }
     }
     
 
     XmlNode refVariableFlag_eventOccValueNode = xmlNode.SelectSingleNode("refVariableFlag_eventOccValue");
     
     if (refVariableFlag_eventOccValueNode != null)
     {
         if (refVariableFlag_eventOccValueNode.Attributes["href"] != null || refVariableFlag_eventOccValueNode.Attributes["id"] != null) 
         {
             if (refVariableFlag_eventOccValueNode.Attributes["id"] != null) 
             {
                 refVariableFlag_eventOccValueIDRef_ = refVariableFlag_eventOccValueNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(refVariableFlag_eventOccValueNode);
                 IDManager.SetID(refVariableFlag_eventOccValueIDRef_, ob);
             }
             else if (refVariableFlag_eventOccValueNode.Attributes["href"] != null)
             {
                 refVariableFlag_eventOccValueIDRef_ = refVariableFlag_eventOccValueNode.Attributes["href"].Value;
             }
             else
             {
                 refVariableFlag_eventOccValue_ = new XsdTypeToken(refVariableFlag_eventOccValueNode);
             }
         }
         else
         {
             refVariableFlag_eventOccValue_ = new XsdTypeToken(refVariableFlag_eventOccValueNode);
         }
     }
     
 
 }
        public VanillaPutOption(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode payoffDateInfoNode = xmlNode.SelectSingleNode("payoffDateInfo");

            if (payoffDateInfoNode != null)
            {
                if (payoffDateInfoNode.Attributes["href"] != null || payoffDateInfoNode.Attributes["id"] != null)
                {
                    if (payoffDateInfoNode.Attributes["id"] != null)
                    {
                        payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["id"].Value;
                        PayoffDateInfo ob = new PayoffDateInfo(payoffDateInfoNode);
                        IDManager.SetID(payoffDateInfoIDRef_, ob);
                    }
                    else if (payoffDateInfoNode.Attributes["href"] != null)
                    {
                        payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
                    }
                }
                else
                {
                    payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
                }
            }


            XmlNode participateRateNode = xmlNode.SelectSingleNode("participateRate");

            if (participateRateNode != null)
            {
                if (participateRateNode.Attributes["href"] != null || participateRateNode.Attributes["id"] != null)
                {
                    if (participateRateNode.Attributes["id"] != null)
                    {
                        participateRateIDRef_ = participateRateNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(participateRateNode);
                        IDManager.SetID(participateRateIDRef_, ob);
                    }
                    else if (participateRateNode.Attributes["href"] != null)
                    {
                        participateRateIDRef_ = participateRateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        participateRate_ = new XsdTypeDouble(participateRateNode);
                    }
                }
                else
                {
                    participateRate_ = new XsdTypeDouble(participateRateNode);
                }
            }


            XmlNode referenceCalculationInfoNode = xmlNode.SelectSingleNode("referenceCalculationInfo");

            if (referenceCalculationInfoNode != null)
            {
                if (referenceCalculationInfoNode.Attributes["href"] != null || referenceCalculationInfoNode.Attributes["id"] != null)
                {
                    if (referenceCalculationInfoNode.Attributes["id"] != null)
                    {
                        referenceCalculationInfoIDRef_ = referenceCalculationInfoNode.Attributes["id"].Value;
                        ReferenceCalculationInfo ob = new ReferenceCalculationInfo(referenceCalculationInfoNode);
                        IDManager.SetID(referenceCalculationInfoIDRef_, ob);
                    }
                    else if (referenceCalculationInfoNode.Attributes["href"] != null)
                    {
                        referenceCalculationInfoIDRef_ = referenceCalculationInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        referenceCalculationInfo_ = new ReferenceCalculationInfo(referenceCalculationInfoNode);
                    }
                }
                else
                {
                    referenceCalculationInfo_ = new ReferenceCalculationInfo(referenceCalculationInfoNode);
                }
            }


            XmlNode strikeNode = xmlNode.SelectSingleNode("strike");

            if (strikeNode != null)
            {
                if (strikeNode.Attributes["href"] != null || strikeNode.Attributes["id"] != null)
                {
                    if (strikeNode.Attributes["id"] != null)
                    {
                        strikeIDRef_ = strikeNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(strikeNode);
                        IDManager.SetID(strikeIDRef_, ob);
                    }
                    else if (strikeNode.Attributes["href"] != null)
                    {
                        strikeIDRef_ = strikeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        strike_ = new XsdTypeDouble(strikeNode);
                    }
                }
                else
                {
                    strike_ = new XsdTypeDouble(strikeNode);
                }
            }


            XmlNode lowerBoundNode = xmlNode.SelectSingleNode("lowerBound");

            if (lowerBoundNode != null)
            {
                if (lowerBoundNode.Attributes["href"] != null || lowerBoundNode.Attributes["id"] != null)
                {
                    if (lowerBoundNode.Attributes["id"] != null)
                    {
                        lowerBoundIDRef_ = lowerBoundNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(lowerBoundNode);
                        IDManager.SetID(lowerBoundIDRef_, ob);
                    }
                    else if (lowerBoundNode.Attributes["href"] != null)
                    {
                        lowerBoundIDRef_ = lowerBoundNode.Attributes["href"].Value;
                    }
                    else
                    {
                        lowerBound_ = new XsdTypeDouble(lowerBoundNode);
                    }
                }
                else
                {
                    lowerBound_ = new XsdTypeDouble(lowerBoundNode);
                }
            }
        }
        public RangeEventCheck(XmlNode xmlNode)
        {
            XmlNode highCheckValueNode = xmlNode.SelectSingleNode("highCheckValue");

            if (highCheckValueNode != null)
            {
                if (highCheckValueNode.Attributes["href"] != null || highCheckValueNode.Attributes["id"] != null)
                {
                    if (highCheckValueNode.Attributes["id"] != null)
                    {
                        highCheckValueIDRef_ = highCheckValueNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(highCheckValueNode);
                        IDManager.SetID(highCheckValueIDRef_, ob);
                    }
                    else if (highCheckValueNode.Attributes["href"] != null)
                    {
                        highCheckValueIDRef_ = highCheckValueNode.Attributes["href"].Value;
                    }
                    else
                    {
                        highCheckValue_ = new XsdTypeDouble(highCheckValueNode);
                    }
                }
                else
                {
                    highCheckValue_ = new XsdTypeDouble(highCheckValueNode);
                }
            }


            XmlNode highEqualityNode = xmlNode.SelectSingleNode("highEquality");

            if (highEqualityNode != null)
            {
                if (highEqualityNode.Attributes["href"] != null || highEqualityNode.Attributes["id"] != null)
                {
                    if (highEqualityNode.Attributes["id"] != null)
                    {
                        highEqualityIDRef_ = highEqualityNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(highEqualityNode);
                        IDManager.SetID(highEqualityIDRef_, ob);
                    }
                    else if (highEqualityNode.Attributes["href"] != null)
                    {
                        highEqualityIDRef_ = highEqualityNode.Attributes["href"].Value;
                    }
                    else
                    {
                        highEquality_ = new XsdTypeBoolean(highEqualityNode);
                    }
                }
                else
                {
                    highEquality_ = new XsdTypeBoolean(highEqualityNode);
                }
            }


            XmlNode lowCheckValueNode = xmlNode.SelectSingleNode("lowCheckValue");

            if (lowCheckValueNode != null)
            {
                if (lowCheckValueNode.Attributes["href"] != null || lowCheckValueNode.Attributes["id"] != null)
                {
                    if (lowCheckValueNode.Attributes["id"] != null)
                    {
                        lowCheckValueIDRef_ = lowCheckValueNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(lowCheckValueNode);
                        IDManager.SetID(lowCheckValueIDRef_, ob);
                    }
                    else if (lowCheckValueNode.Attributes["href"] != null)
                    {
                        lowCheckValueIDRef_ = lowCheckValueNode.Attributes["href"].Value;
                    }
                    else
                    {
                        lowCheckValue_ = new XsdTypeDouble(lowCheckValueNode);
                    }
                }
                else
                {
                    lowCheckValue_ = new XsdTypeDouble(lowCheckValueNode);
                }
            }


            XmlNode lowEqualityNode = xmlNode.SelectSingleNode("lowEquality");

            if (lowEqualityNode != null)
            {
                if (lowEqualityNode.Attributes["href"] != null || lowEqualityNode.Attributes["id"] != null)
                {
                    if (lowEqualityNode.Attributes["id"] != null)
                    {
                        lowEqualityIDRef_ = lowEqualityNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(lowEqualityNode);
                        IDManager.SetID(lowEqualityIDRef_, ob);
                    }
                    else if (lowEqualityNode.Attributes["href"] != null)
                    {
                        lowEqualityIDRef_ = lowEqualityNode.Attributes["href"].Value;
                    }
                    else
                    {
                        lowEquality_ = new XsdTypeBoolean(lowEqualityNode);
                    }
                }
                else
                {
                    lowEquality_ = new XsdTypeBoolean(lowEqualityNode);
                }
            }
        }
 public Excel_correlation_para(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode firstNode = xmlNode.SelectSingleNode("first");
     
     if (firstNode != null)
     {
         if (firstNode.Attributes["href"] != null || firstNode.Attributes["id"] != null) 
         {
             if (firstNode.Attributes["id"] != null) 
             {
                 firstIDRef_ = firstNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(firstNode);
                 IDManager.SetID(firstIDRef_, ob);
             }
             else if (firstNode.Attributes["href"] != null)
             {
                 firstIDRef_ = firstNode.Attributes["href"].Value;
             }
             else
             {
                 first_ = new XsdTypeToken(firstNode);
             }
         }
         else
         {
             first_ = new XsdTypeToken(firstNode);
         }
     }
     
 
     XmlNode secondNode = xmlNode.SelectSingleNode("second");
     
     if (secondNode != null)
     {
         if (secondNode.Attributes["href"] != null || secondNode.Attributes["id"] != null) 
         {
             if (secondNode.Attributes["id"] != null) 
             {
                 secondIDRef_ = secondNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(secondNode);
                 IDManager.SetID(secondIDRef_, ob);
             }
             else if (secondNode.Attributes["href"] != null)
             {
                 secondIDRef_ = secondNode.Attributes["href"].Value;
             }
             else
             {
                 second_ = new XsdTypeToken(secondNode);
             }
         }
         else
         {
             second_ = new XsdTypeToken(secondNode);
         }
     }
     
 
     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;
                 XsdTypeDouble ob = new XsdTypeDouble(valueNode);
                 IDManager.SetID(valueIDRef_, ob);
             }
             else if (valueNode.Attributes["href"] != null)
             {
                 valueIDRef_ = valueNode.Attributes["href"].Value;
             }
             else
             {
                 value_ = new XsdTypeDouble(valueNode);
             }
         }
         else
         {
             value_ = new XsdTypeDouble(valueNode);
         }
     }
     
 
 }
 public RangeEventCheck(XmlNode xmlNode)
 {
     XmlNode highCheckValueNode = xmlNode.SelectSingleNode("highCheckValue");
     
     if (highCheckValueNode != null)
     {
         if (highCheckValueNode.Attributes["href"] != null || highCheckValueNode.Attributes["id"] != null) 
         {
             if (highCheckValueNode.Attributes["id"] != null) 
             {
                 highCheckValueIDRef_ = highCheckValueNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(highCheckValueNode);
                 IDManager.SetID(highCheckValueIDRef_, ob);
             }
             else if (highCheckValueNode.Attributes["href"] != null)
             {
                 highCheckValueIDRef_ = highCheckValueNode.Attributes["href"].Value;
             }
             else
             {
                 highCheckValue_ = new XsdTypeDouble(highCheckValueNode);
             }
         }
         else
         {
             highCheckValue_ = new XsdTypeDouble(highCheckValueNode);
         }
     }
     
 
     XmlNode highEqualityNode = xmlNode.SelectSingleNode("highEquality");
     
     if (highEqualityNode != null)
     {
         if (highEqualityNode.Attributes["href"] != null || highEqualityNode.Attributes["id"] != null) 
         {
             if (highEqualityNode.Attributes["id"] != null) 
             {
                 highEqualityIDRef_ = highEqualityNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(highEqualityNode);
                 IDManager.SetID(highEqualityIDRef_, ob);
             }
             else if (highEqualityNode.Attributes["href"] != null)
             {
                 highEqualityIDRef_ = highEqualityNode.Attributes["href"].Value;
             }
             else
             {
                 highEquality_ = new XsdTypeBoolean(highEqualityNode);
             }
         }
         else
         {
             highEquality_ = new XsdTypeBoolean(highEqualityNode);
         }
     }
     
 
     XmlNode lowCheckValueNode = xmlNode.SelectSingleNode("lowCheckValue");
     
     if (lowCheckValueNode != null)
     {
         if (lowCheckValueNode.Attributes["href"] != null || lowCheckValueNode.Attributes["id"] != null) 
         {
             if (lowCheckValueNode.Attributes["id"] != null) 
             {
                 lowCheckValueIDRef_ = lowCheckValueNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(lowCheckValueNode);
                 IDManager.SetID(lowCheckValueIDRef_, ob);
             }
             else if (lowCheckValueNode.Attributes["href"] != null)
             {
                 lowCheckValueIDRef_ = lowCheckValueNode.Attributes["href"].Value;
             }
             else
             {
                 lowCheckValue_ = new XsdTypeDouble(lowCheckValueNode);
             }
         }
         else
         {
             lowCheckValue_ = new XsdTypeDouble(lowCheckValueNode);
         }
     }
     
 
     XmlNode lowEqualityNode = xmlNode.SelectSingleNode("lowEquality");
     
     if (lowEqualityNode != null)
     {
         if (lowEqualityNode.Attributes["href"] != null || lowEqualityNode.Attributes["id"] != null) 
         {
             if (lowEqualityNode.Attributes["id"] != null) 
             {
                 lowEqualityIDRef_ = lowEqualityNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(lowEqualityNode);
                 IDManager.SetID(lowEqualityIDRef_, ob);
             }
             else if (lowEqualityNode.Attributes["href"] != null)
             {
                 lowEqualityIDRef_ = lowEqualityNode.Attributes["href"].Value;
             }
             else
             {
                 lowEquality_ = new XsdTypeBoolean(lowEqualityNode);
             }
         }
         else
         {
             lowEquality_ = new XsdTypeBoolean(lowEqualityNode);
         }
     }
     
 
 }
Пример #48
0
        public HullWhiteOneFactor(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode alphaNode = xmlNode.SelectSingleNode("alpha");

            if (alphaNode != null)
            {
                if (alphaNode.Attributes["href"] != null || alphaNode.Attributes["id"] != null)
                {
                    if (alphaNode.Attributes["id"] != null)
                    {
                        alphaIDRef_ = alphaNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(alphaNode);
                        IDManager.SetID(alphaIDRef_, ob);
                    }
                    else if (alphaNode.Attributes["href"] != null)
                    {
                        alphaIDRef_ = alphaNode.Attributes["href"].Value;
                    }
                    else
                    {
                        alpha_ = new XsdTypeDouble(alphaNode);
                    }
                }
                else
                {
                    alpha_ = new XsdTypeDouble(alphaNode);
                }
            }


            XmlNode sigmaNode = xmlNode.SelectSingleNode("sigma");

            if (sigmaNode != null)
            {
                if (sigmaNode.Attributes["href"] != null || sigmaNode.Attributes["id"] != null)
                {
                    if (sigmaNode.Attributes["id"] != null)
                    {
                        sigmaIDRef_ = sigmaNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(sigmaNode);
                        IDManager.SetID(sigmaIDRef_, ob);
                    }
                    else if (sigmaNode.Attributes["href"] != null)
                    {
                        sigmaIDRef_ = sigmaNode.Attributes["href"].Value;
                    }
                    else
                    {
                        sigma_ = new XsdTypeDouble(sigmaNode);
                    }
                }
                else
                {
                    sigma_ = new XsdTypeDouble(sigmaNode);
                }
            }


            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;
                        Tenor ob = new Tenor(tenorNode);
                        IDManager.SetID(tenorIDRef_, ob);
                    }
                    else if (tenorNode.Attributes["href"] != null)
                    {
                        tenorIDRef_ = tenorNode.Attributes["href"].Value;
                    }
                    else
                    {
                        tenor_ = new Tenor(tenorNode);
                    }
                }
                else
                {
                    tenor_ = new Tenor(tenorNode);
                }
            }


            XmlNode fittingYieldCurveNode = xmlNode.SelectSingleNode("fittingYieldCurve");

            if (fittingYieldCurveNode != null)
            {
                if (fittingYieldCurveNode.Attributes["href"] != null || fittingYieldCurveNode.Attributes["id"] != null)
                {
                    if (fittingYieldCurveNode.Attributes["id"] != null)
                    {
                        fittingYieldCurveIDRef_ = fittingYieldCurveNode.Attributes["id"].Value;
                        FittingYieldCurve ob = new FittingYieldCurve(fittingYieldCurveNode);
                        IDManager.SetID(fittingYieldCurveIDRef_, ob);
                    }
                    else if (fittingYieldCurveNode.Attributes["href"] != null)
                    {
                        fittingYieldCurveIDRef_ = fittingYieldCurveNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fittingYieldCurve_ = new FittingYieldCurve(fittingYieldCurveNode);
                    }
                }
                else
                {
                    fittingYieldCurve_ = new FittingYieldCurve(fittingYieldCurveNode);
                }
            }
        }
 public AutoCallConstReturnTrigger(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode dateOrderNode = xmlNode.SelectSingleNode("dateOrder");
     
     if (dateOrderNode != null)
     {
         if (dateOrderNode.Attributes["href"] != null || dateOrderNode.Attributes["id"] != null) 
         {
             if (dateOrderNode.Attributes["id"] != null) 
             {
                 dateOrderIDRef_ = dateOrderNode.Attributes["id"].Value;
                 XsdTypeInteger ob = new XsdTypeInteger(dateOrderNode);
                 IDManager.SetID(dateOrderIDRef_, ob);
             }
             else if (dateOrderNode.Attributes["href"] != null)
             {
                 dateOrderIDRef_ = dateOrderNode.Attributes["href"].Value;
             }
             else
             {
                 dateOrder_ = new XsdTypeInteger(dateOrderNode);
             }
         }
         else
         {
             dateOrder_ = new XsdTypeInteger(dateOrderNode);
         }
     }
     
 
     XmlNode fixingDateInfoNode = xmlNode.SelectSingleNode("fixingDateInfo");
     
     if (fixingDateInfoNode != null)
     {
         if (fixingDateInfoNode.Attributes["href"] != null || fixingDateInfoNode.Attributes["id"] != null) 
         {
             if (fixingDateInfoNode.Attributes["id"] != null) 
             {
                 fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["id"].Value;
                 FixingDateInfo ob = new FixingDateInfo(fixingDateInfoNode);
                 IDManager.SetID(fixingDateInfoIDRef_, ob);
             }
             else if (fixingDateInfoNode.Attributes["href"] != null)
             {
                 fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["href"].Value;
             }
             else
             {
                 fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode);
             }
         }
         else
         {
             fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode);
         }
     }
     
 
     XmlNode payoffDateInfoNode = xmlNode.SelectSingleNode("payoffDateInfo");
     
     if (payoffDateInfoNode != null)
     {
         if (payoffDateInfoNode.Attributes["href"] != null || payoffDateInfoNode.Attributes["id"] != null) 
         {
             if (payoffDateInfoNode.Attributes["id"] != null) 
             {
                 payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["id"].Value;
                 PayoffDateInfo ob = new PayoffDateInfo(payoffDateInfoNode);
                 IDManager.SetID(payoffDateInfoIDRef_, ob);
             }
             else if (payoffDateInfoNode.Attributes["href"] != null)
             {
                 payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["href"].Value;
             }
             else
             {
                 payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
             }
         }
         else
         {
             payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
         }
     }
     
 
     XmlNode triggerNode = xmlNode.SelectSingleNode("trigger");
     
     if (triggerNode != null)
     {
         if (triggerNode.Attributes["href"] != null || triggerNode.Attributes["id"] != null) 
         {
             if (triggerNode.Attributes["id"] != null) 
             {
                 triggerIDRef_ = triggerNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(triggerNode);
                 IDManager.SetID(triggerIDRef_, ob);
             }
             else if (triggerNode.Attributes["href"] != null)
             {
                 triggerIDRef_ = triggerNode.Attributes["href"].Value;
             }
             else
             {
                 trigger_ = new XsdTypeDouble(triggerNode);
             }
         }
         else
         {
             trigger_ = new XsdTypeDouble(triggerNode);
         }
     }
     
 
     XmlNode returnNode = xmlNode.SelectSingleNode("return");
     
     if (returnNode != null)
     {
         if (returnNode.Attributes["href"] != null || returnNode.Attributes["id"] != null) 
         {
             if (returnNode.Attributes["id"] != null) 
             {
                 returnIDRef_ = returnNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(returnNode);
                 IDManager.SetID(returnIDRef_, ob);
             }
             else if (returnNode.Attributes["href"] != null)
             {
                 returnIDRef_ = returnNode.Attributes["href"].Value;
             }
             else
             {
                 return_ = new XsdTypeDouble(returnNode);
             }
         }
         else
         {
             return_ = new XsdTypeDouble(returnNode);
         }
     }
     
 
     XmlNode averageDaysNode = xmlNode.SelectSingleNode("averageDays");
     
     if (averageDaysNode != null)
     {
         if (averageDaysNode.Attributes["href"] != null || averageDaysNode.Attributes["id"] != null) 
         {
             if (averageDaysNode.Attributes["id"] != null) 
             {
                 averageDaysIDRef_ = averageDaysNode.Attributes["id"].Value;
                 XsdTypeInteger ob = new XsdTypeInteger(averageDaysNode);
                 IDManager.SetID(averageDaysIDRef_, ob);
             }
             else if (averageDaysNode.Attributes["href"] != null)
             {
                 averageDaysIDRef_ = averageDaysNode.Attributes["href"].Value;
             }
             else
             {
                 averageDays_ = new XsdTypeInteger(averageDaysNode);
             }
         }
         else
         {
             averageDays_ = new XsdTypeInteger(averageDaysNode);
         }
     }
     
 
     XmlNode isExpiredNode = xmlNode.SelectSingleNode("isExpired");
     
     if (isExpiredNode != null)
     {
         if (isExpiredNode.Attributes["href"] != null || isExpiredNode.Attributes["id"] != null) 
         {
             if (isExpiredNode.Attributes["id"] != null) 
             {
                 isExpiredIDRef_ = isExpiredNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(isExpiredNode);
                 IDManager.SetID(isExpiredIDRef_, ob);
             }
             else if (isExpiredNode.Attributes["href"] != null)
             {
                 isExpiredIDRef_ = isExpiredNode.Attributes["href"].Value;
             }
             else
             {
                 isExpired_ = new XsdTypeBoolean(isExpiredNode);
             }
         }
         else
         {
             isExpired_ = new XsdTypeBoolean(isExpiredNode);
         }
     }
     
 
 }
 public Range1D(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode lowerBoundNode = xmlNode.SelectSingleNode("lowerBound");
     
     if (lowerBoundNode != null)
     {
         if (lowerBoundNode.Attributes["href"] != null || lowerBoundNode.Attributes["id"] != null) 
         {
             if (lowerBoundNode.Attributes["id"] != null) 
             {
                 lowerBoundIDRef_ = lowerBoundNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(lowerBoundNode);
                 IDManager.SetID(lowerBoundIDRef_, ob);
             }
             else if (lowerBoundNode.Attributes["href"] != null)
             {
                 lowerBoundIDRef_ = lowerBoundNode.Attributes["href"].Value;
             }
             else
             {
                 lowerBound_ = new XsdTypeDouble(lowerBoundNode);
             }
         }
         else
         {
             lowerBound_ = new XsdTypeDouble(lowerBoundNode);
         }
     }
     
 
     XmlNode upperBoundNode = xmlNode.SelectSingleNode("upperBound");
     
     if (upperBoundNode != null)
     {
         if (upperBoundNode.Attributes["href"] != null || upperBoundNode.Attributes["id"] != null) 
         {
             if (upperBoundNode.Attributes["id"] != null) 
             {
                 upperBoundIDRef_ = upperBoundNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(upperBoundNode);
                 IDManager.SetID(upperBoundIDRef_, ob);
             }
             else if (upperBoundNode.Attributes["href"] != null)
             {
                 upperBoundIDRef_ = upperBoundNode.Attributes["href"].Value;
             }
             else
             {
                 upperBound_ = new XsdTypeDouble(upperBoundNode);
             }
         }
         else
         {
             upperBound_ = new XsdTypeDouble(upperBoundNode);
         }
     }
     
 
     XmlNode lowerBoundEqualityNode = xmlNode.SelectSingleNode("lowerBoundEquality");
     
     if (lowerBoundEqualityNode != null)
     {
         if (lowerBoundEqualityNode.Attributes["href"] != null || lowerBoundEqualityNode.Attributes["id"] != null) 
         {
             if (lowerBoundEqualityNode.Attributes["id"] != null) 
             {
                 lowerBoundEqualityIDRef_ = lowerBoundEqualityNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(lowerBoundEqualityNode);
                 IDManager.SetID(lowerBoundEqualityIDRef_, ob);
             }
             else if (lowerBoundEqualityNode.Attributes["href"] != null)
             {
                 lowerBoundEqualityIDRef_ = lowerBoundEqualityNode.Attributes["href"].Value;
             }
             else
             {
                 lowerBoundEquality_ = new XsdTypeDouble(lowerBoundEqualityNode);
             }
         }
         else
         {
             lowerBoundEquality_ = new XsdTypeDouble(lowerBoundEqualityNode);
         }
     }
     
 
     XmlNode upperBoundEqualityNode = xmlNode.SelectSingleNode("upperBoundEquality");
     
     if (upperBoundEqualityNode != null)
     {
         if (upperBoundEqualityNode.Attributes["href"] != null || upperBoundEqualityNode.Attributes["id"] != null) 
         {
             if (upperBoundEqualityNode.Attributes["id"] != null) 
             {
                 upperBoundEqualityIDRef_ = upperBoundEqualityNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(upperBoundEqualityNode);
                 IDManager.SetID(upperBoundEqualityIDRef_, ob);
             }
             else if (upperBoundEqualityNode.Attributes["href"] != null)
             {
                 upperBoundEqualityIDRef_ = upperBoundEqualityNode.Attributes["href"].Value;
             }
             else
             {
                 upperBoundEquality_ = new XsdTypeDouble(upperBoundEqualityNode);
             }
         }
         else
         {
             upperBoundEquality_ = new XsdTypeDouble(upperBoundEqualityNode);
         }
     }
     
 
 }
 public HullWhiteOneFactor(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode alphaNode = xmlNode.SelectSingleNode("alpha");
     
     if (alphaNode != null)
     {
         if (alphaNode.Attributes["href"] != null || alphaNode.Attributes["id"] != null) 
         {
             if (alphaNode.Attributes["id"] != null) 
             {
                 alphaIDRef_ = alphaNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(alphaNode);
                 IDManager.SetID(alphaIDRef_, ob);
             }
             else if (alphaNode.Attributes["href"] != null)
             {
                 alphaIDRef_ = alphaNode.Attributes["href"].Value;
             }
             else
             {
                 alpha_ = new XsdTypeDouble(alphaNode);
             }
         }
         else
         {
             alpha_ = new XsdTypeDouble(alphaNode);
         }
     }
     
 
     XmlNode sigmaNode = xmlNode.SelectSingleNode("sigma");
     
     if (sigmaNode != null)
     {
         if (sigmaNode.Attributes["href"] != null || sigmaNode.Attributes["id"] != null) 
         {
             if (sigmaNode.Attributes["id"] != null) 
             {
                 sigmaIDRef_ = sigmaNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(sigmaNode);
                 IDManager.SetID(sigmaIDRef_, ob);
             }
             else if (sigmaNode.Attributes["href"] != null)
             {
                 sigmaIDRef_ = sigmaNode.Attributes["href"].Value;
             }
             else
             {
                 sigma_ = new XsdTypeDouble(sigmaNode);
             }
         }
         else
         {
             sigma_ = new XsdTypeDouble(sigmaNode);
         }
     }
     
 
     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;
                 Tenor ob = new Tenor(tenorNode);
                 IDManager.SetID(tenorIDRef_, ob);
             }
             else if (tenorNode.Attributes["href"] != null)
             {
                 tenorIDRef_ = tenorNode.Attributes["href"].Value;
             }
             else
             {
                 tenor_ = new Tenor(tenorNode);
             }
         }
         else
         {
             tenor_ = new Tenor(tenorNode);
         }
     }
     
 
     XmlNode fittingYieldCurveNode = xmlNode.SelectSingleNode("fittingYieldCurve");
     
     if (fittingYieldCurveNode != null)
     {
         if (fittingYieldCurveNode.Attributes["href"] != null || fittingYieldCurveNode.Attributes["id"] != null) 
         {
             if (fittingYieldCurveNode.Attributes["id"] != null) 
             {
                 fittingYieldCurveIDRef_ = fittingYieldCurveNode.Attributes["id"].Value;
                 FittingYieldCurve ob = new FittingYieldCurve(fittingYieldCurveNode);
                 IDManager.SetID(fittingYieldCurveIDRef_, ob);
             }
             else if (fittingYieldCurveNode.Attributes["href"] != null)
             {
                 fittingYieldCurveIDRef_ = fittingYieldCurveNode.Attributes["href"].Value;
             }
             else
             {
                 fittingYieldCurve_ = new FittingYieldCurve(fittingYieldCurveNode);
             }
         }
         else
         {
             fittingYieldCurve_ = new FittingYieldCurve(fittingYieldCurveNode);
         }
     }
     
 
 }
 public SimpleRangeConstReturnTrigger(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode dateOrderNode = xmlNode.SelectSingleNode("dateOrder");
     
     if (dateOrderNode != null)
     {
         if (dateOrderNode.Attributes["href"] != null || dateOrderNode.Attributes["id"] != null) 
         {
             if (dateOrderNode.Attributes["id"] != null) 
             {
                 dateOrderIDRef_ = dateOrderNode.Attributes["id"].Value;
                 XsdTypeInteger ob = new XsdTypeInteger(dateOrderNode);
                 IDManager.SetID(dateOrderIDRef_, ob);
             }
             else if (dateOrderNode.Attributes["href"] != null)
             {
                 dateOrderIDRef_ = dateOrderNode.Attributes["href"].Value;
             }
             else
             {
                 dateOrder_ = new XsdTypeInteger(dateOrderNode);
             }
         }
         else
         {
             dateOrder_ = new XsdTypeInteger(dateOrderNode);
         }
     }
     
 
     XmlNode simpleRangeEventCalNode = xmlNode.SelectSingleNode("simpleRangeEventCal");
     
     if (simpleRangeEventCalNode != null)
     {
         if (simpleRangeEventCalNode.Attributes["href"] != null || simpleRangeEventCalNode.Attributes["id"] != null) 
         {
             if (simpleRangeEventCalNode.Attributes["id"] != null) 
             {
                 simpleRangeEventCalIDRef_ = simpleRangeEventCalNode.Attributes["id"].Value;
                 SimpleRangeEventCal ob = new SimpleRangeEventCal(simpleRangeEventCalNode);
                 IDManager.SetID(simpleRangeEventCalIDRef_, ob);
             }
             else if (simpleRangeEventCalNode.Attributes["href"] != null)
             {
                 simpleRangeEventCalIDRef_ = simpleRangeEventCalNode.Attributes["href"].Value;
             }
             else
             {
                 simpleRangeEventCal_ = new SimpleRangeEventCal(simpleRangeEventCalNode);
             }
         }
         else
         {
             simpleRangeEventCal_ = new SimpleRangeEventCal(simpleRangeEventCalNode);
         }
     }
     
 
     XmlNode payoffDateInfoNode = xmlNode.SelectSingleNode("payoffDateInfo");
     
     if (payoffDateInfoNode != null)
     {
         if (payoffDateInfoNode.Attributes["href"] != null || payoffDateInfoNode.Attributes["id"] != null) 
         {
             if (payoffDateInfoNode.Attributes["id"] != null) 
             {
                 payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["id"].Value;
                 PayoffDateInfo ob = new PayoffDateInfo(payoffDateInfoNode);
                 IDManager.SetID(payoffDateInfoIDRef_, ob);
             }
             else if (payoffDateInfoNode.Attributes["href"] != null)
             {
                 payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["href"].Value;
             }
             else
             {
                 payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
             }
         }
         else
         {
             payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
         }
     }
     
 
     XmlNode constReturnNode = xmlNode.SelectSingleNode("constReturn");
     
     if (constReturnNode != null)
     {
         if (constReturnNode.Attributes["href"] != null || constReturnNode.Attributes["id"] != null) 
         {
             if (constReturnNode.Attributes["id"] != null) 
             {
                 constReturnIDRef_ = constReturnNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(constReturnNode);
                 IDManager.SetID(constReturnIDRef_, ob);
             }
             else if (constReturnNode.Attributes["href"] != null)
             {
                 constReturnIDRef_ = constReturnNode.Attributes["href"].Value;
             }
             else
             {
                 constReturn_ = new XsdTypeDouble(constReturnNode);
             }
         }
         else
         {
             constReturn_ = new XsdTypeDouble(constReturnNode);
         }
     }
     
 
     XmlNode averageDaysNode = xmlNode.SelectSingleNode("averageDays");
     
     if (averageDaysNode != null)
     {
         if (averageDaysNode.Attributes["href"] != null || averageDaysNode.Attributes["id"] != null) 
         {
             if (averageDaysNode.Attributes["id"] != null) 
             {
                 averageDaysIDRef_ = averageDaysNode.Attributes["id"].Value;
                 XsdTypeInteger ob = new XsdTypeInteger(averageDaysNode);
                 IDManager.SetID(averageDaysIDRef_, ob);
             }
             else if (averageDaysNode.Attributes["href"] != null)
             {
                 averageDaysIDRef_ = averageDaysNode.Attributes["href"].Value;
             }
             else
             {
                 averageDays_ = new XsdTypeInteger(averageDaysNode);
             }
         }
         else
         {
             averageDays_ = new XsdTypeInteger(averageDaysNode);
         }
     }
     
 
     XmlNode isExpiredNode = xmlNode.SelectSingleNode("isExpired");
     
     if (isExpiredNode != null)
     {
         if (isExpiredNode.Attributes["href"] != null || isExpiredNode.Attributes["id"] != null) 
         {
             if (isExpiredNode.Attributes["id"] != null) 
             {
                 isExpiredIDRef_ = isExpiredNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(isExpiredNode);
                 IDManager.SetID(isExpiredIDRef_, ob);
             }
             else if (isExpiredNode.Attributes["href"] != null)
             {
                 isExpiredIDRef_ = isExpiredNode.Attributes["href"].Value;
             }
             else
             {
                 isExpired_ = new XsdTypeBoolean(isExpiredNode);
             }
         }
         else
         {
             isExpired_ = new XsdTypeBoolean(isExpiredNode);
         }
     }
     
 
 }
        public FixedRateTrigger(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode dayCounterNode = xmlNode.SelectSingleNode("dayCounter");

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


            XmlNode calculationStartDateNode = xmlNode.SelectSingleNode("calculationStartDate");

            if (calculationStartDateNode != null)
            {
                if (calculationStartDateNode.Attributes["href"] != null || calculationStartDateNode.Attributes["id"] != null)
                {
                    if (calculationStartDateNode.Attributes["id"] != null)
                    {
                        calculationStartDateIDRef_ = calculationStartDateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(calculationStartDateNode);
                        IDManager.SetID(calculationStartDateIDRef_, ob);
                    }
                    else if (calculationStartDateNode.Attributes["href"] != null)
                    {
                        calculationStartDateIDRef_ = calculationStartDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        calculationStartDate_ = new XsdTypeDate(calculationStartDateNode);
                    }
                }
                else
                {
                    calculationStartDate_ = new XsdTypeDate(calculationStartDateNode);
                }
            }


            XmlNode calculationEndDateNode = xmlNode.SelectSingleNode("calculationEndDate");

            if (calculationEndDateNode != null)
            {
                if (calculationEndDateNode.Attributes["href"] != null || calculationEndDateNode.Attributes["id"] != null)
                {
                    if (calculationEndDateNode.Attributes["id"] != null)
                    {
                        calculationEndDateIDRef_ = calculationEndDateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(calculationEndDateNode);
                        IDManager.SetID(calculationEndDateIDRef_, ob);
                    }
                    else if (calculationEndDateNode.Attributes["href"] != null)
                    {
                        calculationEndDateIDRef_ = calculationEndDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        calculationEndDate_ = new XsdTypeDate(calculationEndDateNode);
                    }
                }
                else
                {
                    calculationEndDate_ = new XsdTypeDate(calculationEndDateNode);
                }
            }


            XmlNode fixedRateNode = xmlNode.SelectSingleNode("fixedRate");

            if (fixedRateNode != null)
            {
                if (fixedRateNode.Attributes["href"] != null || fixedRateNode.Attributes["id"] != null)
                {
                    if (fixedRateNode.Attributes["id"] != null)
                    {
                        fixedRateIDRef_ = fixedRateNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(fixedRateNode);
                        IDManager.SetID(fixedRateIDRef_, ob);
                    }
                    else if (fixedRateNode.Attributes["href"] != null)
                    {
                        fixedRateIDRef_ = fixedRateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fixedRate_ = new XsdTypeDouble(fixedRateNode);
                    }
                }
                else
                {
                    fixedRate_ = new XsdTypeDouble(fixedRateNode);
                }
            }


            XmlNode payoffDateInfoNode = xmlNode.SelectSingleNode("payoffDateInfo");

            if (payoffDateInfoNode != null)
            {
                if (payoffDateInfoNode.Attributes["href"] != null || payoffDateInfoNode.Attributes["id"] != null)
                {
                    if (payoffDateInfoNode.Attributes["id"] != null)
                    {
                        payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["id"].Value;
                        PayoffDateInfo ob = new PayoffDateInfo(payoffDateInfoNode);
                        IDManager.SetID(payoffDateInfoIDRef_, ob);
                    }
                    else if (payoffDateInfoNode.Attributes["href"] != null)
                    {
                        payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
                    }
                }
                else
                {
                    payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
                }
            }


            XmlNode isExpiredNode = xmlNode.SelectSingleNode("isExpired");

            if (isExpiredNode != null)
            {
                if (isExpiredNode.Attributes["href"] != null || isExpiredNode.Attributes["id"] != null)
                {
                    if (isExpiredNode.Attributes["id"] != null)
                    {
                        isExpiredIDRef_ = isExpiredNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(isExpiredNode);
                        IDManager.SetID(isExpiredIDRef_, ob);
                    }
                    else if (isExpiredNode.Attributes["href"] != null)
                    {
                        isExpiredIDRef_ = isExpiredNode.Attributes["href"].Value;
                    }
                    else
                    {
                        isExpired_ = new XsdTypeBoolean(isExpiredNode);
                    }
                }
                else
                {
                    isExpired_ = new XsdTypeBoolean(isExpiredNode);
                }
            }
        }
 public VanillaCallOption(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode payoffDateInfoNode = xmlNode.SelectSingleNode("payoffDateInfo");
     
     if (payoffDateInfoNode != null)
     {
         if (payoffDateInfoNode.Attributes["href"] != null || payoffDateInfoNode.Attributes["id"] != null) 
         {
             if (payoffDateInfoNode.Attributes["id"] != null) 
             {
                 payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["id"].Value;
                 PayoffDateInfo ob = new PayoffDateInfo(payoffDateInfoNode);
                 IDManager.SetID(payoffDateInfoIDRef_, ob);
             }
             else if (payoffDateInfoNode.Attributes["href"] != null)
             {
                 payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["href"].Value;
             }
             else
             {
                 payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
             }
         }
         else
         {
             payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
         }
     }
     
 
     XmlNode participateRateNode = xmlNode.SelectSingleNode("participateRate");
     
     if (participateRateNode != null)
     {
         if (participateRateNode.Attributes["href"] != null || participateRateNode.Attributes["id"] != null) 
         {
             if (participateRateNode.Attributes["id"] != null) 
             {
                 participateRateIDRef_ = participateRateNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(participateRateNode);
                 IDManager.SetID(participateRateIDRef_, ob);
             }
             else if (participateRateNode.Attributes["href"] != null)
             {
                 participateRateIDRef_ = participateRateNode.Attributes["href"].Value;
             }
             else
             {
                 participateRate_ = new XsdTypeDouble(participateRateNode);
             }
         }
         else
         {
             participateRate_ = new XsdTypeDouble(participateRateNode);
         }
     }
     
 
     XmlNode referenceCalculationInfoNode = xmlNode.SelectSingleNode("referenceCalculationInfo");
     
     if (referenceCalculationInfoNode != null)
     {
         if (referenceCalculationInfoNode.Attributes["href"] != null || referenceCalculationInfoNode.Attributes["id"] != null) 
         {
             if (referenceCalculationInfoNode.Attributes["id"] != null) 
             {
                 referenceCalculationInfoIDRef_ = referenceCalculationInfoNode.Attributes["id"].Value;
                 ReferenceCalculationInfo ob = new ReferenceCalculationInfo(referenceCalculationInfoNode);
                 IDManager.SetID(referenceCalculationInfoIDRef_, ob);
             }
             else if (referenceCalculationInfoNode.Attributes["href"] != null)
             {
                 referenceCalculationInfoIDRef_ = referenceCalculationInfoNode.Attributes["href"].Value;
             }
             else
             {
                 referenceCalculationInfo_ = new ReferenceCalculationInfo(referenceCalculationInfoNode);
             }
         }
         else
         {
             referenceCalculationInfo_ = new ReferenceCalculationInfo(referenceCalculationInfoNode);
         }
     }
     
 
     XmlNode strikeNode = xmlNode.SelectSingleNode("strike");
     
     if (strikeNode != null)
     {
         if (strikeNode.Attributes["href"] != null || strikeNode.Attributes["id"] != null) 
         {
             if (strikeNode.Attributes["id"] != null) 
             {
                 strikeIDRef_ = strikeNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(strikeNode);
                 IDManager.SetID(strikeIDRef_, ob);
             }
             else if (strikeNode.Attributes["href"] != null)
             {
                 strikeIDRef_ = strikeNode.Attributes["href"].Value;
             }
             else
             {
                 strike_ = new XsdTypeDouble(strikeNode);
             }
         }
         else
         {
             strike_ = new XsdTypeDouble(strikeNode);
         }
     }
     
 
     XmlNode lowerBoundNode = xmlNode.SelectSingleNode("lowerBound");
     
     if (lowerBoundNode != null)
     {
         if (lowerBoundNode.Attributes["href"] != null || lowerBoundNode.Attributes["id"] != null) 
         {
             if (lowerBoundNode.Attributes["id"] != null) 
             {
                 lowerBoundIDRef_ = lowerBoundNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(lowerBoundNode);
                 IDManager.SetID(lowerBoundIDRef_, ob);
             }
             else if (lowerBoundNode.Attributes["href"] != null)
             {
                 lowerBoundIDRef_ = lowerBoundNode.Attributes["href"].Value;
             }
             else
             {
                 lowerBound_ = new XsdTypeDouble(lowerBoundNode);
             }
         }
         else
         {
             lowerBound_ = new XsdTypeDouble(lowerBoundNode);
         }
     }
     
 
 }
 public Excel_referenceObligation(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode instrumentIdNode = xmlNode.SelectSingleNode("instrumentId");
     
     if (instrumentIdNode != null)
     {
         if (instrumentIdNode.Attributes["href"] != null || instrumentIdNode.Attributes["id"] != null) 
         {
             if (instrumentIdNode.Attributes["id"] != null) 
             {
                 instrumentIdIDRef_ = instrumentIdNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(instrumentIdNode);
                 IDManager.SetID(instrumentIdIDRef_, ob);
             }
             else if (instrumentIdNode.Attributes["href"] != null)
             {
                 instrumentIdIDRef_ = instrumentIdNode.Attributes["href"].Value;
             }
             else
             {
                 instrumentId_ = new XsdTypeToken(instrumentIdNode);
             }
         }
         else
         {
             instrumentId_ = new XsdTypeToken(instrumentIdNode);
         }
     }
     
 
     XmlNode couponRateNode = xmlNode.SelectSingleNode("couponRate");
     
     if (couponRateNode != null)
     {
         if (couponRateNode.Attributes["href"] != null || couponRateNode.Attributes["id"] != null) 
         {
             if (couponRateNode.Attributes["id"] != null) 
             {
                 couponRateIDRef_ = couponRateNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(couponRateNode);
                 IDManager.SetID(couponRateIDRef_, ob);
             }
             else if (couponRateNode.Attributes["href"] != null)
             {
                 couponRateIDRef_ = couponRateNode.Attributes["href"].Value;
             }
             else
             {
                 couponRate_ = new XsdTypeDouble(couponRateNode);
             }
         }
         else
         {
             couponRate_ = new XsdTypeDouble(couponRateNode);
         }
     }
     
 
     XmlNode maturityNode = xmlNode.SelectSingleNode("maturity");
     
     if (maturityNode != null)
     {
         if (maturityNode.Attributes["href"] != null || maturityNode.Attributes["id"] != null) 
         {
             if (maturityNode.Attributes["id"] != null) 
             {
                 maturityIDRef_ = maturityNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(maturityNode);
                 IDManager.SetID(maturityIDRef_, ob);
             }
             else if (maturityNode.Attributes["href"] != null)
             {
                 maturityIDRef_ = maturityNode.Attributes["href"].Value;
             }
             else
             {
                 maturity_ = new XsdTypeDate(maturityNode);
             }
         }
         else
         {
             maturity_ = new XsdTypeDate(maturityNode);
         }
     }
     
 
     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);
         }
     }
     
 
 }
Пример #56
0
        public VanillaReturnCal(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode gearingNode = xmlNode.SelectSingleNode("gearing");

            if (gearingNode != null)
            {
                if (gearingNode.Attributes["href"] != null || gearingNode.Attributes["id"] != null)
                {
                    if (gearingNode.Attributes["id"] != null)
                    {
                        gearingIDRef_ = gearingNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(gearingNode);
                        IDManager.SetID(gearingIDRef_, ob);
                    }
                    else if (gearingNode.Attributes["href"] != null)
                    {
                        gearingIDRef_ = gearingNode.Attributes["href"].Value;
                    }
                    else
                    {
                        gearing_ = new XsdTypeDouble(gearingNode);
                    }
                }
                else
                {
                    gearing_ = new XsdTypeDouble(gearingNode);
                }
            }


            XmlNode spreadNode = xmlNode.SelectSingleNode("spread");

            if (spreadNode != null)
            {
                if (spreadNode.Attributes["href"] != null || spreadNode.Attributes["id"] != null)
                {
                    if (spreadNode.Attributes["id"] != null)
                    {
                        spreadIDRef_ = spreadNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(spreadNode);
                        IDManager.SetID(spreadIDRef_, ob);
                    }
                    else if (spreadNode.Attributes["href"] != null)
                    {
                        spreadIDRef_ = spreadNode.Attributes["href"].Value;
                    }
                    else
                    {
                        spread_ = new XsdTypeDouble(spreadNode);
                    }
                }
                else
                {
                    spread_ = new XsdTypeDouble(spreadNode);
                }
            }


            XmlNode referenceCalculationInfoNode = xmlNode.SelectSingleNode("referenceCalculationInfo");

            if (referenceCalculationInfoNode != null)
            {
                if (referenceCalculationInfoNode.Attributes["href"] != null || referenceCalculationInfoNode.Attributes["id"] != null)
                {
                    if (referenceCalculationInfoNode.Attributes["id"] != null)
                    {
                        referenceCalculationInfoIDRef_ = referenceCalculationInfoNode.Attributes["id"].Value;
                        ReferenceCalculationInfo ob = new ReferenceCalculationInfo(referenceCalculationInfoNode);
                        IDManager.SetID(referenceCalculationInfoIDRef_, ob);
                    }
                    else if (referenceCalculationInfoNode.Attributes["href"] != null)
                    {
                        referenceCalculationInfoIDRef_ = referenceCalculationInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        referenceCalculationInfo_ = new ReferenceCalculationInfo(referenceCalculationInfoNode);
                    }
                }
                else
                {
                    referenceCalculationInfo_ = new ReferenceCalculationInfo(referenceCalculationInfoNode);
                }
            }
        }
Пример #57
0
        public AutoCallConstReturnTrigger(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode dateOrderNode = xmlNode.SelectSingleNode("dateOrder");

            if (dateOrderNode != null)
            {
                if (dateOrderNode.Attributes["href"] != null || dateOrderNode.Attributes["id"] != null)
                {
                    if (dateOrderNode.Attributes["id"] != null)
                    {
                        dateOrderIDRef_ = dateOrderNode.Attributes["id"].Value;
                        XsdTypeInteger ob = new XsdTypeInteger(dateOrderNode);
                        IDManager.SetID(dateOrderIDRef_, ob);
                    }
                    else if (dateOrderNode.Attributes["href"] != null)
                    {
                        dateOrderIDRef_ = dateOrderNode.Attributes["href"].Value;
                    }
                    else
                    {
                        dateOrder_ = new XsdTypeInteger(dateOrderNode);
                    }
                }
                else
                {
                    dateOrder_ = new XsdTypeInteger(dateOrderNode);
                }
            }


            XmlNode fixingDateInfoNode = xmlNode.SelectSingleNode("fixingDateInfo");

            if (fixingDateInfoNode != null)
            {
                if (fixingDateInfoNode.Attributes["href"] != null || fixingDateInfoNode.Attributes["id"] != null)
                {
                    if (fixingDateInfoNode.Attributes["id"] != null)
                    {
                        fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["id"].Value;
                        FixingDateInfo ob = new FixingDateInfo(fixingDateInfoNode);
                        IDManager.SetID(fixingDateInfoIDRef_, ob);
                    }
                    else if (fixingDateInfoNode.Attributes["href"] != null)
                    {
                        fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode);
                    }
                }
                else
                {
                    fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode);
                }
            }


            XmlNode payoffDateInfoNode = xmlNode.SelectSingleNode("payoffDateInfo");

            if (payoffDateInfoNode != null)
            {
                if (payoffDateInfoNode.Attributes["href"] != null || payoffDateInfoNode.Attributes["id"] != null)
                {
                    if (payoffDateInfoNode.Attributes["id"] != null)
                    {
                        payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["id"].Value;
                        PayoffDateInfo ob = new PayoffDateInfo(payoffDateInfoNode);
                        IDManager.SetID(payoffDateInfoIDRef_, ob);
                    }
                    else if (payoffDateInfoNode.Attributes["href"] != null)
                    {
                        payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
                    }
                }
                else
                {
                    payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
                }
            }


            XmlNode triggerNode = xmlNode.SelectSingleNode("trigger");

            if (triggerNode != null)
            {
                if (triggerNode.Attributes["href"] != null || triggerNode.Attributes["id"] != null)
                {
                    if (triggerNode.Attributes["id"] != null)
                    {
                        triggerIDRef_ = triggerNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(triggerNode);
                        IDManager.SetID(triggerIDRef_, ob);
                    }
                    else if (triggerNode.Attributes["href"] != null)
                    {
                        triggerIDRef_ = triggerNode.Attributes["href"].Value;
                    }
                    else
                    {
                        trigger_ = new XsdTypeDouble(triggerNode);
                    }
                }
                else
                {
                    trigger_ = new XsdTypeDouble(triggerNode);
                }
            }


            XmlNode returnNode = xmlNode.SelectSingleNode("return");

            if (returnNode != null)
            {
                if (returnNode.Attributes["href"] != null || returnNode.Attributes["id"] != null)
                {
                    if (returnNode.Attributes["id"] != null)
                    {
                        returnIDRef_ = returnNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(returnNode);
                        IDManager.SetID(returnIDRef_, ob);
                    }
                    else if (returnNode.Attributes["href"] != null)
                    {
                        returnIDRef_ = returnNode.Attributes["href"].Value;
                    }
                    else
                    {
                        return_ = new XsdTypeDouble(returnNode);
                    }
                }
                else
                {
                    return_ = new XsdTypeDouble(returnNode);
                }
            }


            XmlNode averageDaysNode = xmlNode.SelectSingleNode("averageDays");

            if (averageDaysNode != null)
            {
                if (averageDaysNode.Attributes["href"] != null || averageDaysNode.Attributes["id"] != null)
                {
                    if (averageDaysNode.Attributes["id"] != null)
                    {
                        averageDaysIDRef_ = averageDaysNode.Attributes["id"].Value;
                        XsdTypeInteger ob = new XsdTypeInteger(averageDaysNode);
                        IDManager.SetID(averageDaysIDRef_, ob);
                    }
                    else if (averageDaysNode.Attributes["href"] != null)
                    {
                        averageDaysIDRef_ = averageDaysNode.Attributes["href"].Value;
                    }
                    else
                    {
                        averageDays_ = new XsdTypeInteger(averageDaysNode);
                    }
                }
                else
                {
                    averageDays_ = new XsdTypeInteger(averageDaysNode);
                }
            }


            XmlNode isExpiredNode = xmlNode.SelectSingleNode("isExpired");

            if (isExpiredNode != null)
            {
                if (isExpiredNode.Attributes["href"] != null || isExpiredNode.Attributes["id"] != null)
                {
                    if (isExpiredNode.Attributes["id"] != null)
                    {
                        isExpiredIDRef_ = isExpiredNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(isExpiredNode);
                        IDManager.SetID(isExpiredIDRef_, ob);
                    }
                    else if (isExpiredNode.Attributes["href"] != null)
                    {
                        isExpiredIDRef_ = isExpiredNode.Attributes["href"].Value;
                    }
                    else
                    {
                        isExpired_ = new XsdTypeBoolean(isExpiredNode);
                    }
                }
                else
                {
                    isExpired_ = new XsdTypeBoolean(isExpiredNode);
                }
            }
        }
 public VariableValue(XmlNode xmlNode)
 {
     XmlNode indexRefNode = xmlNode.SelectSingleNode("indexRef");
     
     if (indexRefNode != null)
     {
         if (indexRefNode.Attributes["href"] != null || indexRefNode.Attributes["id"] != null) 
         {
             if (indexRefNode.Attributes["id"] != null) 
             {
                 indexRefIDRef_ = indexRefNode.Attributes["id"].Value;
                 IndexRef ob = new IndexRef(indexRefNode);
                 IDManager.SetID(indexRefIDRef_, ob);
             }
             else if (indexRefNode.Attributes["href"] != null)
             {
                 indexRefIDRef_ = indexRefNode.Attributes["href"].Value;
             }
             else
             {
                 indexRef_ = new IndexRef(indexRefNode);
             }
         }
         else
         {
             indexRef_ = new IndexRef(indexRefNode);
         }
     }
     
 
     XmlNode indexTimeRefNode = xmlNode.SelectSingleNode("indexTimeRef");
     
     if (indexTimeRefNode != null)
     {
         if (indexTimeRefNode.Attributes["href"] != null || indexTimeRefNode.Attributes["id"] != null) 
         {
             if (indexTimeRefNode.Attributes["id"] != null) 
             {
                 indexTimeRefIDRef_ = indexTimeRefNode.Attributes["id"].Value;
                 IndexTimeRef ob = new IndexTimeRef(indexTimeRefNode);
                 IDManager.SetID(indexTimeRefIDRef_, ob);
             }
             else if (indexTimeRefNode.Attributes["href"] != null)
             {
                 indexTimeRefIDRef_ = indexTimeRefNode.Attributes["href"].Value;
             }
             else
             {
                 indexTimeRef_ = new IndexTimeRef(indexTimeRefNode);
             }
         }
         else
         {
             indexTimeRef_ = new IndexTimeRef(indexTimeRefNode);
         }
     }
     
 
     XmlNode symbolNameNode = xmlNode.SelectSingleNode("symbolName");
     
     if (symbolNameNode != null)
     {
         if (symbolNameNode.Attributes["href"] != null || symbolNameNode.Attributes["id"] != null) 
         {
             if (symbolNameNode.Attributes["id"] != null) 
             {
                 symbolNameIDRef_ = symbolNameNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(symbolNameNode);
                 IDManager.SetID(symbolNameIDRef_, ob);
             }
             else if (symbolNameNode.Attributes["href"] != null)
             {
                 symbolNameIDRef_ = symbolNameNode.Attributes["href"].Value;
             }
             else
             {
                 symbolName_ = new XsdTypeToken(symbolNameNode);
             }
         }
         else
         {
             symbolName_ = new XsdTypeToken(symbolNameNode);
         }
     }
     
 
     XmlNode constValueNode = xmlNode.SelectSingleNode("constValue");
     
     if (constValueNode != null)
     {
         if (constValueNode.Attributes["href"] != null || constValueNode.Attributes["id"] != null) 
         {
             if (constValueNode.Attributes["id"] != null) 
             {
                 constValueIDRef_ = constValueNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(constValueNode);
                 IDManager.SetID(constValueIDRef_, ob);
             }
             else if (constValueNode.Attributes["href"] != null)
             {
                 constValueIDRef_ = constValueNode.Attributes["href"].Value;
             }
             else
             {
                 constValue_ = new XsdTypeDouble(constValueNode);
             }
         }
         else
         {
             constValue_ = new XsdTypeDouble(constValueNode);
         }
     }
     
 
 }
 public StandardOption(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode unitNode = xmlNode.SelectSingleNode("unit");
     
     if (unitNode != null)
     {
         if (unitNode.Attributes["href"] != null || unitNode.Attributes["id"] != null) 
         {
             if (unitNode.Attributes["id"] != null) 
             {
                 unitIDRef_ = unitNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(unitNode);
                 IDManager.SetID(unitIDRef_, ob);
             }
             else if (unitNode.Attributes["href"] != null)
             {
                 unitIDRef_ = unitNode.Attributes["href"].Value;
             }
             else
             {
                 unit_ = new XsdTypeDouble(unitNode);
             }
         }
         else
         {
             unit_ = new XsdTypeDouble(unitNode);
         }
     }
     
 
     XmlNode baseCouponNode = xmlNode.SelectSingleNode("baseCoupon");
     
     if (baseCouponNode != null)
     {
         if (baseCouponNode.Attributes["href"] != null || baseCouponNode.Attributes["id"] != null) 
         {
             if (baseCouponNode.Attributes["id"] != null) 
             {
                 baseCouponIDRef_ = baseCouponNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(baseCouponNode);
                 IDManager.SetID(baseCouponIDRef_, ob);
             }
             else if (baseCouponNode.Attributes["href"] != null)
             {
                 baseCouponIDRef_ = baseCouponNode.Attributes["href"].Value;
             }
             else
             {
                 baseCoupon_ = new XsdTypeDouble(baseCouponNode);
             }
         }
         else
         {
             baseCoupon_ = new XsdTypeDouble(baseCouponNode);
         }
     }
     
 
     XmlNode typeNode = xmlNode.SelectSingleNode("type");
     
     if (typeNode != null)
     {
         if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null) 
         {
             if (typeNode.Attributes["id"] != null) 
             {
                 typeIDRef_ = typeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(typeNode);
                 IDManager.SetID(typeIDRef_, ob);
             }
             else if (typeNode.Attributes["href"] != null)
             {
                 typeIDRef_ = typeNode.Attributes["href"].Value;
             }
             else
             {
                 type_ = new XsdTypeToken(typeNode);
             }
         }
         else
         {
             type_ = new XsdTypeToken(typeNode);
         }
     }
     
 
     XmlNode singleBarrierNode = xmlNode.SelectSingleNode("singleBarrier");
     
     if (singleBarrierNode != null)
     {
         if (singleBarrierNode.Attributes["href"] != null || singleBarrierNode.Attributes["id"] != null) 
         {
             if (singleBarrierNode.Attributes["id"] != null) 
             {
                 singleBarrierIDRef_ = singleBarrierNode.Attributes["id"].Value;
                 SingleBarrier ob = new SingleBarrier(singleBarrierNode);
                 IDManager.SetID(singleBarrierIDRef_, ob);
             }
             else if (singleBarrierNode.Attributes["href"] != null)
             {
                 singleBarrierIDRef_ = singleBarrierNode.Attributes["href"].Value;
             }
             else
             {
                 singleBarrier_ = new SingleBarrier(singleBarrierNode);
             }
         }
         else
         {
             singleBarrier_ = new SingleBarrier(singleBarrierNode);
         }
     }
     
 
     XmlNode vanillaCallOptionNode = xmlNode.SelectSingleNode("vanillaCallOption");
     
     if (vanillaCallOptionNode != null)
     {
         if (vanillaCallOptionNode.Attributes["href"] != null || vanillaCallOptionNode.Attributes["id"] != null) 
         {
             if (vanillaCallOptionNode.Attributes["id"] != null) 
             {
                 vanillaCallOptionIDRef_ = vanillaCallOptionNode.Attributes["id"].Value;
                 VanillaCallOption ob = new VanillaCallOption(vanillaCallOptionNode);
                 IDManager.SetID(vanillaCallOptionIDRef_, ob);
             }
             else if (vanillaCallOptionNode.Attributes["href"] != null)
             {
                 vanillaCallOptionIDRef_ = vanillaCallOptionNode.Attributes["href"].Value;
             }
             else
             {
                 vanillaCallOption_ = new VanillaCallOption(vanillaCallOptionNode);
             }
         }
         else
         {
             vanillaCallOption_ = new VanillaCallOption(vanillaCallOptionNode);
         }
     }
     
 
     XmlNode vanillaPutOptionNode = xmlNode.SelectSingleNode("vanillaPutOption");
     
     if (vanillaPutOptionNode != null)
     {
         if (vanillaPutOptionNode.Attributes["href"] != null || vanillaPutOptionNode.Attributes["id"] != null) 
         {
             if (vanillaPutOptionNode.Attributes["id"] != null) 
             {
                 vanillaPutOptionIDRef_ = vanillaPutOptionNode.Attributes["id"].Value;
                 VanillaPutOption ob = new VanillaPutOption(vanillaPutOptionNode);
                 IDManager.SetID(vanillaPutOptionIDRef_, ob);
             }
             else if (vanillaPutOptionNode.Attributes["href"] != null)
             {
                 vanillaPutOptionIDRef_ = vanillaPutOptionNode.Attributes["href"].Value;
             }
             else
             {
                 vanillaPutOption_ = new VanillaPutOption(vanillaPutOptionNode);
             }
         }
         else
         {
             vanillaPutOption_ = new VanillaPutOption(vanillaPutOptionNode);
         }
     }
     
 
     XmlNode barrierWithConstRebateCallOptionNode = xmlNode.SelectSingleNode("barrierWithConstRebateCallOption");
     
     if (barrierWithConstRebateCallOptionNode != null)
     {
         if (barrierWithConstRebateCallOptionNode.Attributes["href"] != null || barrierWithConstRebateCallOptionNode.Attributes["id"] != null) 
         {
             if (barrierWithConstRebateCallOptionNode.Attributes["id"] != null) 
             {
                 barrierWithConstRebateCallOptionIDRef_ = barrierWithConstRebateCallOptionNode.Attributes["id"].Value;
                 BarrierWithConstRebateCallOption ob = new BarrierWithConstRebateCallOption(barrierWithConstRebateCallOptionNode);
                 IDManager.SetID(barrierWithConstRebateCallOptionIDRef_, ob);
             }
             else if (barrierWithConstRebateCallOptionNode.Attributes["href"] != null)
             {
                 barrierWithConstRebateCallOptionIDRef_ = barrierWithConstRebateCallOptionNode.Attributes["href"].Value;
             }
             else
             {
                 barrierWithConstRebateCallOption_ = new BarrierWithConstRebateCallOption(barrierWithConstRebateCallOptionNode);
             }
         }
         else
         {
             barrierWithConstRebateCallOption_ = new BarrierWithConstRebateCallOption(barrierWithConstRebateCallOptionNode);
         }
     }
     
 
     XmlNode barrierWithConstRebatePutOptionNode = xmlNode.SelectSingleNode("barrierWithConstRebatePutOption");
     
     if (barrierWithConstRebatePutOptionNode != null)
     {
         if (barrierWithConstRebatePutOptionNode.Attributes["href"] != null || barrierWithConstRebatePutOptionNode.Attributes["id"] != null) 
         {
             if (barrierWithConstRebatePutOptionNode.Attributes["id"] != null) 
             {
                 barrierWithConstRebatePutOptionIDRef_ = barrierWithConstRebatePutOptionNode.Attributes["id"].Value;
                 BarrierWithConstRebatePutOption ob = new BarrierWithConstRebatePutOption(barrierWithConstRebatePutOptionNode);
                 IDManager.SetID(barrierWithConstRebatePutOptionIDRef_, ob);
             }
             else if (barrierWithConstRebatePutOptionNode.Attributes["href"] != null)
             {
                 barrierWithConstRebatePutOptionIDRef_ = barrierWithConstRebatePutOptionNode.Attributes["href"].Value;
             }
             else
             {
                 barrierWithConstRebatePutOption_ = new BarrierWithConstRebatePutOption(barrierWithConstRebatePutOptionNode);
             }
         }
         else
         {
             barrierWithConstRebatePutOption_ = new BarrierWithConstRebatePutOption(barrierWithConstRebatePutOptionNode);
         }
     }
     
 
 }