Exemplo n.º 1
0
        public PaySwapPart(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode payoffInfoNode = xmlNode.SelectSingleNode("payoffInfo");

            if (payoffInfoNode != null)
            {
                if (payoffInfoNode.Attributes["href"] != null || payoffInfoNode.Attributes["id"] != null)
                {
                    if (payoffInfoNode.Attributes["id"] != null)
                    {
                        payoffInfoIDRef_ = payoffInfoNode.Attributes["id"].Value;
                        PayoffInfo ob = new PayoffInfo(payoffInfoNode);
                        IDManager.SetID(payoffInfoIDRef_, ob);
                    }
                    else if (payoffInfoNode.Attributes["href"] != null)
                    {
                        payoffInfoIDRef_ = payoffInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        payoffInfo_ = new PayoffInfo(payoffInfoNode);
                    }
                }
                else
                {
                    payoffInfo_ = new PayoffInfo(payoffInfoNode);
                }
            }
        }
 public InterestRateSwapPayoff_A(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode payoffInfoNode = xmlNode.SelectSingleNode("payoffInfo");
     
     if (payoffInfoNode != null)
     {
         if (payoffInfoNode.Attributes["href"] != null || payoffInfoNode.Attributes["id"] != null) 
         {
             if (payoffInfoNode.Attributes["id"] != null) 
             {
                 payoffInfoIDRef_ = payoffInfoNode.Attributes["id"].Value;
                 PayoffInfo ob = new PayoffInfo(payoffInfoNode);
                 IDManager.SetID(payoffInfoIDRef_, ob);
             }
             else if (payoffInfoNode.Attributes["href"] != null)
             {
                 payoffInfoIDRef_ = payoffInfoNode.Attributes["href"].Value;
             }
             else
             {
                 payoffInfo_ = new PayoffInfo(payoffInfoNode);
             }
         }
         else
         {
             payoffInfo_ = new PayoffInfo(payoffInfoNode);
         }
     }
     
 
 }
 public StandardInstrument(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode issueInformationNode = xmlNode.SelectSingleNode("issueInformation");
     
     if (issueInformationNode != null)
     {
         if (issueInformationNode.Attributes["href"] != null || issueInformationNode.Attributes["id"] != null) 
         {
             if (issueInformationNode.Attributes["id"] != null) 
             {
                 issueInformationIDRef_ = issueInformationNode.Attributes["id"].Value;
                 IssueInformation ob = new IssueInformation(issueInformationNode);
                 IDManager.SetID(issueInformationIDRef_, ob);
             }
             else if (issueInformationNode.Attributes["href"] != null)
             {
                 issueInformationIDRef_ = issueInformationNode.Attributes["href"].Value;
             }
             else
             {
                 issueInformation_ = new IssueInformation(issueInformationNode);
             }
         }
         else
         {
             issueInformation_ = new IssueInformation(issueInformationNode);
         }
     }
     
 
     XmlNode underlyingInformationNode = xmlNode.SelectSingleNode("underlyingInformation");
     
     if (underlyingInformationNode != null)
     {
         if (underlyingInformationNode.Attributes["href"] != null || underlyingInformationNode.Attributes["id"] != null) 
         {
             if (underlyingInformationNode.Attributes["id"] != null) 
             {
                 underlyingInformationIDRef_ = underlyingInformationNode.Attributes["id"].Value;
                 UnderlyingInformation ob = new UnderlyingInformation(underlyingInformationNode);
                 IDManager.SetID(underlyingInformationIDRef_, ob);
             }
             else if (underlyingInformationNode.Attributes["href"] != null)
             {
                 underlyingInformationIDRef_ = underlyingInformationNode.Attributes["href"].Value;
             }
             else
             {
                 underlyingInformation_ = new UnderlyingInformation(underlyingInformationNode);
             }
         }
         else
         {
             underlyingInformation_ = new UnderlyingInformation(underlyingInformationNode);
         }
     }
     
 
     XmlNode payoffInfoNode = xmlNode.SelectSingleNode("payoffInfo");
     
     if (payoffInfoNode != null)
     {
         if (payoffInfoNode.Attributes["href"] != null || payoffInfoNode.Attributes["id"] != null) 
         {
             if (payoffInfoNode.Attributes["id"] != null) 
             {
                 payoffInfoIDRef_ = payoffInfoNode.Attributes["id"].Value;
                 PayoffInfo ob = new PayoffInfo(payoffInfoNode);
                 IDManager.SetID(payoffInfoIDRef_, ob);
             }
             else if (payoffInfoNode.Attributes["href"] != null)
             {
                 payoffInfoIDRef_ = payoffInfoNode.Attributes["href"].Value;
             }
             else
             {
                 payoffInfo_ = new PayoffInfo(payoffInfoNode);
             }
         }
         else
         {
             payoffInfo_ = new PayoffInfo(payoffInfoNode);
         }
     }
     
 
 }
Exemplo n.º 4
0
        public StandardInstrument(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode issueInformationNode = xmlNode.SelectSingleNode("issueInformation");

            if (issueInformationNode != null)
            {
                if (issueInformationNode.Attributes["href"] != null || issueInformationNode.Attributes["id"] != null)
                {
                    if (issueInformationNode.Attributes["id"] != null)
                    {
                        issueInformationIDRef_ = issueInformationNode.Attributes["id"].Value;
                        IssueInformation ob = new IssueInformation(issueInformationNode);
                        IDManager.SetID(issueInformationIDRef_, ob);
                    }
                    else if (issueInformationNode.Attributes["href"] != null)
                    {
                        issueInformationIDRef_ = issueInformationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        issueInformation_ = new IssueInformation(issueInformationNode);
                    }
                }
                else
                {
                    issueInformation_ = new IssueInformation(issueInformationNode);
                }
            }


            XmlNode underlyingInformationNode = xmlNode.SelectSingleNode("underlyingInformation");

            if (underlyingInformationNode != null)
            {
                if (underlyingInformationNode.Attributes["href"] != null || underlyingInformationNode.Attributes["id"] != null)
                {
                    if (underlyingInformationNode.Attributes["id"] != null)
                    {
                        underlyingInformationIDRef_ = underlyingInformationNode.Attributes["id"].Value;
                        UnderlyingInformation ob = new UnderlyingInformation(underlyingInformationNode);
                        IDManager.SetID(underlyingInformationIDRef_, ob);
                    }
                    else if (underlyingInformationNode.Attributes["href"] != null)
                    {
                        underlyingInformationIDRef_ = underlyingInformationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        underlyingInformation_ = new UnderlyingInformation(underlyingInformationNode);
                    }
                }
                else
                {
                    underlyingInformation_ = new UnderlyingInformation(underlyingInformationNode);
                }
            }


            XmlNode payoffInfoNode = xmlNode.SelectSingleNode("payoffInfo");

            if (payoffInfoNode != null)
            {
                if (payoffInfoNode.Attributes["href"] != null || payoffInfoNode.Attributes["id"] != null)
                {
                    if (payoffInfoNode.Attributes["id"] != null)
                    {
                        payoffInfoIDRef_ = payoffInfoNode.Attributes["id"].Value;
                        PayoffInfo ob = new PayoffInfo(payoffInfoNode);
                        IDManager.SetID(payoffInfoIDRef_, ob);
                    }
                    else if (payoffInfoNode.Attributes["href"] != null)
                    {
                        payoffInfoIDRef_ = payoffInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        payoffInfo_ = new PayoffInfo(payoffInfoNode);
                    }
                }
                else
                {
                    payoffInfo_ = new PayoffInfo(payoffInfoNode);
                }
            }
        }