public StructuredProduct(XmlNode xmlNode)
 {
     XmlNodeList issueInformationNodeList = xmlNode.SelectNodes("issueInformation");
     if (issueInformationNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in issueInformationNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 issueInformationIDRef = item.Attributes["id"].Name;
                 IssueInformation ob = IssueInformation();
                 IDManager.SetID(issueInformationIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 issueInformationIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 issueInformation = new IssueInformation(item);
             }
         }
     }
     
 
     XmlNodeList structuredProductPayoffNodeList = xmlNode.SelectNodes("structuredProductPayoff");
     if (structuredProductPayoffNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in structuredProductPayoffNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 structuredProductPayoffIDRef = item.Attributes["id"].Name;
                 StructuredProductPayoff ob = StructuredProductPayoff();
                 IDManager.SetID(structuredProductPayoffIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 structuredProductPayoffIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 structuredProductPayoff = new StructuredProductPayoff(item);
             }
         }
     }
     
 
 }
 public StructuredProduct(XmlNode 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 structuredProductPayoffNode = xmlNode.SelectSingleNode("structuredProductPayoff");
     
     if (structuredProductPayoffNode != null)
     {
         if (structuredProductPayoffNode.Attributes["href"] != null || structuredProductPayoffNode.Attributes["id"] != null) 
         {
             if (structuredProductPayoffNode.Attributes["id"] != null) 
             {
                 structuredProductPayoffIDRef_ = structuredProductPayoffNode.Attributes["id"].Value;
                 StructuredProductPayoff ob = new StructuredProductPayoff(structuredProductPayoffNode);
                 IDManager.SetID(structuredProductPayoffIDRef_, ob);
             }
             else if (structuredProductPayoffNode.Attributes["href"] != null)
             {
                 structuredProductPayoffIDRef_ = structuredProductPayoffNode.Attributes["href"].Value;
             }
             else
             {
                 structuredProductPayoff_ = new StructuredProductPayoff(structuredProductPayoffNode);
             }
         }
         else
         {
             structuredProductPayoff_ = new StructuredProductPayoff(structuredProductPayoffNode);
         }
     }
     
 
 }
Esempio n. 3
0
        public StructuredProduct(XmlNode xmlNode)
        {
            XmlNodeList issueInformationNodeList = xmlNode.SelectNodes("issueInformation");

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

            foreach (XmlNode item in issueInformationNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        issueInformationIDRef = item.Attributes["id"].Name;
                        IssueInformation ob = IssueInformation();
                        IDManager.SetID(issueInformationIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        issueInformationIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        issueInformation = new IssueInformation(item);
                    }
                }
            }


            XmlNodeList structuredProductPayoffNodeList = xmlNode.SelectNodes("structuredProductPayoff");

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

            foreach (XmlNode item in structuredProductPayoffNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        structuredProductPayoffIDRef = item.Attributes["id"].Name;
                        StructuredProductPayoff ob = StructuredProductPayoff();
                        IDManager.SetID(structuredProductPayoffIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        structuredProductPayoffIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        structuredProductPayoff = new StructuredProductPayoff(item);
                    }
                }
            }
        }
        public StructuredProduct(XmlNode 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 structuredProductPayoffNode = xmlNode.SelectSingleNode("structuredProductPayoff");

            if (structuredProductPayoffNode != null)
            {
                if (structuredProductPayoffNode.Attributes["href"] != null || structuredProductPayoffNode.Attributes["id"] != null)
                {
                    if (structuredProductPayoffNode.Attributes["id"] != null)
                    {
                        structuredProductPayoffIDRef_ = structuredProductPayoffNode.Attributes["id"].Value;
                        StructuredProductPayoff ob = new StructuredProductPayoff(structuredProductPayoffNode);
                        IDManager.SetID(structuredProductPayoffIDRef_, ob);
                    }
                    else if (structuredProductPayoffNode.Attributes["href"] != null)
                    {
                        structuredProductPayoffIDRef_ = structuredProductPayoffNode.Attributes["href"].Value;
                    }
                    else
                    {
                        structuredProductPayoff_ = new StructuredProductPayoff(structuredProductPayoffNode);
                    }
                }
                else
                {
                    structuredProductPayoff_ = new StructuredProductPayoff(structuredProductPayoffNode);
                }
            }
        }
 public StandardSwapInstrument(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 swapPayoffInfoNode = xmlNode.SelectSingleNode("swapPayoffInfo");
     
     if (swapPayoffInfoNode != null)
     {
         if (swapPayoffInfoNode.Attributes["href"] != null || swapPayoffInfoNode.Attributes["id"] != null) 
         {
             if (swapPayoffInfoNode.Attributes["id"] != null) 
             {
                 swapPayoffInfoIDRef_ = swapPayoffInfoNode.Attributes["id"].Value;
                 SwapPayoffInfo ob = new SwapPayoffInfo(swapPayoffInfoNode);
                 IDManager.SetID(swapPayoffInfoIDRef_, ob);
             }
             else if (swapPayoffInfoNode.Attributes["href"] != null)
             {
                 swapPayoffInfoIDRef_ = swapPayoffInfoNode.Attributes["href"].Value;
             }
             else
             {
                 swapPayoffInfo_ = new SwapPayoffInfo(swapPayoffInfoNode);
             }
         }
         else
         {
             swapPayoffInfo_ = new SwapPayoffInfo(swapPayoffInfoNode);
         }
     }
     
 
 }
        public StandardSwapInstrument(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 swapPayoffInfoNode = xmlNode.SelectSingleNode("swapPayoffInfo");

            if (swapPayoffInfoNode != null)
            {
                if (swapPayoffInfoNode.Attributes["href"] != null || swapPayoffInfoNode.Attributes["id"] != null)
                {
                    if (swapPayoffInfoNode.Attributes["id"] != null)
                    {
                        swapPayoffInfoIDRef_ = swapPayoffInfoNode.Attributes["id"].Value;
                        SwapPayoffInfo ob = new SwapPayoffInfo(swapPayoffInfoNode);
                        IDManager.SetID(swapPayoffInfoIDRef_, ob);
                    }
                    else if (swapPayoffInfoNode.Attributes["href"] != null)
                    {
                        swapPayoffInfoIDRef_ = swapPayoffInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        swapPayoffInfo_ = new SwapPayoffInfo(swapPayoffInfoNode);
                    }
                }
                else
                {
                    swapPayoffInfo_ = new SwapPayoffInfo(swapPayoffInfoNode);
                }
            }
        }
Esempio n. 7
0
        public CreditInstrument(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 creditPayoffInfoNode = xmlNode.SelectSingleNode("creditPayoffInfo");

            if (creditPayoffInfoNode != null)
            {
                if (creditPayoffInfoNode.Attributes["href"] != null || creditPayoffInfoNode.Attributes["id"] != null)
                {
                    if (creditPayoffInfoNode.Attributes["id"] != null)
                    {
                        creditPayoffInfoIDRef_ = creditPayoffInfoNode.Attributes["id"].Value;
                        CreditPayoffInfo ob = new CreditPayoffInfo(creditPayoffInfoNode);
                        IDManager.SetID(creditPayoffInfoIDRef_, ob);
                    }
                    else if (creditPayoffInfoNode.Attributes["href"] != null)
                    {
                        creditPayoffInfoIDRef_ = creditPayoffInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        creditPayoffInfo_ = new CreditPayoffInfo(creditPayoffInfoNode);
                    }
                }
                else
                {
                    creditPayoffInfo_ = new CreditPayoffInfo(creditPayoffInfoNode);
                }
            }
        }
 public CreditInstrument(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 creditPayoffInfoNode = xmlNode.SelectSingleNode("creditPayoffInfo");
     
     if (creditPayoffInfoNode != null)
     {
         if (creditPayoffInfoNode.Attributes["href"] != null || creditPayoffInfoNode.Attributes["id"] != null) 
         {
             if (creditPayoffInfoNode.Attributes["id"] != null) 
             {
                 creditPayoffInfoIDRef_ = creditPayoffInfoNode.Attributes["id"].Value;
                 CreditPayoffInfo ob = new CreditPayoffInfo(creditPayoffInfoNode);
                 IDManager.SetID(creditPayoffInfoIDRef_, ob);
             }
             else if (creditPayoffInfoNode.Attributes["href"] != null)
             {
                 creditPayoffInfoIDRef_ = creditPayoffInfoNode.Attributes["href"].Value;
             }
             else
             {
                 creditPayoffInfo_ = new CreditPayoffInfo(creditPayoffInfoNode);
             }
         }
         else
         {
             creditPayoffInfo_ = new CreditPayoffInfo(creditPayoffInfoNode);
         }
     }
     
 
 }