public Excel_dualRangeEventCal(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode lowerRngNode = xmlNode.SelectSingleNode("lowerRng");
     
     if (lowerRngNode != null)
     {
         if (lowerRngNode.Attributes["href"] != null || lowerRngNode.Attributes["id"] != null) 
         {
             if (lowerRngNode.Attributes["id"] != null) 
             {
                 lowerRngIDRef_ = lowerRngNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(lowerRngNode);
                 IDManager.SetID(lowerRngIDRef_, ob);
             }
             else if (lowerRngNode.Attributes["href"] != null)
             {
                 lowerRngIDRef_ = lowerRngNode.Attributes["href"].Value;
             }
             else
             {
                 lowerRng_ = new XsdTypeToken(lowerRngNode);
             }
         }
         else
         {
             lowerRng_ = new XsdTypeToken(lowerRngNode);
         }
     }
     
 
     XmlNode upperRngNode = xmlNode.SelectSingleNode("upperRng");
     
     if (upperRngNode != null)
     {
         if (upperRngNode.Attributes["href"] != null || upperRngNode.Attributes["id"] != null) 
         {
             if (upperRngNode.Attributes["id"] != null) 
             {
                 upperRngIDRef_ = upperRngNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(upperRngNode);
                 IDManager.SetID(upperRngIDRef_, ob);
             }
             else if (upperRngNode.Attributes["href"] != null)
             {
                 upperRngIDRef_ = upperRngNode.Attributes["href"].Value;
             }
             else
             {
                 upperRng_ = new XsdTypeToken(upperRngNode);
             }
         }
         else
         {
             upperRng_ = new XsdTypeToken(upperRngNode);
         }
     }
     
 
     XmlNode excel_underlyingCalcIDNode = xmlNode.SelectSingleNode("excel_underlyingCalcID");
     
     if (excel_underlyingCalcIDNode != null)
     {
         if (excel_underlyingCalcIDNode.Attributes["href"] != null || excel_underlyingCalcIDNode.Attributes["id"] != null) 
         {
             if (excel_underlyingCalcIDNode.Attributes["id"] != null) 
             {
                 excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["id"].Value;
                 Excel_underlyingCalcID ob = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                 IDManager.SetID(excel_underlyingCalcIDIDRef_, ob);
             }
             else if (excel_underlyingCalcIDNode.Attributes["href"] != null)
             {
                 excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["href"].Value;
             }
             else
             {
                 excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
             }
         }
         else
         {
             excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
         }
     }
     
 
 }
 public Excel_singleBarrierEventCal(XmlNode xmlNode)
 : base(xmlNode)
 {
     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;
                 XsdTypeToken ob = new XsdTypeToken(lowerTriggerNode);
                 IDManager.SetID(lowerTriggerIDRef_, ob);
             }
             else if (lowerTriggerNode.Attributes["href"] != null)
             {
                 lowerTriggerIDRef_ = lowerTriggerNode.Attributes["href"].Value;
             }
             else
             {
                 lowerTrigger_ = new XsdTypeToken(lowerTriggerNode);
             }
         }
         else
         {
             lowerTrigger_ = new XsdTypeToken(lowerTriggerNode);
         }
     }
     
 
     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;
                 XsdTypeToken ob = new XsdTypeToken(upperTriggerNode);
                 IDManager.SetID(upperTriggerIDRef_, ob);
             }
             else if (upperTriggerNode.Attributes["href"] != null)
             {
                 upperTriggerIDRef_ = upperTriggerNode.Attributes["href"].Value;
             }
             else
             {
                 upperTrigger_ = new XsdTypeToken(upperTriggerNode);
             }
         }
         else
         {
             upperTrigger_ = new XsdTypeToken(upperTriggerNode);
         }
     }
     
 
     XmlNode excel_underlyingCalcIDNode = xmlNode.SelectSingleNode("excel_underlyingCalcID");
     
     if (excel_underlyingCalcIDNode != null)
     {
         if (excel_underlyingCalcIDNode.Attributes["href"] != null || excel_underlyingCalcIDNode.Attributes["id"] != null) 
         {
             if (excel_underlyingCalcIDNode.Attributes["id"] != null) 
             {
                 excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["id"].Value;
                 Excel_underlyingCalcID ob = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                 IDManager.SetID(excel_underlyingCalcIDIDRef_, ob);
             }
             else if (excel_underlyingCalcIDNode.Attributes["href"] != null)
             {
                 excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["href"].Value;
             }
             else
             {
                 excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
             }
         }
         else
         {
             excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
         }
     }
     
 
     XmlNode observationStartDateNode = xmlNode.SelectSingleNode("observationStartDate");
     
     if (observationStartDateNode != null)
     {
         if (observationStartDateNode.Attributes["href"] != null || observationStartDateNode.Attributes["id"] != null) 
         {
             if (observationStartDateNode.Attributes["id"] != null) 
             {
                 observationStartDateIDRef_ = observationStartDateNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(observationStartDateNode);
                 IDManager.SetID(observationStartDateIDRef_, ob);
             }
             else if (observationStartDateNode.Attributes["href"] != null)
             {
                 observationStartDateIDRef_ = observationStartDateNode.Attributes["href"].Value;
             }
             else
             {
                 observationStartDate_ = new XsdTypeToken(observationStartDateNode);
             }
         }
         else
         {
             observationStartDate_ = new XsdTypeToken(observationStartDateNode);
         }
     }
     
 
     XmlNode observationEndDateNode = xmlNode.SelectSingleNode("observationEndDate");
     
     if (observationEndDateNode != null)
     {
         if (observationEndDateNode.Attributes["href"] != null || observationEndDateNode.Attributes["id"] != null) 
         {
             if (observationEndDateNode.Attributes["id"] != null) 
             {
                 observationEndDateIDRef_ = observationEndDateNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(observationEndDateNode);
                 IDManager.SetID(observationEndDateIDRef_, ob);
             }
             else if (observationEndDateNode.Attributes["href"] != null)
             {
                 observationEndDateIDRef_ = observationEndDateNode.Attributes["href"].Value;
             }
             else
             {
                 observationEndDate_ = new XsdTypeToken(observationEndDateNode);
             }
         }
         else
         {
             observationEndDate_ = new XsdTypeToken(observationEndDateNode);
         }
     }
     
 
 }
Beispiel #3
0
        public Excel_vanillaFloatingCouponSchedule(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode eventDateNode = xmlNode.SelectSingleNode("eventDate");

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


            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 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;
                        XsdTypeToken ob = new XsdTypeToken(calculationStartDateNode);
                        IDManager.SetID(calculationStartDateIDRef_, ob);
                    }
                    else if (calculationStartDateNode.Attributes["href"] != null)
                    {
                        calculationStartDateIDRef_ = calculationStartDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        calculationStartDate_ = new XsdTypeToken(calculationStartDateNode);
                    }
                }
                else
                {
                    calculationStartDate_ = new XsdTypeToken(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;
                        XsdTypeToken ob = new XsdTypeToken(calculationEndDateNode);
                        IDManager.SetID(calculationEndDateIDRef_, ob);
                    }
                    else if (calculationEndDateNode.Attributes["href"] != null)
                    {
                        calculationEndDateIDRef_ = calculationEndDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        calculationEndDate_ = new XsdTypeToken(calculationEndDateNode);
                    }
                }
                else
                {
                    calculationEndDate_ = new XsdTypeToken(calculationEndDateNode);
                }
            }


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

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


            XmlNode vba_descriptionNode = xmlNode.SelectSingleNode("vba_description");

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


            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;
                        XsdTypeToken ob = new XsdTypeToken(gearingNode);
                        IDManager.SetID(gearingIDRef_, ob);
                    }
                    else if (gearingNode.Attributes["href"] != null)
                    {
                        gearingIDRef_ = gearingNode.Attributes["href"].Value;
                    }
                    else
                    {
                        gearing_ = new XsdTypeToken(gearingNode);
                    }
                }
                else
                {
                    gearing_ = new XsdTypeToken(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;
                        XsdTypeToken ob = new XsdTypeToken(spreadNode);
                        IDManager.SetID(spreadIDRef_, ob);
                    }
                    else if (spreadNode.Attributes["href"] != null)
                    {
                        spreadIDRef_ = spreadNode.Attributes["href"].Value;
                    }
                    else
                    {
                        spread_ = new XsdTypeToken(spreadNode);
                    }
                }
                else
                {
                    spread_ = new XsdTypeToken(spreadNode);
                }
            }


            XmlNode outGearingNode = xmlNode.SelectSingleNode("outGearing");

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


            XmlNode outSpreadNode = xmlNode.SelectSingleNode("outSpread");

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


            XmlNode capNode = xmlNode.SelectSingleNode("cap");

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


            XmlNode floorNode = xmlNode.SelectSingleNode("floor");

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


            XmlNode excel_underlyingCalcIDNode = xmlNode.SelectSingleNode("excel_underlyingCalcID");

            if (excel_underlyingCalcIDNode != null)
            {
                if (excel_underlyingCalcIDNode.Attributes["href"] != null || excel_underlyingCalcIDNode.Attributes["id"] != null)
                {
                    if (excel_underlyingCalcIDNode.Attributes["id"] != null)
                    {
                        excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["id"].Value;
                        Excel_underlyingCalcID ob = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                        IDManager.SetID(excel_underlyingCalcIDIDRef_, ob);
                    }
                    else if (excel_underlyingCalcIDNode.Attributes["href"] != null)
                    {
                        excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                    }
                }
                else
                {
                    excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                }
            }
        }
Beispiel #4
0
        public Excel_dualRangeEventCal(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode lowerRngNode = xmlNode.SelectSingleNode("lowerRng");

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


            XmlNode upperRngNode = xmlNode.SelectSingleNode("upperRng");

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


            XmlNode excel_underlyingCalcIDNode = xmlNode.SelectSingleNode("excel_underlyingCalcID");

            if (excel_underlyingCalcIDNode != null)
            {
                if (excel_underlyingCalcIDNode.Attributes["href"] != null || excel_underlyingCalcIDNode.Attributes["id"] != null)
                {
                    if (excel_underlyingCalcIDNode.Attributes["id"] != null)
                    {
                        excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["id"].Value;
                        Excel_underlyingCalcID ob = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                        IDManager.SetID(excel_underlyingCalcIDIDRef_, ob);
                    }
                    else if (excel_underlyingCalcIDNode.Attributes["href"] != null)
                    {
                        excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                    }
                }
                else
                {
                    excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                }
            }
        }
 public Excel_multiAsset_vanillaCallPut(XmlNode xmlNode)
 : base(xmlNode)
 {
     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 exerciseDateNode = xmlNode.SelectSingleNode("exerciseDate");
     
     if (exerciseDateNode != null)
     {
         if (exerciseDateNode.Attributes["href"] != null || exerciseDateNode.Attributes["id"] != null) 
         {
             if (exerciseDateNode.Attributes["id"] != null) 
             {
                 exerciseDateIDRef_ = exerciseDateNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(exerciseDateNode);
                 IDManager.SetID(exerciseDateIDRef_, ob);
             }
             else if (exerciseDateNode.Attributes["href"] != null)
             {
                 exerciseDateIDRef_ = exerciseDateNode.Attributes["href"].Value;
             }
             else
             {
                 exerciseDate_ = new XsdTypeToken(exerciseDateNode);
             }
         }
         else
         {
             exerciseDate_ = new XsdTypeToken(exerciseDateNode);
         }
     }
     
 
     XmlNode baseUnderlyingValueNode = xmlNode.SelectSingleNode("baseUnderlyingValue");
     
     if (baseUnderlyingValueNode != null)
     {
         if (baseUnderlyingValueNode.Attributes["href"] != null || baseUnderlyingValueNode.Attributes["id"] != null) 
         {
             if (baseUnderlyingValueNode.Attributes["id"] != null) 
             {
                 baseUnderlyingValueIDRef_ = baseUnderlyingValueNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(baseUnderlyingValueNode);
                 IDManager.SetID(baseUnderlyingValueIDRef_, ob);
             }
             else if (baseUnderlyingValueNode.Attributes["href"] != null)
             {
                 baseUnderlyingValueIDRef_ = baseUnderlyingValueNode.Attributes["href"].Value;
             }
             else
             {
                 baseUnderlyingValue_ = new XsdTypeToken(baseUnderlyingValueNode);
             }
         }
         else
         {
             baseUnderlyingValue_ = new XsdTypeToken(baseUnderlyingValueNode);
         }
     }
     
 
     XmlNode callPutNode = xmlNode.SelectSingleNode("callPut");
     
     if (callPutNode != null)
     {
         if (callPutNode.Attributes["href"] != null || callPutNode.Attributes["id"] != null) 
         {
             if (callPutNode.Attributes["id"] != null) 
             {
                 callPutIDRef_ = callPutNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(callPutNode);
                 IDManager.SetID(callPutIDRef_, ob);
             }
             else if (callPutNode.Attributes["href"] != null)
             {
                 callPutIDRef_ = callPutNode.Attributes["href"].Value;
             }
             else
             {
                 callPut_ = new XsdTypeToken(callPutNode);
             }
         }
         else
         {
             callPut_ = new XsdTypeToken(callPutNode);
         }
     }
     
 
     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;
                 XsdTypeToken ob = new XsdTypeToken(baseCouponNode);
                 IDManager.SetID(baseCouponIDRef_, ob);
             }
             else if (baseCouponNode.Attributes["href"] != null)
             {
                 baseCouponIDRef_ = baseCouponNode.Attributes["href"].Value;
             }
             else
             {
                 baseCoupon_ = new XsdTypeToken(baseCouponNode);
             }
         }
         else
         {
             baseCoupon_ = new XsdTypeToken(baseCouponNode);
         }
     }
     
 
     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;
                 XsdTypeToken ob = new XsdTypeToken(strikeNode);
                 IDManager.SetID(strikeIDRef_, ob);
             }
             else if (strikeNode.Attributes["href"] != null)
             {
                 strikeIDRef_ = strikeNode.Attributes["href"].Value;
             }
             else
             {
                 strike_ = new XsdTypeToken(strikeNode);
             }
         }
         else
         {
             strike_ = new XsdTypeToken(strikeNode);
         }
     }
     
 
     XmlNode strikeValueNode = xmlNode.SelectSingleNode("strikeValue");
     
     if (strikeValueNode != null)
     {
         if (strikeValueNode.Attributes["href"] != null || strikeValueNode.Attributes["id"] != null) 
         {
             if (strikeValueNode.Attributes["id"] != null) 
             {
                 strikeValueIDRef_ = strikeValueNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(strikeValueNode);
                 IDManager.SetID(strikeValueIDRef_, ob);
             }
             else if (strikeValueNode.Attributes["href"] != null)
             {
                 strikeValueIDRef_ = strikeValueNode.Attributes["href"].Value;
             }
             else
             {
                 strikeValue_ = new XsdTypeToken(strikeValueNode);
             }
         }
         else
         {
             strikeValue_ = new XsdTypeToken(strikeValueNode);
         }
     }
     
 
     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;
                 XsdTypeToken ob = new XsdTypeToken(partiRateNode);
                 IDManager.SetID(partiRateIDRef_, ob);
             }
             else if (partiRateNode.Attributes["href"] != null)
             {
                 partiRateIDRef_ = partiRateNode.Attributes["href"].Value;
             }
             else
             {
                 partiRate_ = new XsdTypeToken(partiRateNode);
             }
         }
         else
         {
             partiRate_ = new XsdTypeToken(partiRateNode);
         }
     }
     
 
     XmlNode excel_underlyingCalcIDNode = xmlNode.SelectSingleNode("excel_underlyingCalcID");
     
     if (excel_underlyingCalcIDNode != null)
     {
         if (excel_underlyingCalcIDNode.Attributes["href"] != null || excel_underlyingCalcIDNode.Attributes["id"] != null) 
         {
             if (excel_underlyingCalcIDNode.Attributes["id"] != null) 
             {
                 excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["id"].Value;
                 Excel_underlyingCalcID ob = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                 IDManager.SetID(excel_underlyingCalcIDIDRef_, ob);
             }
             else if (excel_underlyingCalcIDNode.Attributes["href"] != null)
             {
                 excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["href"].Value;
             }
             else
             {
                 excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
             }
         }
         else
         {
             excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
         }
     }
     
 
 }
        public Excel_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;
                        XsdTypeToken ob = new XsdTypeToken(gearingNode);
                        IDManager.SetID(gearingIDRef_, ob);
                    }
                    else if (gearingNode.Attributes["href"] != null)
                    {
                        gearingIDRef_ = gearingNode.Attributes["href"].Value;
                    }
                    else
                    {
                        gearing_ = new XsdTypeToken(gearingNode);
                    }
                }
                else
                {
                    gearing_ = new XsdTypeToken(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;
                        XsdTypeToken ob = new XsdTypeToken(spreadNode);
                        IDManager.SetID(spreadIDRef_, ob);
                    }
                    else if (spreadNode.Attributes["href"] != null)
                    {
                        spreadIDRef_ = spreadNode.Attributes["href"].Value;
                    }
                    else
                    {
                        spread_ = new XsdTypeToken(spreadNode);
                    }
                }
                else
                {
                    spread_ = new XsdTypeToken(spreadNode);
                }
            }


            XmlNode excel_underlyingCalcIDNode = xmlNode.SelectSingleNode("excel_underlyingCalcID");

            if (excel_underlyingCalcIDNode != null)
            {
                if (excel_underlyingCalcIDNode.Attributes["href"] != null || excel_underlyingCalcIDNode.Attributes["id"] != null)
                {
                    if (excel_underlyingCalcIDNode.Attributes["id"] != null)
                    {
                        excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["id"].Value;
                        Excel_underlyingCalcID ob = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                        IDManager.SetID(excel_underlyingCalcIDIDRef_, ob);
                    }
                    else if (excel_underlyingCalcIDNode.Attributes["href"] != null)
                    {
                        excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                    }
                }
                else
                {
                    excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                }
            }
        }
Beispiel #7
0
        public Excel_multiAsset_digitalCallPut(XmlNode xmlNode)
            : base(xmlNode)
        {
            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 exerciseDateNode = xmlNode.SelectSingleNode("exerciseDate");

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


            XmlNode callPutNode = xmlNode.SelectSingleNode("callPut");

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


            XmlNode baseUnderlyingValueNode = xmlNode.SelectSingleNode("baseUnderlyingValue");

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


            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;
                        XsdTypeToken ob = new XsdTypeToken(baseCouponNode);
                        IDManager.SetID(baseCouponIDRef_, ob);
                    }
                    else if (baseCouponNode.Attributes["href"] != null)
                    {
                        baseCouponIDRef_ = baseCouponNode.Attributes["href"].Value;
                    }
                    else
                    {
                        baseCoupon_ = new XsdTypeToken(baseCouponNode);
                    }
                }
                else
                {
                    baseCoupon_ = new XsdTypeToken(baseCouponNode);
                }
            }


            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;
                        XsdTypeToken ob = new XsdTypeToken(strikeNode);
                        IDManager.SetID(strikeIDRef_, ob);
                    }
                    else if (strikeNode.Attributes["href"] != null)
                    {
                        strikeIDRef_ = strikeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        strike_ = new XsdTypeToken(strikeNode);
                    }
                }
                else
                {
                    strike_ = new XsdTypeToken(strikeNode);
                }
            }


            XmlNode strikeValueNode = xmlNode.SelectSingleNode("strikeValue");

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


            XmlNode couponNode = xmlNode.SelectSingleNode("coupon");

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


            XmlNode couponValueNode = xmlNode.SelectSingleNode("couponValue");

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


            XmlNode excel_underlyingCalcIDNode = xmlNode.SelectSingleNode("excel_underlyingCalcID");

            if (excel_underlyingCalcIDNode != null)
            {
                if (excel_underlyingCalcIDNode.Attributes["href"] != null || excel_underlyingCalcIDNode.Attributes["id"] != null)
                {
                    if (excel_underlyingCalcIDNode.Attributes["id"] != null)
                    {
                        excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["id"].Value;
                        Excel_underlyingCalcID ob = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                        IDManager.SetID(excel_underlyingCalcIDIDRef_, ob);
                    }
                    else if (excel_underlyingCalcIDNode.Attributes["href"] != null)
                    {
                        excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                    }
                }
                else
                {
                    excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                }
            }
        }
 public Excel_vanillaFloatingCouponSchedule(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode eventDateNode = xmlNode.SelectSingleNode("eventDate");
     
     if (eventDateNode != null)
     {
         if (eventDateNode.Attributes["href"] != null || eventDateNode.Attributes["id"] != null) 
         {
             if (eventDateNode.Attributes["id"] != null) 
             {
                 eventDateIDRef_ = eventDateNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(eventDateNode);
                 IDManager.SetID(eventDateIDRef_, ob);
             }
             else if (eventDateNode.Attributes["href"] != null)
             {
                 eventDateIDRef_ = eventDateNode.Attributes["href"].Value;
             }
             else
             {
                 eventDate_ = new XsdTypeToken(eventDateNode);
             }
         }
         else
         {
             eventDate_ = new XsdTypeToken(eventDateNode);
         }
     }
     
 
     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 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;
                 XsdTypeToken ob = new XsdTypeToken(calculationStartDateNode);
                 IDManager.SetID(calculationStartDateIDRef_, ob);
             }
             else if (calculationStartDateNode.Attributes["href"] != null)
             {
                 calculationStartDateIDRef_ = calculationStartDateNode.Attributes["href"].Value;
             }
             else
             {
                 calculationStartDate_ = new XsdTypeToken(calculationStartDateNode);
             }
         }
         else
         {
             calculationStartDate_ = new XsdTypeToken(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;
                 XsdTypeToken ob = new XsdTypeToken(calculationEndDateNode);
                 IDManager.SetID(calculationEndDateIDRef_, ob);
             }
             else if (calculationEndDateNode.Attributes["href"] != null)
             {
                 calculationEndDateIDRef_ = calculationEndDateNode.Attributes["href"].Value;
             }
             else
             {
                 calculationEndDate_ = new XsdTypeToken(calculationEndDateNode);
             }
         }
         else
         {
             calculationEndDate_ = new XsdTypeToken(calculationEndDateNode);
         }
     }
     
 
     XmlNode descriptionNode = xmlNode.SelectSingleNode("description");
     
     if (descriptionNode != null)
     {
         if (descriptionNode.Attributes["href"] != null || descriptionNode.Attributes["id"] != null) 
         {
             if (descriptionNode.Attributes["id"] != null) 
             {
                 descriptionIDRef_ = descriptionNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(descriptionNode);
                 IDManager.SetID(descriptionIDRef_, ob);
             }
             else if (descriptionNode.Attributes["href"] != null)
             {
                 descriptionIDRef_ = descriptionNode.Attributes["href"].Value;
             }
             else
             {
                 description_ = new XsdTypeToken(descriptionNode);
             }
         }
         else
         {
             description_ = new XsdTypeToken(descriptionNode);
         }
     }
     
 
     XmlNode vba_descriptionNode = xmlNode.SelectSingleNode("vba_description");
     
     if (vba_descriptionNode != null)
     {
         if (vba_descriptionNode.Attributes["href"] != null || vba_descriptionNode.Attributes["id"] != null) 
         {
             if (vba_descriptionNode.Attributes["id"] != null) 
             {
                 vba_descriptionIDRef_ = vba_descriptionNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(vba_descriptionNode);
                 IDManager.SetID(vba_descriptionIDRef_, ob);
             }
             else if (vba_descriptionNode.Attributes["href"] != null)
             {
                 vba_descriptionIDRef_ = vba_descriptionNode.Attributes["href"].Value;
             }
             else
             {
                 vba_description_ = new XsdTypeToken(vba_descriptionNode);
             }
         }
         else
         {
             vba_description_ = new XsdTypeToken(vba_descriptionNode);
         }
     }
     
 
     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;
                 XsdTypeToken ob = new XsdTypeToken(gearingNode);
                 IDManager.SetID(gearingIDRef_, ob);
             }
             else if (gearingNode.Attributes["href"] != null)
             {
                 gearingIDRef_ = gearingNode.Attributes["href"].Value;
             }
             else
             {
                 gearing_ = new XsdTypeToken(gearingNode);
             }
         }
         else
         {
             gearing_ = new XsdTypeToken(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;
                 XsdTypeToken ob = new XsdTypeToken(spreadNode);
                 IDManager.SetID(spreadIDRef_, ob);
             }
             else if (spreadNode.Attributes["href"] != null)
             {
                 spreadIDRef_ = spreadNode.Attributes["href"].Value;
             }
             else
             {
                 spread_ = new XsdTypeToken(spreadNode);
             }
         }
         else
         {
             spread_ = new XsdTypeToken(spreadNode);
         }
     }
     
 
     XmlNode outGearingNode = xmlNode.SelectSingleNode("outGearing");
     
     if (outGearingNode != null)
     {
         if (outGearingNode.Attributes["href"] != null || outGearingNode.Attributes["id"] != null) 
         {
             if (outGearingNode.Attributes["id"] != null) 
             {
                 outGearingIDRef_ = outGearingNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(outGearingNode);
                 IDManager.SetID(outGearingIDRef_, ob);
             }
             else if (outGearingNode.Attributes["href"] != null)
             {
                 outGearingIDRef_ = outGearingNode.Attributes["href"].Value;
             }
             else
             {
                 outGearing_ = new XsdTypeToken(outGearingNode);
             }
         }
         else
         {
             outGearing_ = new XsdTypeToken(outGearingNode);
         }
     }
     
 
     XmlNode outSpreadNode = xmlNode.SelectSingleNode("outSpread");
     
     if (outSpreadNode != null)
     {
         if (outSpreadNode.Attributes["href"] != null || outSpreadNode.Attributes["id"] != null) 
         {
             if (outSpreadNode.Attributes["id"] != null) 
             {
                 outSpreadIDRef_ = outSpreadNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(outSpreadNode);
                 IDManager.SetID(outSpreadIDRef_, ob);
             }
             else if (outSpreadNode.Attributes["href"] != null)
             {
                 outSpreadIDRef_ = outSpreadNode.Attributes["href"].Value;
             }
             else
             {
                 outSpread_ = new XsdTypeToken(outSpreadNode);
             }
         }
         else
         {
             outSpread_ = new XsdTypeToken(outSpreadNode);
         }
     }
     
 
     XmlNode capNode = xmlNode.SelectSingleNode("cap");
     
     if (capNode != null)
     {
         if (capNode.Attributes["href"] != null || capNode.Attributes["id"] != null) 
         {
             if (capNode.Attributes["id"] != null) 
             {
                 capIDRef_ = capNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(capNode);
                 IDManager.SetID(capIDRef_, ob);
             }
             else if (capNode.Attributes["href"] != null)
             {
                 capIDRef_ = capNode.Attributes["href"].Value;
             }
             else
             {
                 cap_ = new XsdTypeToken(capNode);
             }
         }
         else
         {
             cap_ = new XsdTypeToken(capNode);
         }
     }
     
 
     XmlNode floorNode = xmlNode.SelectSingleNode("floor");
     
     if (floorNode != null)
     {
         if (floorNode.Attributes["href"] != null || floorNode.Attributes["id"] != null) 
         {
             if (floorNode.Attributes["id"] != null) 
             {
                 floorIDRef_ = floorNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(floorNode);
                 IDManager.SetID(floorIDRef_, ob);
             }
             else if (floorNode.Attributes["href"] != null)
             {
                 floorIDRef_ = floorNode.Attributes["href"].Value;
             }
             else
             {
                 floor_ = new XsdTypeToken(floorNode);
             }
         }
         else
         {
             floor_ = new XsdTypeToken(floorNode);
         }
     }
     
 
     XmlNode excel_underlyingCalcIDNode = xmlNode.SelectSingleNode("excel_underlyingCalcID");
     
     if (excel_underlyingCalcIDNode != null)
     {
         if (excel_underlyingCalcIDNode.Attributes["href"] != null || excel_underlyingCalcIDNode.Attributes["id"] != null) 
         {
             if (excel_underlyingCalcIDNode.Attributes["id"] != null) 
             {
                 excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["id"].Value;
                 Excel_underlyingCalcID ob = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                 IDManager.SetID(excel_underlyingCalcIDIDRef_, ob);
             }
             else if (excel_underlyingCalcIDNode.Attributes["href"] != null)
             {
                 excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["href"].Value;
             }
             else
             {
                 excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
             }
         }
         else
         {
             excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
         }
     }
     
 
 }
 public Excel_vanillaFloatingCouponSchedule(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;
                 XsdTypeToken ob = new XsdTypeToken(gearingNode);
                 IDManager.SetID(gearingIDRef_, ob);
             }
             else if (gearingNode.Attributes["href"] != null)
             {
                 gearingIDRef_ = gearingNode.Attributes["href"].Value;
             }
             else
             {
                 gearing_ = new XsdTypeToken(gearingNode);
             }
         }
         else
         {
             gearing_ = new XsdTypeToken(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;
                 XsdTypeToken ob = new XsdTypeToken(spreadNode);
                 IDManager.SetID(spreadIDRef_, ob);
             }
             else if (spreadNode.Attributes["href"] != null)
             {
                 spreadIDRef_ = spreadNode.Attributes["href"].Value;
             }
             else
             {
                 spread_ = new XsdTypeToken(spreadNode);
             }
         }
         else
         {
             spread_ = new XsdTypeToken(spreadNode);
         }
     }
     
 
     XmlNode excel_underlyingCalcIDNode = xmlNode.SelectSingleNode("excel_underlyingCalcID");
     
     if (excel_underlyingCalcIDNode != null)
     {
         if (excel_underlyingCalcIDNode.Attributes["href"] != null || excel_underlyingCalcIDNode.Attributes["id"] != null) 
         {
             if (excel_underlyingCalcIDNode.Attributes["id"] != null) 
             {
                 excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["id"].Value;
                 Excel_underlyingCalcID ob = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                 IDManager.SetID(excel_underlyingCalcIDIDRef_, ob);
             }
             else if (excel_underlyingCalcIDNode.Attributes["href"] != null)
             {
                 excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["href"].Value;
             }
             else
             {
                 excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
             }
         }
         else
         {
             excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
         }
     }
     
 
 }
Beispiel #10
0
        public Excel_singleBarrierEventCal(XmlNode xmlNode)
            : base(xmlNode)
        {
            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;
                        XsdTypeToken ob = new XsdTypeToken(lowerTriggerNode);
                        IDManager.SetID(lowerTriggerIDRef_, ob);
                    }
                    else if (lowerTriggerNode.Attributes["href"] != null)
                    {
                        lowerTriggerIDRef_ = lowerTriggerNode.Attributes["href"].Value;
                    }
                    else
                    {
                        lowerTrigger_ = new XsdTypeToken(lowerTriggerNode);
                    }
                }
                else
                {
                    lowerTrigger_ = new XsdTypeToken(lowerTriggerNode);
                }
            }


            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;
                        XsdTypeToken ob = new XsdTypeToken(upperTriggerNode);
                        IDManager.SetID(upperTriggerIDRef_, ob);
                    }
                    else if (upperTriggerNode.Attributes["href"] != null)
                    {
                        upperTriggerIDRef_ = upperTriggerNode.Attributes["href"].Value;
                    }
                    else
                    {
                        upperTrigger_ = new XsdTypeToken(upperTriggerNode);
                    }
                }
                else
                {
                    upperTrigger_ = new XsdTypeToken(upperTriggerNode);
                }
            }


            XmlNode excel_underlyingCalcIDNode = xmlNode.SelectSingleNode("excel_underlyingCalcID");

            if (excel_underlyingCalcIDNode != null)
            {
                if (excel_underlyingCalcIDNode.Attributes["href"] != null || excel_underlyingCalcIDNode.Attributes["id"] != null)
                {
                    if (excel_underlyingCalcIDNode.Attributes["id"] != null)
                    {
                        excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["id"].Value;
                        Excel_underlyingCalcID ob = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                        IDManager.SetID(excel_underlyingCalcIDIDRef_, ob);
                    }
                    else if (excel_underlyingCalcIDNode.Attributes["href"] != null)
                    {
                        excel_underlyingCalcIDIDRef_ = excel_underlyingCalcIDNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                    }
                }
                else
                {
                    excel_underlyingCalcID_ = new Excel_underlyingCalcID(excel_underlyingCalcIDNode);
                }
            }


            XmlNode observationStartDateNode = xmlNode.SelectSingleNode("observationStartDate");

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


            XmlNode observationEndDateNode = xmlNode.SelectSingleNode("observationEndDate");

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