public IndexReferenceInformation(XmlNode xmlNode)
 {
     XmlNode indexNameNode = xmlNode.SelectSingleNode("indexName");
     
     if (indexNameNode != null)
     {
         if (indexNameNode.Attributes["href"] != null || indexNameNode.Attributes["id"] != null) 
         {
             if (indexNameNode.Attributes["id"] != null) 
             {
                 indexNameIDRef_ = indexNameNode.Attributes["id"].Value;
                 IndexName ob = new IndexName(indexNameNode);
                 IDManager.SetID(indexNameIDRef_, ob);
             }
             else if (indexNameNode.Attributes["href"] != null)
             {
                 indexNameIDRef_ = indexNameNode.Attributes["href"].Value;
             }
             else
             {
                 indexName_ = new IndexName(indexNameNode);
             }
         }
         else
         {
             indexName_ = new IndexName(indexNameNode);
         }
     }
     
 
     XmlNodeList indexIdNodeList = xmlNode.SelectNodes("indexId");
     
     if (indexIdNodeList != null)
     {
         this.indexId_ = new List<IndexId>();
         foreach (XmlNode item in indexIdNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     indexIdIDRef_ = item.Attributes["id"].Value;
                     indexId_.Add(new IndexId(item));
                     IDManager.SetID(indexIdIDRef_, indexId_[indexId_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     indexIdIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 indexId_.Add(new IndexId(item));
                 }
             }
             else
             {
                 indexId_.Add(new IndexId(item));
             }
         }
     }
     
 
     XmlNode indexSeriesNode = xmlNode.SelectSingleNode("indexSeries");
     
     if (indexSeriesNode != null)
     {
         if (indexSeriesNode.Attributes["href"] != null || indexSeriesNode.Attributes["id"] != null) 
         {
             if (indexSeriesNode.Attributes["id"] != null) 
             {
                 indexSeriesIDRef_ = indexSeriesNode.Attributes["id"].Value;
                 XsdTypePositiveInteger ob = new XsdTypePositiveInteger(indexSeriesNode);
                 IDManager.SetID(indexSeriesIDRef_, ob);
             }
             else if (indexSeriesNode.Attributes["href"] != null)
             {
                 indexSeriesIDRef_ = indexSeriesNode.Attributes["href"].Value;
             }
             else
             {
                 indexSeries_ = new XsdTypePositiveInteger(indexSeriesNode);
             }
         }
         else
         {
             indexSeries_ = new XsdTypePositiveInteger(indexSeriesNode);
         }
     }
     
 
     XmlNode indexAnnexVersionNode = xmlNode.SelectSingleNode("indexAnnexVersion");
     
     if (indexAnnexVersionNode != null)
     {
         if (indexAnnexVersionNode.Attributes["href"] != null || indexAnnexVersionNode.Attributes["id"] != null) 
         {
             if (indexAnnexVersionNode.Attributes["id"] != null) 
             {
                 indexAnnexVersionIDRef_ = indexAnnexVersionNode.Attributes["id"].Value;
                 XsdTypePositiveInteger ob = new XsdTypePositiveInteger(indexAnnexVersionNode);
                 IDManager.SetID(indexAnnexVersionIDRef_, ob);
             }
             else if (indexAnnexVersionNode.Attributes["href"] != null)
             {
                 indexAnnexVersionIDRef_ = indexAnnexVersionNode.Attributes["href"].Value;
             }
             else
             {
                 indexAnnexVersion_ = new XsdTypePositiveInteger(indexAnnexVersionNode);
             }
         }
         else
         {
             indexAnnexVersion_ = new XsdTypePositiveInteger(indexAnnexVersionNode);
         }
     }
     
 
     XmlNode indexAnnexDateNode = xmlNode.SelectSingleNode("indexAnnexDate");
     
     if (indexAnnexDateNode != null)
     {
         if (indexAnnexDateNode.Attributes["href"] != null || indexAnnexDateNode.Attributes["id"] != null) 
         {
             if (indexAnnexDateNode.Attributes["id"] != null) 
             {
                 indexAnnexDateIDRef_ = indexAnnexDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(indexAnnexDateNode);
                 IDManager.SetID(indexAnnexDateIDRef_, ob);
             }
             else if (indexAnnexDateNode.Attributes["href"] != null)
             {
                 indexAnnexDateIDRef_ = indexAnnexDateNode.Attributes["href"].Value;
             }
             else
             {
                 indexAnnexDate_ = new XsdTypeDate(indexAnnexDateNode);
             }
         }
         else
         {
             indexAnnexDate_ = new XsdTypeDate(indexAnnexDateNode);
         }
     }
     
 
     XmlNode indexAnnexSourceNode = xmlNode.SelectSingleNode("indexAnnexSource");
     
     if (indexAnnexSourceNode != null)
     {
         if (indexAnnexSourceNode.Attributes["href"] != null || indexAnnexSourceNode.Attributes["id"] != null) 
         {
             if (indexAnnexSourceNode.Attributes["id"] != null) 
             {
                 indexAnnexSourceIDRef_ = indexAnnexSourceNode.Attributes["id"].Value;
                 IndexAnnexSource ob = new IndexAnnexSource(indexAnnexSourceNode);
                 IDManager.SetID(indexAnnexSourceIDRef_, ob);
             }
             else if (indexAnnexSourceNode.Attributes["href"] != null)
             {
                 indexAnnexSourceIDRef_ = indexAnnexSourceNode.Attributes["href"].Value;
             }
             else
             {
                 indexAnnexSource_ = new IndexAnnexSource(indexAnnexSourceNode);
             }
         }
         else
         {
             indexAnnexSource_ = new IndexAnnexSource(indexAnnexSourceNode);
         }
     }
     
 
     XmlNodeList excludedReferenceEntityNodeList = xmlNode.SelectNodes("excludedReferenceEntity");
     
     if (excludedReferenceEntityNodeList != null)
     {
         this.excludedReferenceEntity_ = new List<LegalEntity>();
         foreach (XmlNode item in excludedReferenceEntityNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     excludedReferenceEntityIDRef_ = item.Attributes["id"].Value;
                     excludedReferenceEntity_.Add(new LegalEntity(item));
                     IDManager.SetID(excludedReferenceEntityIDRef_, excludedReferenceEntity_[excludedReferenceEntity_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     excludedReferenceEntityIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 excludedReferenceEntity_.Add(new LegalEntity(item));
                 }
             }
             else
             {
                 excludedReferenceEntity_.Add(new LegalEntity(item));
             }
         }
     }
     
 
     XmlNode trancheNode = xmlNode.SelectSingleNode("tranche");
     
     if (trancheNode != null)
     {
         if (trancheNode.Attributes["href"] != null || trancheNode.Attributes["id"] != null) 
         {
             if (trancheNode.Attributes["id"] != null) 
             {
                 trancheIDRef_ = trancheNode.Attributes["id"].Value;
                 Tranche ob = new Tranche(trancheNode);
                 IDManager.SetID(trancheIDRef_, ob);
             }
             else if (trancheNode.Attributes["href"] != null)
             {
                 trancheIDRef_ = trancheNode.Attributes["href"].Value;
             }
             else
             {
                 tranche_ = new Tranche(trancheNode);
             }
         }
         else
         {
             tranche_ = new Tranche(trancheNode);
         }
     }
     
 
     XmlNode settledEntityMatrixNode = xmlNode.SelectSingleNode("settledEntityMatrix");
     
     if (settledEntityMatrixNode != null)
     {
         if (settledEntityMatrixNode.Attributes["href"] != null || settledEntityMatrixNode.Attributes["id"] != null) 
         {
             if (settledEntityMatrixNode.Attributes["id"] != null) 
             {
                 settledEntityMatrixIDRef_ = settledEntityMatrixNode.Attributes["id"].Value;
                 SettledEntityMatrix ob = new SettledEntityMatrix(settledEntityMatrixNode);
                 IDManager.SetID(settledEntityMatrixIDRef_, ob);
             }
             else if (settledEntityMatrixNode.Attributes["href"] != null)
             {
                 settledEntityMatrixIDRef_ = settledEntityMatrixNode.Attributes["href"].Value;
             }
             else
             {
                 settledEntityMatrix_ = new SettledEntityMatrix(settledEntityMatrixNode);
             }
         }
         else
         {
             settledEntityMatrix_ = new SettledEntityMatrix(settledEntityMatrixNode);
         }
     }
     
 
 }
        public IndexReferenceInformation(XmlNode xmlNode)
        {
            XmlNode indexNameNode = xmlNode.SelectSingleNode("indexName");

            if (indexNameNode != null)
            {
                if (indexNameNode.Attributes["href"] != null || indexNameNode.Attributes["id"] != null)
                {
                    if (indexNameNode.Attributes["id"] != null)
                    {
                        indexNameIDRef_ = indexNameNode.Attributes["id"].Value;
                        IndexName ob = new IndexName(indexNameNode);
                        IDManager.SetID(indexNameIDRef_, ob);
                    }
                    else if (indexNameNode.Attributes["href"] != null)
                    {
                        indexNameIDRef_ = indexNameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        indexName_ = new IndexName(indexNameNode);
                    }
                }
                else
                {
                    indexName_ = new IndexName(indexNameNode);
                }
            }


            XmlNodeList indexIdNodeList = xmlNode.SelectNodes("indexId");

            if (indexIdNodeList != null)
            {
                this.indexId_ = new List <IndexId>();
                foreach (XmlNode item in indexIdNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            indexIdIDRef_ = item.Attributes["id"].Value;
                            indexId_.Add(new IndexId(item));
                            IDManager.SetID(indexIdIDRef_, indexId_[indexId_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            indexIdIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            indexId_.Add(new IndexId(item));
                        }
                    }
                    else
                    {
                        indexId_.Add(new IndexId(item));
                    }
                }
            }


            XmlNode indexSeriesNode = xmlNode.SelectSingleNode("indexSeries");

            if (indexSeriesNode != null)
            {
                if (indexSeriesNode.Attributes["href"] != null || indexSeriesNode.Attributes["id"] != null)
                {
                    if (indexSeriesNode.Attributes["id"] != null)
                    {
                        indexSeriesIDRef_ = indexSeriesNode.Attributes["id"].Value;
                        XsdTypePositiveInteger ob = new XsdTypePositiveInteger(indexSeriesNode);
                        IDManager.SetID(indexSeriesIDRef_, ob);
                    }
                    else if (indexSeriesNode.Attributes["href"] != null)
                    {
                        indexSeriesIDRef_ = indexSeriesNode.Attributes["href"].Value;
                    }
                    else
                    {
                        indexSeries_ = new XsdTypePositiveInteger(indexSeriesNode);
                    }
                }
                else
                {
                    indexSeries_ = new XsdTypePositiveInteger(indexSeriesNode);
                }
            }


            XmlNode indexAnnexVersionNode = xmlNode.SelectSingleNode("indexAnnexVersion");

            if (indexAnnexVersionNode != null)
            {
                if (indexAnnexVersionNode.Attributes["href"] != null || indexAnnexVersionNode.Attributes["id"] != null)
                {
                    if (indexAnnexVersionNode.Attributes["id"] != null)
                    {
                        indexAnnexVersionIDRef_ = indexAnnexVersionNode.Attributes["id"].Value;
                        XsdTypePositiveInteger ob = new XsdTypePositiveInteger(indexAnnexVersionNode);
                        IDManager.SetID(indexAnnexVersionIDRef_, ob);
                    }
                    else if (indexAnnexVersionNode.Attributes["href"] != null)
                    {
                        indexAnnexVersionIDRef_ = indexAnnexVersionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        indexAnnexVersion_ = new XsdTypePositiveInteger(indexAnnexVersionNode);
                    }
                }
                else
                {
                    indexAnnexVersion_ = new XsdTypePositiveInteger(indexAnnexVersionNode);
                }
            }


            XmlNode indexAnnexDateNode = xmlNode.SelectSingleNode("indexAnnexDate");

            if (indexAnnexDateNode != null)
            {
                if (indexAnnexDateNode.Attributes["href"] != null || indexAnnexDateNode.Attributes["id"] != null)
                {
                    if (indexAnnexDateNode.Attributes["id"] != null)
                    {
                        indexAnnexDateIDRef_ = indexAnnexDateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(indexAnnexDateNode);
                        IDManager.SetID(indexAnnexDateIDRef_, ob);
                    }
                    else if (indexAnnexDateNode.Attributes["href"] != null)
                    {
                        indexAnnexDateIDRef_ = indexAnnexDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        indexAnnexDate_ = new XsdTypeDate(indexAnnexDateNode);
                    }
                }
                else
                {
                    indexAnnexDate_ = new XsdTypeDate(indexAnnexDateNode);
                }
            }


            XmlNode indexAnnexSourceNode = xmlNode.SelectSingleNode("indexAnnexSource");

            if (indexAnnexSourceNode != null)
            {
                if (indexAnnexSourceNode.Attributes["href"] != null || indexAnnexSourceNode.Attributes["id"] != null)
                {
                    if (indexAnnexSourceNode.Attributes["id"] != null)
                    {
                        indexAnnexSourceIDRef_ = indexAnnexSourceNode.Attributes["id"].Value;
                        IndexAnnexSource ob = new IndexAnnexSource(indexAnnexSourceNode);
                        IDManager.SetID(indexAnnexSourceIDRef_, ob);
                    }
                    else if (indexAnnexSourceNode.Attributes["href"] != null)
                    {
                        indexAnnexSourceIDRef_ = indexAnnexSourceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        indexAnnexSource_ = new IndexAnnexSource(indexAnnexSourceNode);
                    }
                }
                else
                {
                    indexAnnexSource_ = new IndexAnnexSource(indexAnnexSourceNode);
                }
            }


            XmlNodeList excludedReferenceEntityNodeList = xmlNode.SelectNodes("excludedReferenceEntity");

            if (excludedReferenceEntityNodeList != null)
            {
                this.excludedReferenceEntity_ = new List <LegalEntity>();
                foreach (XmlNode item in excludedReferenceEntityNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            excludedReferenceEntityIDRef_ = item.Attributes["id"].Value;
                            excludedReferenceEntity_.Add(new LegalEntity(item));
                            IDManager.SetID(excludedReferenceEntityIDRef_, excludedReferenceEntity_[excludedReferenceEntity_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            excludedReferenceEntityIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            excludedReferenceEntity_.Add(new LegalEntity(item));
                        }
                    }
                    else
                    {
                        excludedReferenceEntity_.Add(new LegalEntity(item));
                    }
                }
            }


            XmlNode trancheNode = xmlNode.SelectSingleNode("tranche");

            if (trancheNode != null)
            {
                if (trancheNode.Attributes["href"] != null || trancheNode.Attributes["id"] != null)
                {
                    if (trancheNode.Attributes["id"] != null)
                    {
                        trancheIDRef_ = trancheNode.Attributes["id"].Value;
                        Tranche ob = new Tranche(trancheNode);
                        IDManager.SetID(trancheIDRef_, ob);
                    }
                    else if (trancheNode.Attributes["href"] != null)
                    {
                        trancheIDRef_ = trancheNode.Attributes["href"].Value;
                    }
                    else
                    {
                        tranche_ = new Tranche(trancheNode);
                    }
                }
                else
                {
                    tranche_ = new Tranche(trancheNode);
                }
            }


            XmlNode settledEntityMatrixNode = xmlNode.SelectSingleNode("settledEntityMatrix");

            if (settledEntityMatrixNode != null)
            {
                if (settledEntityMatrixNode.Attributes["href"] != null || settledEntityMatrixNode.Attributes["id"] != null)
                {
                    if (settledEntityMatrixNode.Attributes["id"] != null)
                    {
                        settledEntityMatrixIDRef_ = settledEntityMatrixNode.Attributes["id"].Value;
                        SettledEntityMatrix ob = new SettledEntityMatrix(settledEntityMatrixNode);
                        IDManager.SetID(settledEntityMatrixIDRef_, ob);
                    }
                    else if (settledEntityMatrixNode.Attributes["href"] != null)
                    {
                        settledEntityMatrixIDRef_ = settledEntityMatrixNode.Attributes["href"].Value;
                    }
                    else
                    {
                        settledEntityMatrix_ = new SettledEntityMatrix(settledEntityMatrixNode);
                    }
                }
                else
                {
                    settledEntityMatrix_ = new SettledEntityMatrix(settledEntityMatrixNode);
                }
            }
        }
 public IndexReferenceInformation(XmlNode xmlNode)
 {
     XmlNodeList indexNameNodeList = xmlNode.SelectNodes("indexName");
     if (indexNameNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in indexNameNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 indexNameIDRef = item.Attributes["id"].Name;
                 IndexName ob = IndexName();
                 IDManager.SetID(indexNameIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 indexNameIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 indexName = new IndexName(item);
             }
         }
     }
     
 
     XmlNodeList indexIdNodeList = xmlNode.SelectNodes("indexId");
     
     foreach (XmlNode item in indexIdNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 indexIdIDRef = item.Attributes["id"].Name;
                 List<IndexId> ob = new List<IndexId>();
                 ob.Add(new IndexId(item));
                 IDManager.SetID(indexIdIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 indexIdIDRef = item.Attributes["href"].Name;
             }
             else
             {
             indexId.Add(new IndexId(item));
             }
         }
     }
     
 
     XmlNodeList indexSeriesNodeList = xmlNode.SelectNodes("indexSeries");
     if (indexSeriesNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in indexSeriesNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 indexSeriesIDRef = item.Attributes["id"].Name;
                 XsdTypePositiveInteger ob = XsdTypePositiveInteger();
                 IDManager.SetID(indexSeriesIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 indexSeriesIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 indexSeries = new XsdTypePositiveInteger(item);
             }
         }
     }
     
 
     XmlNodeList indexAnnexVersionNodeList = xmlNode.SelectNodes("indexAnnexVersion");
     if (indexAnnexVersionNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in indexAnnexVersionNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 indexAnnexVersionIDRef = item.Attributes["id"].Name;
                 XsdTypePositiveInteger ob = XsdTypePositiveInteger();
                 IDManager.SetID(indexAnnexVersionIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 indexAnnexVersionIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 indexAnnexVersion = new XsdTypePositiveInteger(item);
             }
         }
     }
     
 
     XmlNodeList indexAnnexDateNodeList = xmlNode.SelectNodes("indexAnnexDate");
     if (indexAnnexDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in indexAnnexDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 indexAnnexDateIDRef = item.Attributes["id"].Name;
                 XsdTypeDate ob = XsdTypeDate();
                 IDManager.SetID(indexAnnexDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 indexAnnexDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 indexAnnexDate = new XsdTypeDate(item);
             }
         }
     }
     
 
     XmlNodeList indexAnnexSourceNodeList = xmlNode.SelectNodes("indexAnnexSource");
     if (indexAnnexSourceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in indexAnnexSourceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 indexAnnexSourceIDRef = item.Attributes["id"].Name;
                 IndexAnnexSource ob = IndexAnnexSource();
                 IDManager.SetID(indexAnnexSourceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 indexAnnexSourceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 indexAnnexSource = new IndexAnnexSource(item);
             }
         }
     }
     
 
     XmlNodeList excludedReferenceEntityNodeList = xmlNode.SelectNodes("excludedReferenceEntity");
     
     foreach (XmlNode item in excludedReferenceEntityNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 excludedReferenceEntityIDRef = item.Attributes["id"].Name;
                 List<LegalEntity> ob = new List<LegalEntity>();
                 ob.Add(new LegalEntity(item));
                 IDManager.SetID(excludedReferenceEntityIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 excludedReferenceEntityIDRef = item.Attributes["href"].Name;
             }
             else
             {
             excludedReferenceEntity.Add(new LegalEntity(item));
             }
         }
     }
     
 
     XmlNodeList trancheNodeList = xmlNode.SelectNodes("tranche");
     if (trancheNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in trancheNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 trancheIDRef = item.Attributes["id"].Name;
                 Tranche ob = Tranche();
                 IDManager.SetID(trancheIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 trancheIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 tranche = new Tranche(item);
             }
         }
     }
     
 
     XmlNodeList settledEntityMatrixNodeList = xmlNode.SelectNodes("settledEntityMatrix");
     if (settledEntityMatrixNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in settledEntityMatrixNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 settledEntityMatrixIDRef = item.Attributes["id"].Name;
                 SettledEntityMatrix ob = SettledEntityMatrix();
                 IDManager.SetID(settledEntityMatrixIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 settledEntityMatrixIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 settledEntityMatrix = new SettledEntityMatrix(item);
             }
         }
     }
     
 
 }
Esempio n. 4
0
        public IndexReferenceInformation(XmlNode xmlNode)
        {
            XmlNodeList indexNameNodeList = xmlNode.SelectNodes("indexName");

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

            foreach (XmlNode item in indexNameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        indexNameIDRef = item.Attributes["id"].Name;
                        IndexName ob = IndexName();
                        IDManager.SetID(indexNameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        indexNameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        indexName = new IndexName(item);
                    }
                }
            }


            XmlNodeList indexIdNodeList = xmlNode.SelectNodes("indexId");

            foreach (XmlNode item in indexIdNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        indexIdIDRef = item.Attributes["id"].Name;
                        List <IndexId> ob = new List <IndexId>();
                        ob.Add(new IndexId(item));
                        IDManager.SetID(indexIdIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        indexIdIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        indexId.Add(new IndexId(item));
                    }
                }
            }


            XmlNodeList indexSeriesNodeList = xmlNode.SelectNodes("indexSeries");

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

            foreach (XmlNode item in indexSeriesNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        indexSeriesIDRef = item.Attributes["id"].Name;
                        XsdTypePositiveInteger ob = XsdTypePositiveInteger();
                        IDManager.SetID(indexSeriesIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        indexSeriesIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        indexSeries = new XsdTypePositiveInteger(item);
                    }
                }
            }


            XmlNodeList indexAnnexVersionNodeList = xmlNode.SelectNodes("indexAnnexVersion");

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

            foreach (XmlNode item in indexAnnexVersionNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        indexAnnexVersionIDRef = item.Attributes["id"].Name;
                        XsdTypePositiveInteger ob = XsdTypePositiveInteger();
                        IDManager.SetID(indexAnnexVersionIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        indexAnnexVersionIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        indexAnnexVersion = new XsdTypePositiveInteger(item);
                    }
                }
            }


            XmlNodeList indexAnnexDateNodeList = xmlNode.SelectNodes("indexAnnexDate");

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

            foreach (XmlNode item in indexAnnexDateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        indexAnnexDateIDRef = item.Attributes["id"].Name;
                        XsdTypeDate ob = XsdTypeDate();
                        IDManager.SetID(indexAnnexDateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        indexAnnexDateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        indexAnnexDate = new XsdTypeDate(item);
                    }
                }
            }


            XmlNodeList indexAnnexSourceNodeList = xmlNode.SelectNodes("indexAnnexSource");

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

            foreach (XmlNode item in indexAnnexSourceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        indexAnnexSourceIDRef = item.Attributes["id"].Name;
                        IndexAnnexSource ob = IndexAnnexSource();
                        IDManager.SetID(indexAnnexSourceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        indexAnnexSourceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        indexAnnexSource = new IndexAnnexSource(item);
                    }
                }
            }


            XmlNodeList excludedReferenceEntityNodeList = xmlNode.SelectNodes("excludedReferenceEntity");

            foreach (XmlNode item in excludedReferenceEntityNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        excludedReferenceEntityIDRef = item.Attributes["id"].Name;
                        List <LegalEntity> ob = new List <LegalEntity>();
                        ob.Add(new LegalEntity(item));
                        IDManager.SetID(excludedReferenceEntityIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        excludedReferenceEntityIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        excludedReferenceEntity.Add(new LegalEntity(item));
                    }
                }
            }


            XmlNodeList trancheNodeList = xmlNode.SelectNodes("tranche");

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

            foreach (XmlNode item in trancheNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        trancheIDRef = item.Attributes["id"].Name;
                        Tranche ob = Tranche();
                        IDManager.SetID(trancheIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        trancheIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        tranche = new Tranche(item);
                    }
                }
            }


            XmlNodeList settledEntityMatrixNodeList = xmlNode.SelectNodes("settledEntityMatrix");

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

            foreach (XmlNode item in settledEntityMatrixNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        settledEntityMatrixIDRef = item.Attributes["id"].Name;
                        SettledEntityMatrix ob = SettledEntityMatrix();
                        IDManager.SetID(settledEntityMatrixIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        settledEntityMatrixIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        settledEntityMatrix = new SettledEntityMatrix(item);
                    }
                }
            }
        }