Exemplo n.º 1
0
        public AutoTerminationTrigger(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode eventCalculationInfoNode = xmlNode.SelectSingleNode("eventCalculationInfo");

            if (eventCalculationInfoNode != null)
            {
                if (eventCalculationInfoNode.Attributes["href"] != null || eventCalculationInfoNode.Attributes["id"] != null)
                {
                    if (eventCalculationInfoNode.Attributes["id"] != null)
                    {
                        eventCalculationInfoIDRef_ = eventCalculationInfoNode.Attributes["id"].Value;
                        EventCalculationInfo ob = new EventCalculationInfo(eventCalculationInfoNode);
                        IDManager.SetID(eventCalculationInfoIDRef_, ob);
                    }
                    else if (eventCalculationInfoNode.Attributes["href"] != null)
                    {
                        eventCalculationInfoIDRef_ = eventCalculationInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        eventCalculationInfo_ = new EventCalculationInfo(eventCalculationInfoNode);
                    }
                }
                else
                {
                    eventCalculationInfo_ = new EventCalculationInfo(eventCalculationInfoNode);
                }
            }


            XmlNode returnCalculationInfoNode = xmlNode.SelectSingleNode("returnCalculationInfo");

            if (returnCalculationInfoNode != null)
            {
                if (returnCalculationInfoNode.Attributes["href"] != null || returnCalculationInfoNode.Attributes["id"] != null)
                {
                    if (returnCalculationInfoNode.Attributes["id"] != null)
                    {
                        returnCalculationInfoIDRef_ = returnCalculationInfoNode.Attributes["id"].Value;
                        ReturnCalculationInfo ob = new ReturnCalculationInfo(returnCalculationInfoNode);
                        IDManager.SetID(returnCalculationInfoIDRef_, ob);
                    }
                    else if (returnCalculationInfoNode.Attributes["href"] != null)
                    {
                        returnCalculationInfoIDRef_ = returnCalculationInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        returnCalculationInfo_ = new ReturnCalculationInfo(returnCalculationInfoNode);
                    }
                }
                else
                {
                    returnCalculationInfo_ = new ReturnCalculationInfo(returnCalculationInfoNode);
                }
            }


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

            if (payoffDateInfoNode != null)
            {
                if (payoffDateInfoNode.Attributes["href"] != null || payoffDateInfoNode.Attributes["id"] != null)
                {
                    if (payoffDateInfoNode.Attributes["id"] != null)
                    {
                        payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["id"].Value;
                        PayoffDateInfo ob = new PayoffDateInfo(payoffDateInfoNode);
                        IDManager.SetID(payoffDateInfoIDRef_, ob);
                    }
                    else if (payoffDateInfoNode.Attributes["href"] != null)
                    {
                        payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
                    }
                }
                else
                {
                    payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
                }
            }
        }
 public SimpleEventCouponTrigger(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode eventCalculationInfoNode = xmlNode.SelectSingleNode("eventCalculationInfo");
     
     if (eventCalculationInfoNode != null)
     {
         if (eventCalculationInfoNode.Attributes["href"] != null || eventCalculationInfoNode.Attributes["id"] != null) 
         {
             if (eventCalculationInfoNode.Attributes["id"] != null) 
             {
                 eventCalculationInfoIDRef_ = eventCalculationInfoNode.Attributes["id"].Value;
                 EventCalculationInfo ob = new EventCalculationInfo(eventCalculationInfoNode);
                 IDManager.SetID(eventCalculationInfoIDRef_, ob);
             }
             else if (eventCalculationInfoNode.Attributes["href"] != null)
             {
                 eventCalculationInfoIDRef_ = eventCalculationInfoNode.Attributes["href"].Value;
             }
             else
             {
                 eventCalculationInfo_ = new EventCalculationInfo(eventCalculationInfoNode);
             }
         }
         else
         {
             eventCalculationInfo_ = new EventCalculationInfo(eventCalculationInfoNode);
         }
     }
     
 
     XmlNode returnCalculationInfoNode = xmlNode.SelectSingleNode("returnCalculationInfo");
     
     if (returnCalculationInfoNode != null)
     {
         if (returnCalculationInfoNode.Attributes["href"] != null || returnCalculationInfoNode.Attributes["id"] != null) 
         {
             if (returnCalculationInfoNode.Attributes["id"] != null) 
             {
                 returnCalculationInfoIDRef_ = returnCalculationInfoNode.Attributes["id"].Value;
                 ReturnCalculationInfo ob = new ReturnCalculationInfo(returnCalculationInfoNode);
                 IDManager.SetID(returnCalculationInfoIDRef_, ob);
             }
             else if (returnCalculationInfoNode.Attributes["href"] != null)
             {
                 returnCalculationInfoIDRef_ = returnCalculationInfoNode.Attributes["href"].Value;
             }
             else
             {
                 returnCalculationInfo_ = new ReturnCalculationInfo(returnCalculationInfoNode);
             }
         }
         else
         {
             returnCalculationInfo_ = new ReturnCalculationInfo(returnCalculationInfoNode);
         }
     }
     
 
     XmlNode complementReturnCalculationNode = xmlNode.SelectSingleNode("complementReturnCalculation");
     
     if (complementReturnCalculationNode != null)
     {
         if (complementReturnCalculationNode.Attributes["href"] != null || complementReturnCalculationNode.Attributes["id"] != null) 
         {
             if (complementReturnCalculationNode.Attributes["id"] != null) 
             {
                 complementReturnCalculationIDRef_ = complementReturnCalculationNode.Attributes["id"].Value;
                 ComplementReturnCalculation ob = new ComplementReturnCalculation(complementReturnCalculationNode);
                 IDManager.SetID(complementReturnCalculationIDRef_, ob);
             }
             else if (complementReturnCalculationNode.Attributes["href"] != null)
             {
                 complementReturnCalculationIDRef_ = complementReturnCalculationNode.Attributes["href"].Value;
             }
             else
             {
                 complementReturnCalculation_ = new ComplementReturnCalculation(complementReturnCalculationNode);
             }
         }
         else
         {
             complementReturnCalculation_ = new ComplementReturnCalculation(complementReturnCalculationNode);
         }
     }
     
 
     XmlNode payoffDateInfoNode = xmlNode.SelectSingleNode("payoffDateInfo");
     
     if (payoffDateInfoNode != null)
     {
         if (payoffDateInfoNode.Attributes["href"] != null || payoffDateInfoNode.Attributes["id"] != null) 
         {
             if (payoffDateInfoNode.Attributes["id"] != null) 
             {
                 payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["id"].Value;
                 PayoffDateInfo ob = new PayoffDateInfo(payoffDateInfoNode);
                 IDManager.SetID(payoffDateInfoIDRef_, ob);
             }
             else if (payoffDateInfoNode.Attributes["href"] != null)
             {
                 payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["href"].Value;
             }
             else
             {
                 payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
             }
         }
         else
         {
             payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
         }
     }
     
 
     XmlNode isExpiredNode = xmlNode.SelectSingleNode("isExpired");
     
     if (isExpiredNode != null)
     {
         if (isExpiredNode.Attributes["href"] != null || isExpiredNode.Attributes["id"] != null) 
         {
             if (isExpiredNode.Attributes["id"] != null) 
             {
                 isExpiredIDRef_ = isExpiredNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(isExpiredNode);
                 IDManager.SetID(isExpiredIDRef_, ob);
             }
             else if (isExpiredNode.Attributes["href"] != null)
             {
                 isExpiredIDRef_ = isExpiredNode.Attributes["href"].Value;
             }
             else
             {
                 isExpired_ = new XsdTypeBoolean(isExpiredNode);
             }
         }
         else
         {
             isExpired_ = new XsdTypeBoolean(isExpiredNode);
         }
     }
     
 
 }
        public SimpleEventCouponTrigger(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode eventCalculationInfoNode = xmlNode.SelectSingleNode("eventCalculationInfo");

            if (eventCalculationInfoNode != null)
            {
                if (eventCalculationInfoNode.Attributes["href"] != null || eventCalculationInfoNode.Attributes["id"] != null)
                {
                    if (eventCalculationInfoNode.Attributes["id"] != null)
                    {
                        eventCalculationInfoIDRef_ = eventCalculationInfoNode.Attributes["id"].Value;
                        EventCalculationInfo ob = new EventCalculationInfo(eventCalculationInfoNode);
                        IDManager.SetID(eventCalculationInfoIDRef_, ob);
                    }
                    else if (eventCalculationInfoNode.Attributes["href"] != null)
                    {
                        eventCalculationInfoIDRef_ = eventCalculationInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        eventCalculationInfo_ = new EventCalculationInfo(eventCalculationInfoNode);
                    }
                }
                else
                {
                    eventCalculationInfo_ = new EventCalculationInfo(eventCalculationInfoNode);
                }
            }


            XmlNode returnCalculationInfoNode = xmlNode.SelectSingleNode("returnCalculationInfo");

            if (returnCalculationInfoNode != null)
            {
                if (returnCalculationInfoNode.Attributes["href"] != null || returnCalculationInfoNode.Attributes["id"] != null)
                {
                    if (returnCalculationInfoNode.Attributes["id"] != null)
                    {
                        returnCalculationInfoIDRef_ = returnCalculationInfoNode.Attributes["id"].Value;
                        ReturnCalculationInfo ob = new ReturnCalculationInfo(returnCalculationInfoNode);
                        IDManager.SetID(returnCalculationInfoIDRef_, ob);
                    }
                    else if (returnCalculationInfoNode.Attributes["href"] != null)
                    {
                        returnCalculationInfoIDRef_ = returnCalculationInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        returnCalculationInfo_ = new ReturnCalculationInfo(returnCalculationInfoNode);
                    }
                }
                else
                {
                    returnCalculationInfo_ = new ReturnCalculationInfo(returnCalculationInfoNode);
                }
            }


            XmlNode complementReturnCalculationNode = xmlNode.SelectSingleNode("complementReturnCalculation");

            if (complementReturnCalculationNode != null)
            {
                if (complementReturnCalculationNode.Attributes["href"] != null || complementReturnCalculationNode.Attributes["id"] != null)
                {
                    if (complementReturnCalculationNode.Attributes["id"] != null)
                    {
                        complementReturnCalculationIDRef_ = complementReturnCalculationNode.Attributes["id"].Value;
                        ComplementReturnCalculation ob = new ComplementReturnCalculation(complementReturnCalculationNode);
                        IDManager.SetID(complementReturnCalculationIDRef_, ob);
                    }
                    else if (complementReturnCalculationNode.Attributes["href"] != null)
                    {
                        complementReturnCalculationIDRef_ = complementReturnCalculationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        complementReturnCalculation_ = new ComplementReturnCalculation(complementReturnCalculationNode);
                    }
                }
                else
                {
                    complementReturnCalculation_ = new ComplementReturnCalculation(complementReturnCalculationNode);
                }
            }


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

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


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

            if (isExpiredNode != null)
            {
                if (isExpiredNode.Attributes["href"] != null || isExpiredNode.Attributes["id"] != null)
                {
                    if (isExpiredNode.Attributes["id"] != null)
                    {
                        isExpiredIDRef_ = isExpiredNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(isExpiredNode);
                        IDManager.SetID(isExpiredIDRef_, ob);
                    }
                    else if (isExpiredNode.Attributes["href"] != null)
                    {
                        isExpiredIDRef_ = isExpiredNode.Attributes["href"].Value;
                    }
                    else
                    {
                        isExpired_ = new XsdTypeBoolean(isExpiredNode);
                    }
                }
                else
                {
                    isExpired_ = new XsdTypeBoolean(isExpiredNode);
                }
            }
        }
 public AutoTerminationTrigger(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode eventCalculationInfoNode = xmlNode.SelectSingleNode("eventCalculationInfo");
     
     if (eventCalculationInfoNode != null)
     {
         if (eventCalculationInfoNode.Attributes["href"] != null || eventCalculationInfoNode.Attributes["id"] != null) 
         {
             if (eventCalculationInfoNode.Attributes["id"] != null) 
             {
                 eventCalculationInfoIDRef_ = eventCalculationInfoNode.Attributes["id"].Value;
                 EventCalculationInfo ob = new EventCalculationInfo(eventCalculationInfoNode);
                 IDManager.SetID(eventCalculationInfoIDRef_, ob);
             }
             else if (eventCalculationInfoNode.Attributes["href"] != null)
             {
                 eventCalculationInfoIDRef_ = eventCalculationInfoNode.Attributes["href"].Value;
             }
             else
             {
                 eventCalculationInfo_ = new EventCalculationInfo(eventCalculationInfoNode);
             }
         }
         else
         {
             eventCalculationInfo_ = new EventCalculationInfo(eventCalculationInfoNode);
         }
     }
     
 
     XmlNode returnCalculationInfoNode = xmlNode.SelectSingleNode("returnCalculationInfo");
     
     if (returnCalculationInfoNode != null)
     {
         if (returnCalculationInfoNode.Attributes["href"] != null || returnCalculationInfoNode.Attributes["id"] != null) 
         {
             if (returnCalculationInfoNode.Attributes["id"] != null) 
             {
                 returnCalculationInfoIDRef_ = returnCalculationInfoNode.Attributes["id"].Value;
                 ReturnCalculationInfo ob = new ReturnCalculationInfo(returnCalculationInfoNode);
                 IDManager.SetID(returnCalculationInfoIDRef_, ob);
             }
             else if (returnCalculationInfoNode.Attributes["href"] != null)
             {
                 returnCalculationInfoIDRef_ = returnCalculationInfoNode.Attributes["href"].Value;
             }
             else
             {
                 returnCalculationInfo_ = new ReturnCalculationInfo(returnCalculationInfoNode);
             }
         }
         else
         {
             returnCalculationInfo_ = new ReturnCalculationInfo(returnCalculationInfoNode);
         }
     }
     
 
     XmlNode payoffDateInfoNode = xmlNode.SelectSingleNode("payoffDateInfo");
     
     if (payoffDateInfoNode != null)
     {
         if (payoffDateInfoNode.Attributes["href"] != null || payoffDateInfoNode.Attributes["id"] != null) 
         {
             if (payoffDateInfoNode.Attributes["id"] != null) 
             {
                 payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["id"].Value;
                 PayoffDateInfo ob = new PayoffDateInfo(payoffDateInfoNode);
                 IDManager.SetID(payoffDateInfoIDRef_, ob);
             }
             else if (payoffDateInfoNode.Attributes["href"] != null)
             {
                 payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["href"].Value;
             }
             else
             {
                 payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
             }
         }
         else
         {
             payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode);
         }
     }
     
 
 }