Example #1
0
        public Excel_simpleCalculation(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 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 excel_eventCalcInfoNode = xmlNode.SelectSingleNode("excel_eventCalcInfo");

            if (excel_eventCalcInfoNode != null)
            {
                if (excel_eventCalcInfoNode.Attributes["href"] != null || excel_eventCalcInfoNode.Attributes["id"] != null)
                {
                    if (excel_eventCalcInfoNode.Attributes["id"] != null)
                    {
                        excel_eventCalcInfoIDRef_ = excel_eventCalcInfoNode.Attributes["id"].Value;
                        Excel_eventCalcInfo ob = new Excel_eventCalcInfo(excel_eventCalcInfoNode);
                        IDManager.SetID(excel_eventCalcInfoIDRef_, ob);
                    }
                    else if (excel_eventCalcInfoNode.Attributes["href"] != null)
                    {
                        excel_eventCalcInfoIDRef_ = excel_eventCalcInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_eventCalcInfo_ = new Excel_eventCalcInfo(excel_eventCalcInfoNode);
                    }
                }
                else
                {
                    excel_eventCalcInfo_ = new Excel_eventCalcInfo(excel_eventCalcInfoNode);
                }
            }


            XmlNode excel_returnCalcInfoNode = xmlNode.SelectSingleNode("excel_returnCalcInfo");

            if (excel_returnCalcInfoNode != null)
            {
                if (excel_returnCalcInfoNode.Attributes["href"] != null || excel_returnCalcInfoNode.Attributes["id"] != null)
                {
                    if (excel_returnCalcInfoNode.Attributes["id"] != null)
                    {
                        excel_returnCalcInfoIDRef_ = excel_returnCalcInfoNode.Attributes["id"].Value;
                        Excel_returnCalcInfo ob = new Excel_returnCalcInfo(excel_returnCalcInfoNode);
                        IDManager.SetID(excel_returnCalcInfoIDRef_, ob);
                    }
                    else if (excel_returnCalcInfoNode.Attributes["href"] != null)
                    {
                        excel_returnCalcInfoIDRef_ = excel_returnCalcInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_returnCalcInfo_ = new Excel_returnCalcInfo(excel_returnCalcInfoNode);
                    }
                }
                else
                {
                    excel_returnCalcInfo_ = new Excel_returnCalcInfo(excel_returnCalcInfoNode);
                }
            }


            XmlNode excel_complementReturnCalcNode = xmlNode.SelectSingleNode("excel_complementReturnCalc");

            if (excel_complementReturnCalcNode != null)
            {
                if (excel_complementReturnCalcNode.Attributes["href"] != null || excel_complementReturnCalcNode.Attributes["id"] != null)
                {
                    if (excel_complementReturnCalcNode.Attributes["id"] != null)
                    {
                        excel_complementReturnCalcIDRef_ = excel_complementReturnCalcNode.Attributes["id"].Value;
                        Excel_complementReturnCalc ob = new Excel_complementReturnCalc(excel_complementReturnCalcNode);
                        IDManager.SetID(excel_complementReturnCalcIDRef_, ob);
                    }
                    else if (excel_complementReturnCalcNode.Attributes["href"] != null)
                    {
                        excel_complementReturnCalcIDRef_ = excel_complementReturnCalcNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_complementReturnCalc_ = new Excel_complementReturnCalc(excel_complementReturnCalcNode);
                    }
                }
                else
                {
                    excel_complementReturnCalc_ = new Excel_complementReturnCalc(excel_complementReturnCalcNode);
                }
            }


            XmlNode excel_eventCalcInfo_CallNode = xmlNode.SelectSingleNode("excel_eventCalcInfo_Call");

            if (excel_eventCalcInfo_CallNode != null)
            {
                if (excel_eventCalcInfo_CallNode.Attributes["href"] != null || excel_eventCalcInfo_CallNode.Attributes["id"] != null)
                {
                    if (excel_eventCalcInfo_CallNode.Attributes["id"] != null)
                    {
                        excel_eventCalcInfo_CallIDRef_ = excel_eventCalcInfo_CallNode.Attributes["id"].Value;
                        Excel_eventCalcInfo_Call ob = new Excel_eventCalcInfo_Call(excel_eventCalcInfo_CallNode);
                        IDManager.SetID(excel_eventCalcInfo_CallIDRef_, ob);
                    }
                    else if (excel_eventCalcInfo_CallNode.Attributes["href"] != null)
                    {
                        excel_eventCalcInfo_CallIDRef_ = excel_eventCalcInfo_CallNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_eventCalcInfo_Call_ = new Excel_eventCalcInfo_Call(excel_eventCalcInfo_CallNode);
                    }
                }
                else
                {
                    excel_eventCalcInfo_Call_ = new Excel_eventCalcInfo_Call(excel_eventCalcInfo_CallNode);
                }
            }


            XmlNode excel_returnCalcInfo_CallNode = xmlNode.SelectSingleNode("excel_returnCalcInfo_Call");

            if (excel_returnCalcInfo_CallNode != null)
            {
                if (excel_returnCalcInfo_CallNode.Attributes["href"] != null || excel_returnCalcInfo_CallNode.Attributes["id"] != null)
                {
                    if (excel_returnCalcInfo_CallNode.Attributes["id"] != null)
                    {
                        excel_returnCalcInfo_CallIDRef_ = excel_returnCalcInfo_CallNode.Attributes["id"].Value;
                        Excel_returnCalcInfo_Call ob = new Excel_returnCalcInfo_Call(excel_returnCalcInfo_CallNode);
                        IDManager.SetID(excel_returnCalcInfo_CallIDRef_, ob);
                    }
                    else if (excel_returnCalcInfo_CallNode.Attributes["href"] != null)
                    {
                        excel_returnCalcInfo_CallIDRef_ = excel_returnCalcInfo_CallNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_returnCalcInfo_Call_ = new Excel_returnCalcInfo_Call(excel_returnCalcInfo_CallNode);
                    }
                }
                else
                {
                    excel_returnCalcInfo_Call_ = new Excel_returnCalcInfo_Call(excel_returnCalcInfo_CallNode);
                }
            }


            XmlNode excel_complementReturnCalc_CallNode = xmlNode.SelectSingleNode("excel_complementReturnCalc_Call");

            if (excel_complementReturnCalc_CallNode != null)
            {
                if (excel_complementReturnCalc_CallNode.Attributes["href"] != null || excel_complementReturnCalc_CallNode.Attributes["id"] != null)
                {
                    if (excel_complementReturnCalc_CallNode.Attributes["id"] != null)
                    {
                        excel_complementReturnCalc_CallIDRef_ = excel_complementReturnCalc_CallNode.Attributes["id"].Value;
                        Excel_complementReturnCalc_Call ob = new Excel_complementReturnCalc_Call(excel_complementReturnCalc_CallNode);
                        IDManager.SetID(excel_complementReturnCalc_CallIDRef_, ob);
                    }
                    else if (excel_complementReturnCalc_CallNode.Attributes["href"] != null)
                    {
                        excel_complementReturnCalc_CallIDRef_ = excel_complementReturnCalc_CallNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_complementReturnCalc_Call_ = new Excel_complementReturnCalc_Call(excel_complementReturnCalc_CallNode);
                    }
                }
                else
                {
                    excel_complementReturnCalc_Call_ = new Excel_complementReturnCalc_Call(excel_complementReturnCalc_CallNode);
                }
            }


            XmlNode excel_returnCalcInfo_CallableOptionNode = xmlNode.SelectSingleNode("excel_returnCalcInfo_CallableOption");

            if (excel_returnCalcInfo_CallableOptionNode != null)
            {
                if (excel_returnCalcInfo_CallableOptionNode.Attributes["href"] != null || excel_returnCalcInfo_CallableOptionNode.Attributes["id"] != null)
                {
                    if (excel_returnCalcInfo_CallableOptionNode.Attributes["id"] != null)
                    {
                        excel_returnCalcInfo_CallableOptionIDRef_ = excel_returnCalcInfo_CallableOptionNode.Attributes["id"].Value;
                        Excel_returnCalcInfo_CallableOption ob = new Excel_returnCalcInfo_CallableOption(excel_returnCalcInfo_CallableOptionNode);
                        IDManager.SetID(excel_returnCalcInfo_CallableOptionIDRef_, ob);
                    }
                    else if (excel_returnCalcInfo_CallableOptionNode.Attributes["href"] != null)
                    {
                        excel_returnCalcInfo_CallableOptionIDRef_ = excel_returnCalcInfo_CallableOptionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_returnCalcInfo_CallableOption_ = new Excel_returnCalcInfo_CallableOption(excel_returnCalcInfo_CallableOptionNode);
                    }
                }
                else
                {
                    excel_returnCalcInfo_CallableOption_ = new Excel_returnCalcInfo_CallableOption(excel_returnCalcInfo_CallableOptionNode);
                }
            }
        }
 public Excel_simpleCalculation(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 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 excel_eventCalcInfoNode = xmlNode.SelectSingleNode("excel_eventCalcInfo");
     
     if (excel_eventCalcInfoNode != null)
     {
         if (excel_eventCalcInfoNode.Attributes["href"] != null || excel_eventCalcInfoNode.Attributes["id"] != null) 
         {
             if (excel_eventCalcInfoNode.Attributes["id"] != null) 
             {
                 excel_eventCalcInfoIDRef_ = excel_eventCalcInfoNode.Attributes["id"].Value;
                 Excel_eventCalcInfo ob = new Excel_eventCalcInfo(excel_eventCalcInfoNode);
                 IDManager.SetID(excel_eventCalcInfoIDRef_, ob);
             }
             else if (excel_eventCalcInfoNode.Attributes["href"] != null)
             {
                 excel_eventCalcInfoIDRef_ = excel_eventCalcInfoNode.Attributes["href"].Value;
             }
             else
             {
                 excel_eventCalcInfo_ = new Excel_eventCalcInfo(excel_eventCalcInfoNode);
             }
         }
         else
         {
             excel_eventCalcInfo_ = new Excel_eventCalcInfo(excel_eventCalcInfoNode);
         }
     }
     
 
     XmlNode excel_returnCalcInfoNode = xmlNode.SelectSingleNode("excel_returnCalcInfo");
     
     if (excel_returnCalcInfoNode != null)
     {
         if (excel_returnCalcInfoNode.Attributes["href"] != null || excel_returnCalcInfoNode.Attributes["id"] != null) 
         {
             if (excel_returnCalcInfoNode.Attributes["id"] != null) 
             {
                 excel_returnCalcInfoIDRef_ = excel_returnCalcInfoNode.Attributes["id"].Value;
                 Excel_returnCalcInfo ob = new Excel_returnCalcInfo(excel_returnCalcInfoNode);
                 IDManager.SetID(excel_returnCalcInfoIDRef_, ob);
             }
             else if (excel_returnCalcInfoNode.Attributes["href"] != null)
             {
                 excel_returnCalcInfoIDRef_ = excel_returnCalcInfoNode.Attributes["href"].Value;
             }
             else
             {
                 excel_returnCalcInfo_ = new Excel_returnCalcInfo(excel_returnCalcInfoNode);
             }
         }
         else
         {
             excel_returnCalcInfo_ = new Excel_returnCalcInfo(excel_returnCalcInfoNode);
         }
     }
     
 
     XmlNode excel_complementReturnCalcNode = xmlNode.SelectSingleNode("excel_complementReturnCalc");
     
     if (excel_complementReturnCalcNode != null)
     {
         if (excel_complementReturnCalcNode.Attributes["href"] != null || excel_complementReturnCalcNode.Attributes["id"] != null) 
         {
             if (excel_complementReturnCalcNode.Attributes["id"] != null) 
             {
                 excel_complementReturnCalcIDRef_ = excel_complementReturnCalcNode.Attributes["id"].Value;
                 Excel_complementReturnCalc ob = new Excel_complementReturnCalc(excel_complementReturnCalcNode);
                 IDManager.SetID(excel_complementReturnCalcIDRef_, ob);
             }
             else if (excel_complementReturnCalcNode.Attributes["href"] != null)
             {
                 excel_complementReturnCalcIDRef_ = excel_complementReturnCalcNode.Attributes["href"].Value;
             }
             else
             {
                 excel_complementReturnCalc_ = new Excel_complementReturnCalc(excel_complementReturnCalcNode);
             }
         }
         else
         {
             excel_complementReturnCalc_ = new Excel_complementReturnCalc(excel_complementReturnCalcNode);
         }
     }
     
 
     XmlNode excel_eventCalcInfo_CallNode = xmlNode.SelectSingleNode("excel_eventCalcInfo_Call");
     
     if (excel_eventCalcInfo_CallNode != null)
     {
         if (excel_eventCalcInfo_CallNode.Attributes["href"] != null || excel_eventCalcInfo_CallNode.Attributes["id"] != null) 
         {
             if (excel_eventCalcInfo_CallNode.Attributes["id"] != null) 
             {
                 excel_eventCalcInfo_CallIDRef_ = excel_eventCalcInfo_CallNode.Attributes["id"].Value;
                 Excel_eventCalcInfo_Call ob = new Excel_eventCalcInfo_Call(excel_eventCalcInfo_CallNode);
                 IDManager.SetID(excel_eventCalcInfo_CallIDRef_, ob);
             }
             else if (excel_eventCalcInfo_CallNode.Attributes["href"] != null)
             {
                 excel_eventCalcInfo_CallIDRef_ = excel_eventCalcInfo_CallNode.Attributes["href"].Value;
             }
             else
             {
                 excel_eventCalcInfo_Call_ = new Excel_eventCalcInfo_Call(excel_eventCalcInfo_CallNode);
             }
         }
         else
         {
             excel_eventCalcInfo_Call_ = new Excel_eventCalcInfo_Call(excel_eventCalcInfo_CallNode);
         }
     }
     
 
     XmlNode excel_returnCalcInfo_CallNode = xmlNode.SelectSingleNode("excel_returnCalcInfo_Call");
     
     if (excel_returnCalcInfo_CallNode != null)
     {
         if (excel_returnCalcInfo_CallNode.Attributes["href"] != null || excel_returnCalcInfo_CallNode.Attributes["id"] != null) 
         {
             if (excel_returnCalcInfo_CallNode.Attributes["id"] != null) 
             {
                 excel_returnCalcInfo_CallIDRef_ = excel_returnCalcInfo_CallNode.Attributes["id"].Value;
                 Excel_returnCalcInfo_Call ob = new Excel_returnCalcInfo_Call(excel_returnCalcInfo_CallNode);
                 IDManager.SetID(excel_returnCalcInfo_CallIDRef_, ob);
             }
             else if (excel_returnCalcInfo_CallNode.Attributes["href"] != null)
             {
                 excel_returnCalcInfo_CallIDRef_ = excel_returnCalcInfo_CallNode.Attributes["href"].Value;
             }
             else
             {
                 excel_returnCalcInfo_Call_ = new Excel_returnCalcInfo_Call(excel_returnCalcInfo_CallNode);
             }
         }
         else
         {
             excel_returnCalcInfo_Call_ = new Excel_returnCalcInfo_Call(excel_returnCalcInfo_CallNode);
         }
     }
     
 
     XmlNode excel_complementReturnCalc_CallNode = xmlNode.SelectSingleNode("excel_complementReturnCalc_Call");
     
     if (excel_complementReturnCalc_CallNode != null)
     {
         if (excel_complementReturnCalc_CallNode.Attributes["href"] != null || excel_complementReturnCalc_CallNode.Attributes["id"] != null) 
         {
             if (excel_complementReturnCalc_CallNode.Attributes["id"] != null) 
             {
                 excel_complementReturnCalc_CallIDRef_ = excel_complementReturnCalc_CallNode.Attributes["id"].Value;
                 Excel_complementReturnCalc_Call ob = new Excel_complementReturnCalc_Call(excel_complementReturnCalc_CallNode);
                 IDManager.SetID(excel_complementReturnCalc_CallIDRef_, ob);
             }
             else if (excel_complementReturnCalc_CallNode.Attributes["href"] != null)
             {
                 excel_complementReturnCalc_CallIDRef_ = excel_complementReturnCalc_CallNode.Attributes["href"].Value;
             }
             else
             {
                 excel_complementReturnCalc_Call_ = new Excel_complementReturnCalc_Call(excel_complementReturnCalc_CallNode);
             }
         }
         else
         {
             excel_complementReturnCalc_Call_ = new Excel_complementReturnCalc_Call(excel_complementReturnCalc_CallNode);
         }
     }
     
 
 }