public FallbackReferencePrice(XmlNode xmlNode)
 {
     XmlNode valuationPostponementNode = xmlNode.SelectSingleNode("valuationPostponement");
     
     if (valuationPostponementNode != null)
     {
         if (valuationPostponementNode.Attributes["href"] != null || valuationPostponementNode.Attributes["id"] != null) 
         {
             if (valuationPostponementNode.Attributes["id"] != null) 
             {
                 valuationPostponementIDRef_ = valuationPostponementNode.Attributes["id"].Value;
                 ValuationPostponement ob = new ValuationPostponement(valuationPostponementNode);
                 IDManager.SetID(valuationPostponementIDRef_, ob);
             }
             else if (valuationPostponementNode.Attributes["href"] != null)
             {
                 valuationPostponementIDRef_ = valuationPostponementNode.Attributes["href"].Value;
             }
             else
             {
                 valuationPostponement_ = new ValuationPostponement(valuationPostponementNode);
             }
         }
         else
         {
             valuationPostponement_ = new ValuationPostponement(valuationPostponementNode);
         }
     }
     
 
     XmlNodeList fallbackSettlementRateOptionNodeList = xmlNode.SelectNodes("fallbackSettlementRateOption");
     
     if (fallbackSettlementRateOptionNodeList != null)
     {
         this.fallbackSettlementRateOption_ = new List<SettlementRateOption>();
         foreach (XmlNode item in fallbackSettlementRateOptionNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     fallbackSettlementRateOptionIDRef_ = item.Attributes["id"].Value;
                     fallbackSettlementRateOption_.Add(new SettlementRateOption(item));
                     IDManager.SetID(fallbackSettlementRateOptionIDRef_, fallbackSettlementRateOption_[fallbackSettlementRateOption_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     fallbackSettlementRateOptionIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 fallbackSettlementRateOption_.Add(new SettlementRateOption(item));
                 }
             }
             else
             {
                 fallbackSettlementRateOption_.Add(new SettlementRateOption(item));
             }
         }
     }
     
 
     XmlNode fallbackSurveyValuationPostponenmentNode = xmlNode.SelectSingleNode("fallbackSurveyValuationPostponenment");
     
     if (fallbackSurveyValuationPostponenmentNode != null)
     {
         if (fallbackSurveyValuationPostponenmentNode.Attributes["href"] != null || fallbackSurveyValuationPostponenmentNode.Attributes["id"] != null) 
         {
             if (fallbackSurveyValuationPostponenmentNode.Attributes["id"] != null) 
             {
                 fallbackSurveyValuationPostponenmentIDRef_ = fallbackSurveyValuationPostponenmentNode.Attributes["id"].Value;
                 Empty ob = new Empty(fallbackSurveyValuationPostponenmentNode);
                 IDManager.SetID(fallbackSurveyValuationPostponenmentIDRef_, ob);
             }
             else if (fallbackSurveyValuationPostponenmentNode.Attributes["href"] != null)
             {
                 fallbackSurveyValuationPostponenmentIDRef_ = fallbackSurveyValuationPostponenmentNode.Attributes["href"].Value;
             }
             else
             {
                 fallbackSurveyValuationPostponenment_ = new Empty(fallbackSurveyValuationPostponenmentNode);
             }
         }
         else
         {
             fallbackSurveyValuationPostponenment_ = new Empty(fallbackSurveyValuationPostponenmentNode);
         }
     }
     
 
     XmlNode calculationAgentDeterminationNode = xmlNode.SelectSingleNode("calculationAgentDetermination");
     
     if (calculationAgentDeterminationNode != null)
     {
         if (calculationAgentDeterminationNode.Attributes["href"] != null || calculationAgentDeterminationNode.Attributes["id"] != null) 
         {
             if (calculationAgentDeterminationNode.Attributes["id"] != null) 
             {
                 calculationAgentDeterminationIDRef_ = calculationAgentDeterminationNode.Attributes["id"].Value;
                 CalculationAgent ob = new CalculationAgent(calculationAgentDeterminationNode);
                 IDManager.SetID(calculationAgentDeterminationIDRef_, ob);
             }
             else if (calculationAgentDeterminationNode.Attributes["href"] != null)
             {
                 calculationAgentDeterminationIDRef_ = calculationAgentDeterminationNode.Attributes["href"].Value;
             }
             else
             {
                 calculationAgentDetermination_ = new CalculationAgent(calculationAgentDeterminationNode);
             }
         }
         else
         {
             calculationAgentDetermination_ = new CalculationAgent(calculationAgentDeterminationNode);
         }
     }
     
 
 }
 public FallbackReferencePrice(XmlNode xmlNode)
 {
     XmlNodeList valuationPostponementNodeList = xmlNode.SelectNodes("valuationPostponement");
     if (valuationPostponementNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in valuationPostponementNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 valuationPostponementIDRef = item.Attributes["id"].Name;
                 ValuationPostponement ob = ValuationPostponement();
                 IDManager.SetID(valuationPostponementIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 valuationPostponementIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 valuationPostponement = new ValuationPostponement(item);
             }
         }
     }
     
 
     XmlNodeList fallbackSettlementRateOptionNodeList = xmlNode.SelectNodes("fallbackSettlementRateOption");
     
     foreach (XmlNode item in fallbackSettlementRateOptionNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 fallbackSettlementRateOptionIDRef = item.Attributes["id"].Name;
                 List<SettlementRateOption> ob = new List<SettlementRateOption>();
                 ob.Add(new SettlementRateOption(item));
                 IDManager.SetID(fallbackSettlementRateOptionIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 fallbackSettlementRateOptionIDRef = item.Attributes["href"].Name;
             }
             else
             {
             fallbackSettlementRateOption.Add(new SettlementRateOption(item));
             }
         }
     }
     
 
     XmlNodeList fallbackSurveyValuationPostponenmentNodeList = xmlNode.SelectNodes("fallbackSurveyValuationPostponenment");
     if (fallbackSurveyValuationPostponenmentNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in fallbackSurveyValuationPostponenmentNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 fallbackSurveyValuationPostponenmentIDRef = item.Attributes["id"].Name;
                 Empty ob = Empty();
                 IDManager.SetID(fallbackSurveyValuationPostponenmentIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 fallbackSurveyValuationPostponenmentIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 fallbackSurveyValuationPostponenment = new Empty(item);
             }
         }
     }
     
 
     XmlNodeList calculationAgentDeterminationNodeList = xmlNode.SelectNodes("calculationAgentDetermination");
     if (calculationAgentDeterminationNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in calculationAgentDeterminationNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 calculationAgentDeterminationIDRef = item.Attributes["id"].Name;
                 CalculationAgent ob = CalculationAgent();
                 IDManager.SetID(calculationAgentDeterminationIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 calculationAgentDeterminationIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 calculationAgentDetermination = new CalculationAgent(item);
             }
         }
     }
     
 
 }
Example #3
0
        public FallbackReferencePrice(XmlNode xmlNode)
        {
            XmlNodeList valuationPostponementNodeList = xmlNode.SelectNodes("valuationPostponement");

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

            foreach (XmlNode item in valuationPostponementNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        valuationPostponementIDRef = item.Attributes["id"].Name;
                        ValuationPostponement ob = ValuationPostponement();
                        IDManager.SetID(valuationPostponementIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        valuationPostponementIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        valuationPostponement = new ValuationPostponement(item);
                    }
                }
            }


            XmlNodeList fallbackSettlementRateOptionNodeList = xmlNode.SelectNodes("fallbackSettlementRateOption");

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


            XmlNodeList fallbackSurveyValuationPostponenmentNodeList = xmlNode.SelectNodes("fallbackSurveyValuationPostponenment");

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

            foreach (XmlNode item in fallbackSurveyValuationPostponenmentNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        fallbackSurveyValuationPostponenmentIDRef = item.Attributes["id"].Name;
                        Empty ob = Empty();
                        IDManager.SetID(fallbackSurveyValuationPostponenmentIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        fallbackSurveyValuationPostponenmentIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        fallbackSurveyValuationPostponenment = new Empty(item);
                    }
                }
            }


            XmlNodeList calculationAgentDeterminationNodeList = xmlNode.SelectNodes("calculationAgentDetermination");

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

            foreach (XmlNode item in calculationAgentDeterminationNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        calculationAgentDeterminationIDRef = item.Attributes["id"].Name;
                        CalculationAgent ob = CalculationAgent();
                        IDManager.SetID(calculationAgentDeterminationIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        calculationAgentDeterminationIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        calculationAgentDetermination = new CalculationAgent(item);
                    }
                }
            }
        }
        public FallbackReferencePrice(XmlNode xmlNode)
        {
            XmlNode valuationPostponementNode = xmlNode.SelectSingleNode("valuationPostponement");

            if (valuationPostponementNode != null)
            {
                if (valuationPostponementNode.Attributes["href"] != null || valuationPostponementNode.Attributes["id"] != null)
                {
                    if (valuationPostponementNode.Attributes["id"] != null)
                    {
                        valuationPostponementIDRef_ = valuationPostponementNode.Attributes["id"].Value;
                        ValuationPostponement ob = new ValuationPostponement(valuationPostponementNode);
                        IDManager.SetID(valuationPostponementIDRef_, ob);
                    }
                    else if (valuationPostponementNode.Attributes["href"] != null)
                    {
                        valuationPostponementIDRef_ = valuationPostponementNode.Attributes["href"].Value;
                    }
                    else
                    {
                        valuationPostponement_ = new ValuationPostponement(valuationPostponementNode);
                    }
                }
                else
                {
                    valuationPostponement_ = new ValuationPostponement(valuationPostponementNode);
                }
            }


            XmlNodeList fallbackSettlementRateOptionNodeList = xmlNode.SelectNodes("fallbackSettlementRateOption");

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


            XmlNode fallbackSurveyValuationPostponenmentNode = xmlNode.SelectSingleNode("fallbackSurveyValuationPostponenment");

            if (fallbackSurveyValuationPostponenmentNode != null)
            {
                if (fallbackSurveyValuationPostponenmentNode.Attributes["href"] != null || fallbackSurveyValuationPostponenmentNode.Attributes["id"] != null)
                {
                    if (fallbackSurveyValuationPostponenmentNode.Attributes["id"] != null)
                    {
                        fallbackSurveyValuationPostponenmentIDRef_ = fallbackSurveyValuationPostponenmentNode.Attributes["id"].Value;
                        Empty ob = new Empty(fallbackSurveyValuationPostponenmentNode);
                        IDManager.SetID(fallbackSurveyValuationPostponenmentIDRef_, ob);
                    }
                    else if (fallbackSurveyValuationPostponenmentNode.Attributes["href"] != null)
                    {
                        fallbackSurveyValuationPostponenmentIDRef_ = fallbackSurveyValuationPostponenmentNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fallbackSurveyValuationPostponenment_ = new Empty(fallbackSurveyValuationPostponenmentNode);
                    }
                }
                else
                {
                    fallbackSurveyValuationPostponenment_ = new Empty(fallbackSurveyValuationPostponenmentNode);
                }
            }


            XmlNode calculationAgentDeterminationNode = xmlNode.SelectSingleNode("calculationAgentDetermination");

            if (calculationAgentDeterminationNode != null)
            {
                if (calculationAgentDeterminationNode.Attributes["href"] != null || calculationAgentDeterminationNode.Attributes["id"] != null)
                {
                    if (calculationAgentDeterminationNode.Attributes["id"] != null)
                    {
                        calculationAgentDeterminationIDRef_ = calculationAgentDeterminationNode.Attributes["id"].Value;
                        CalculationAgent ob = new CalculationAgent(calculationAgentDeterminationNode);
                        IDManager.SetID(calculationAgentDeterminationIDRef_, ob);
                    }
                    else if (calculationAgentDeterminationNode.Attributes["href"] != null)
                    {
                        calculationAgentDeterminationIDRef_ = calculationAgentDeterminationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        calculationAgentDetermination_ = new CalculationAgent(calculationAgentDeterminationNode);
                    }
                }
                else
                {
                    calculationAgentDetermination_ = new CalculationAgent(calculationAgentDeterminationNode);
                }
            }
        }