コード例 #1
0
        public CommodityMarketDisruption(XmlNode xmlNode)
        {
            XmlNodeList marketDisruptionEventsNodeList = xmlNode.SelectNodes("marketDisruptionEvents");

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

            foreach (XmlNode item in marketDisruptionEventsNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        marketDisruptionEventsIDRef = item.Attributes["id"].Name;
                        MarketDisruptionEventsEnum ob = MarketDisruptionEventsEnum();
                        IDManager.SetID(marketDisruptionEventsIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        marketDisruptionEventsIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        marketDisruptionEvents = new MarketDisruptionEventsEnum(item);
                    }
                }
            }


            XmlNodeList additionalMarketDisruptionEventNodeList = xmlNode.SelectNodes("additionalMarketDisruptionEvent");

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


            XmlNodeList marketDisruptionEventNodeList = xmlNode.SelectNodes("marketDisruptionEvent");

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


            XmlNodeList disruptionFallbacksNodeList = xmlNode.SelectNodes("disruptionFallbacks");

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

            foreach (XmlNode item in disruptionFallbacksNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        disruptionFallbacksIDRef = item.Attributes["id"].Name;
                        DisruptionFallbacksEnum ob = DisruptionFallbacksEnum();
                        IDManager.SetID(disruptionFallbacksIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        disruptionFallbacksIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        disruptionFallbacks = new DisruptionFallbacksEnum(item);
                    }
                }
            }


            XmlNodeList disruptionFallbackNodeList = xmlNode.SelectNodes("disruptionFallback");

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


            XmlNodeList fallbackReferencePriceNodeList = xmlNode.SelectNodes("fallbackReferencePrice");

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

            foreach (XmlNode item in fallbackReferencePriceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        fallbackReferencePriceIDRef = item.Attributes["id"].Name;
                        Underlyer ob = Underlyer();
                        IDManager.SetID(fallbackReferencePriceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        fallbackReferencePriceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        fallbackReferencePrice = new Underlyer(item);
                    }
                }
            }


            XmlNodeList maximumNumberOfDaysOfDisruptionNodeList = xmlNode.SelectNodes("maximumNumberOfDaysOfDisruption");

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

            foreach (XmlNode item in maximumNumberOfDaysOfDisruptionNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        maximumNumberOfDaysOfDisruptionIDRef = item.Attributes["id"].Name;
                        XsdTypeNonNegativeInteger ob = XsdTypeNonNegativeInteger();
                        IDManager.SetID(maximumNumberOfDaysOfDisruptionIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        maximumNumberOfDaysOfDisruptionIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        maximumNumberOfDaysOfDisruption = new XsdTypeNonNegativeInteger(item);
                    }
                }
            }


            XmlNodeList priceMaterialityPercentageNodeList = xmlNode.SelectNodes("priceMaterialityPercentage");

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

            foreach (XmlNode item in priceMaterialityPercentageNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        priceMaterialityPercentageIDRef = item.Attributes["id"].Name;
                        XsdTypeDecimal ob = XsdTypeDecimal();
                        IDManager.SetID(priceMaterialityPercentageIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        priceMaterialityPercentageIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        priceMaterialityPercentage = new XsdTypeDecimal(item);
                    }
                }
            }


            XmlNodeList minimumFuturesContractsNodeList = xmlNode.SelectNodes("minimumFuturesContracts");

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

            foreach (XmlNode item in minimumFuturesContractsNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        minimumFuturesContractsIDRef = item.Attributes["id"].Name;
                        XsdTypePositiveInteger ob = XsdTypePositiveInteger();
                        IDManager.SetID(minimumFuturesContractsIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        minimumFuturesContractsIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        minimumFuturesContracts = new XsdTypePositiveInteger(item);
                    }
                }
            }
        }
 public CommodityMarketDisruption(XmlNode xmlNode)
 {
     XmlNode marketDisruptionEventsNode = xmlNode.SelectSingleNode("marketDisruptionEvents");
     
     if (marketDisruptionEventsNode != null)
     {
         if (marketDisruptionEventsNode.Attributes["href"] != null || marketDisruptionEventsNode.Attributes["id"] != null) 
         {
             if (marketDisruptionEventsNode.Attributes["id"] != null) 
             {
                 marketDisruptionEventsIDRef_ = marketDisruptionEventsNode.Attributes["id"].Value;
                 MarketDisruptionEventsEnum ob = new MarketDisruptionEventsEnum(marketDisruptionEventsNode);
                 IDManager.SetID(marketDisruptionEventsIDRef_, ob);
             }
             else if (marketDisruptionEventsNode.Attributes["href"] != null)
             {
                 marketDisruptionEventsIDRef_ = marketDisruptionEventsNode.Attributes["href"].Value;
             }
             else
             {
                 marketDisruptionEvents_ = new MarketDisruptionEventsEnum(marketDisruptionEventsNode);
             }
         }
         else
         {
             marketDisruptionEvents_ = new MarketDisruptionEventsEnum(marketDisruptionEventsNode);
         }
     }
     
 
     XmlNodeList additionalMarketDisruptionEventNodeList = xmlNode.SelectNodes("additionalMarketDisruptionEvent");
     
     if (additionalMarketDisruptionEventNodeList != null)
     {
         this.additionalMarketDisruptionEvent_ = new List<MarketDisruptionEvent>();
         foreach (XmlNode item in additionalMarketDisruptionEventNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     additionalMarketDisruptionEventIDRef_ = item.Attributes["id"].Value;
                     additionalMarketDisruptionEvent_.Add(new MarketDisruptionEvent(item));
                     IDManager.SetID(additionalMarketDisruptionEventIDRef_, additionalMarketDisruptionEvent_[additionalMarketDisruptionEvent_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     additionalMarketDisruptionEventIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 additionalMarketDisruptionEvent_.Add(new MarketDisruptionEvent(item));
                 }
             }
             else
             {
                 additionalMarketDisruptionEvent_.Add(new MarketDisruptionEvent(item));
             }
         }
     }
     
 
     XmlNodeList marketDisruptionEventNodeList = xmlNode.SelectNodes("marketDisruptionEvent");
     
     if (marketDisruptionEventNodeList != null)
     {
         this.marketDisruptionEvent_ = new List<MarketDisruptionEvent>();
         foreach (XmlNode item in marketDisruptionEventNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     marketDisruptionEventIDRef_ = item.Attributes["id"].Value;
                     marketDisruptionEvent_.Add(new MarketDisruptionEvent(item));
                     IDManager.SetID(marketDisruptionEventIDRef_, marketDisruptionEvent_[marketDisruptionEvent_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     marketDisruptionEventIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 marketDisruptionEvent_.Add(new MarketDisruptionEvent(item));
                 }
             }
             else
             {
                 marketDisruptionEvent_.Add(new MarketDisruptionEvent(item));
             }
         }
     }
     
 
     XmlNode disruptionFallbacksNode = xmlNode.SelectSingleNode("disruptionFallbacks");
     
     if (disruptionFallbacksNode != null)
     {
         if (disruptionFallbacksNode.Attributes["href"] != null || disruptionFallbacksNode.Attributes["id"] != null) 
         {
             if (disruptionFallbacksNode.Attributes["id"] != null) 
             {
                 disruptionFallbacksIDRef_ = disruptionFallbacksNode.Attributes["id"].Value;
                 DisruptionFallbacksEnum ob = new DisruptionFallbacksEnum(disruptionFallbacksNode);
                 IDManager.SetID(disruptionFallbacksIDRef_, ob);
             }
             else if (disruptionFallbacksNode.Attributes["href"] != null)
             {
                 disruptionFallbacksIDRef_ = disruptionFallbacksNode.Attributes["href"].Value;
             }
             else
             {
                 disruptionFallbacks_ = new DisruptionFallbacksEnum(disruptionFallbacksNode);
             }
         }
         else
         {
             disruptionFallbacks_ = new DisruptionFallbacksEnum(disruptionFallbacksNode);
         }
     }
     
 
     XmlNodeList disruptionFallbackNodeList = xmlNode.SelectNodes("disruptionFallback");
     
     if (disruptionFallbackNodeList != null)
     {
         this.disruptionFallback_ = new List<SequencedDisruptionFallback>();
         foreach (XmlNode item in disruptionFallbackNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     disruptionFallbackIDRef_ = item.Attributes["id"].Value;
                     disruptionFallback_.Add(new SequencedDisruptionFallback(item));
                     IDManager.SetID(disruptionFallbackIDRef_, disruptionFallback_[disruptionFallback_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     disruptionFallbackIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 disruptionFallback_.Add(new SequencedDisruptionFallback(item));
                 }
             }
             else
             {
                 disruptionFallback_.Add(new SequencedDisruptionFallback(item));
             }
         }
     }
     
 
     XmlNode fallbackReferencePriceNode = xmlNode.SelectSingleNode("fallbackReferencePrice");
     
     if (fallbackReferencePriceNode != null)
     {
         if (fallbackReferencePriceNode.Attributes["href"] != null || fallbackReferencePriceNode.Attributes["id"] != null) 
         {
             if (fallbackReferencePriceNode.Attributes["id"] != null) 
             {
                 fallbackReferencePriceIDRef_ = fallbackReferencePriceNode.Attributes["id"].Value;
                 Underlyer ob = new Underlyer(fallbackReferencePriceNode);
                 IDManager.SetID(fallbackReferencePriceIDRef_, ob);
             }
             else if (fallbackReferencePriceNode.Attributes["href"] != null)
             {
                 fallbackReferencePriceIDRef_ = fallbackReferencePriceNode.Attributes["href"].Value;
             }
             else
             {
                 fallbackReferencePrice_ = new Underlyer(fallbackReferencePriceNode);
             }
         }
         else
         {
             fallbackReferencePrice_ = new Underlyer(fallbackReferencePriceNode);
         }
     }
     
 
     XmlNode maximumNumberOfDaysOfDisruptionNode = xmlNode.SelectSingleNode("maximumNumberOfDaysOfDisruption");
     
     if (maximumNumberOfDaysOfDisruptionNode != null)
     {
         if (maximumNumberOfDaysOfDisruptionNode.Attributes["href"] != null || maximumNumberOfDaysOfDisruptionNode.Attributes["id"] != null) 
         {
             if (maximumNumberOfDaysOfDisruptionNode.Attributes["id"] != null) 
             {
                 maximumNumberOfDaysOfDisruptionIDRef_ = maximumNumberOfDaysOfDisruptionNode.Attributes["id"].Value;
                 XsdTypeNonNegativeInteger ob = new XsdTypeNonNegativeInteger(maximumNumberOfDaysOfDisruptionNode);
                 IDManager.SetID(maximumNumberOfDaysOfDisruptionIDRef_, ob);
             }
             else if (maximumNumberOfDaysOfDisruptionNode.Attributes["href"] != null)
             {
                 maximumNumberOfDaysOfDisruptionIDRef_ = maximumNumberOfDaysOfDisruptionNode.Attributes["href"].Value;
             }
             else
             {
                 maximumNumberOfDaysOfDisruption_ = new XsdTypeNonNegativeInteger(maximumNumberOfDaysOfDisruptionNode);
             }
         }
         else
         {
             maximumNumberOfDaysOfDisruption_ = new XsdTypeNonNegativeInteger(maximumNumberOfDaysOfDisruptionNode);
         }
     }
     
 
     XmlNode priceMaterialityPercentageNode = xmlNode.SelectSingleNode("priceMaterialityPercentage");
     
     if (priceMaterialityPercentageNode != null)
     {
         if (priceMaterialityPercentageNode.Attributes["href"] != null || priceMaterialityPercentageNode.Attributes["id"] != null) 
         {
             if (priceMaterialityPercentageNode.Attributes["id"] != null) 
             {
                 priceMaterialityPercentageIDRef_ = priceMaterialityPercentageNode.Attributes["id"].Value;
                 XsdTypeDecimal ob = new XsdTypeDecimal(priceMaterialityPercentageNode);
                 IDManager.SetID(priceMaterialityPercentageIDRef_, ob);
             }
             else if (priceMaterialityPercentageNode.Attributes["href"] != null)
             {
                 priceMaterialityPercentageIDRef_ = priceMaterialityPercentageNode.Attributes["href"].Value;
             }
             else
             {
                 priceMaterialityPercentage_ = new XsdTypeDecimal(priceMaterialityPercentageNode);
             }
         }
         else
         {
             priceMaterialityPercentage_ = new XsdTypeDecimal(priceMaterialityPercentageNode);
         }
     }
     
 
     XmlNode minimumFuturesContractsNode = xmlNode.SelectSingleNode("minimumFuturesContracts");
     
     if (minimumFuturesContractsNode != null)
     {
         if (minimumFuturesContractsNode.Attributes["href"] != null || minimumFuturesContractsNode.Attributes["id"] != null) 
         {
             if (minimumFuturesContractsNode.Attributes["id"] != null) 
             {
                 minimumFuturesContractsIDRef_ = minimumFuturesContractsNode.Attributes["id"].Value;
                 XsdTypePositiveInteger ob = new XsdTypePositiveInteger(minimumFuturesContractsNode);
                 IDManager.SetID(minimumFuturesContractsIDRef_, ob);
             }
             else if (minimumFuturesContractsNode.Attributes["href"] != null)
             {
                 minimumFuturesContractsIDRef_ = minimumFuturesContractsNode.Attributes["href"].Value;
             }
             else
             {
                 minimumFuturesContracts_ = new XsdTypePositiveInteger(minimumFuturesContractsNode);
             }
         }
         else
         {
             minimumFuturesContracts_ = new XsdTypePositiveInteger(minimumFuturesContractsNode);
         }
     }
     
 
 }
コード例 #3
0
        public CommodityMarketDisruption(XmlNode xmlNode)
        {
            XmlNode marketDisruptionEventsNode = xmlNode.SelectSingleNode("marketDisruptionEvents");

            if (marketDisruptionEventsNode != null)
            {
                if (marketDisruptionEventsNode.Attributes["href"] != null || marketDisruptionEventsNode.Attributes["id"] != null)
                {
                    if (marketDisruptionEventsNode.Attributes["id"] != null)
                    {
                        marketDisruptionEventsIDRef_ = marketDisruptionEventsNode.Attributes["id"].Value;
                        MarketDisruptionEventsEnum ob = new MarketDisruptionEventsEnum(marketDisruptionEventsNode);
                        IDManager.SetID(marketDisruptionEventsIDRef_, ob);
                    }
                    else if (marketDisruptionEventsNode.Attributes["href"] != null)
                    {
                        marketDisruptionEventsIDRef_ = marketDisruptionEventsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        marketDisruptionEvents_ = new MarketDisruptionEventsEnum(marketDisruptionEventsNode);
                    }
                }
                else
                {
                    marketDisruptionEvents_ = new MarketDisruptionEventsEnum(marketDisruptionEventsNode);
                }
            }


            XmlNodeList additionalMarketDisruptionEventNodeList = xmlNode.SelectNodes("additionalMarketDisruptionEvent");

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


            XmlNodeList marketDisruptionEventNodeList = xmlNode.SelectNodes("marketDisruptionEvent");

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


            XmlNode disruptionFallbacksNode = xmlNode.SelectSingleNode("disruptionFallbacks");

            if (disruptionFallbacksNode != null)
            {
                if (disruptionFallbacksNode.Attributes["href"] != null || disruptionFallbacksNode.Attributes["id"] != null)
                {
                    if (disruptionFallbacksNode.Attributes["id"] != null)
                    {
                        disruptionFallbacksIDRef_ = disruptionFallbacksNode.Attributes["id"].Value;
                        DisruptionFallbacksEnum ob = new DisruptionFallbacksEnum(disruptionFallbacksNode);
                        IDManager.SetID(disruptionFallbacksIDRef_, ob);
                    }
                    else if (disruptionFallbacksNode.Attributes["href"] != null)
                    {
                        disruptionFallbacksIDRef_ = disruptionFallbacksNode.Attributes["href"].Value;
                    }
                    else
                    {
                        disruptionFallbacks_ = new DisruptionFallbacksEnum(disruptionFallbacksNode);
                    }
                }
                else
                {
                    disruptionFallbacks_ = new DisruptionFallbacksEnum(disruptionFallbacksNode);
                }
            }


            XmlNodeList disruptionFallbackNodeList = xmlNode.SelectNodes("disruptionFallback");

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


            XmlNode fallbackReferencePriceNode = xmlNode.SelectSingleNode("fallbackReferencePrice");

            if (fallbackReferencePriceNode != null)
            {
                if (fallbackReferencePriceNode.Attributes["href"] != null || fallbackReferencePriceNode.Attributes["id"] != null)
                {
                    if (fallbackReferencePriceNode.Attributes["id"] != null)
                    {
                        fallbackReferencePriceIDRef_ = fallbackReferencePriceNode.Attributes["id"].Value;
                        Underlyer ob = new Underlyer(fallbackReferencePriceNode);
                        IDManager.SetID(fallbackReferencePriceIDRef_, ob);
                    }
                    else if (fallbackReferencePriceNode.Attributes["href"] != null)
                    {
                        fallbackReferencePriceIDRef_ = fallbackReferencePriceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fallbackReferencePrice_ = new Underlyer(fallbackReferencePriceNode);
                    }
                }
                else
                {
                    fallbackReferencePrice_ = new Underlyer(fallbackReferencePriceNode);
                }
            }


            XmlNode maximumNumberOfDaysOfDisruptionNode = xmlNode.SelectSingleNode("maximumNumberOfDaysOfDisruption");

            if (maximumNumberOfDaysOfDisruptionNode != null)
            {
                if (maximumNumberOfDaysOfDisruptionNode.Attributes["href"] != null || maximumNumberOfDaysOfDisruptionNode.Attributes["id"] != null)
                {
                    if (maximumNumberOfDaysOfDisruptionNode.Attributes["id"] != null)
                    {
                        maximumNumberOfDaysOfDisruptionIDRef_ = maximumNumberOfDaysOfDisruptionNode.Attributes["id"].Value;
                        XsdTypeNonNegativeInteger ob = new XsdTypeNonNegativeInteger(maximumNumberOfDaysOfDisruptionNode);
                        IDManager.SetID(maximumNumberOfDaysOfDisruptionIDRef_, ob);
                    }
                    else if (maximumNumberOfDaysOfDisruptionNode.Attributes["href"] != null)
                    {
                        maximumNumberOfDaysOfDisruptionIDRef_ = maximumNumberOfDaysOfDisruptionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        maximumNumberOfDaysOfDisruption_ = new XsdTypeNonNegativeInteger(maximumNumberOfDaysOfDisruptionNode);
                    }
                }
                else
                {
                    maximumNumberOfDaysOfDisruption_ = new XsdTypeNonNegativeInteger(maximumNumberOfDaysOfDisruptionNode);
                }
            }


            XmlNode priceMaterialityPercentageNode = xmlNode.SelectSingleNode("priceMaterialityPercentage");

            if (priceMaterialityPercentageNode != null)
            {
                if (priceMaterialityPercentageNode.Attributes["href"] != null || priceMaterialityPercentageNode.Attributes["id"] != null)
                {
                    if (priceMaterialityPercentageNode.Attributes["id"] != null)
                    {
                        priceMaterialityPercentageIDRef_ = priceMaterialityPercentageNode.Attributes["id"].Value;
                        XsdTypeDecimal ob = new XsdTypeDecimal(priceMaterialityPercentageNode);
                        IDManager.SetID(priceMaterialityPercentageIDRef_, ob);
                    }
                    else if (priceMaterialityPercentageNode.Attributes["href"] != null)
                    {
                        priceMaterialityPercentageIDRef_ = priceMaterialityPercentageNode.Attributes["href"].Value;
                    }
                    else
                    {
                        priceMaterialityPercentage_ = new XsdTypeDecimal(priceMaterialityPercentageNode);
                    }
                }
                else
                {
                    priceMaterialityPercentage_ = new XsdTypeDecimal(priceMaterialityPercentageNode);
                }
            }


            XmlNode minimumFuturesContractsNode = xmlNode.SelectSingleNode("minimumFuturesContracts");

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