public PeriodicPayment(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList paymentFrequencyNodeList = xmlNode.SelectNodes("paymentFrequency");

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

            foreach (XmlNode item in paymentFrequencyNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        paymentFrequencyIDRef = item.Attributes["id"].Name;
                        Period ob = Period();
                        IDManager.SetID(paymentFrequencyIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        paymentFrequencyIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        paymentFrequency = new Period(item);
                    }
                }
            }


            XmlNodeList firstPeriodStartDateNodeList = xmlNode.SelectNodes("firstPeriodStartDate");

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

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


            XmlNodeList firstPaymentDateNodeList = xmlNode.SelectNodes("firstPaymentDate");

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

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


            XmlNodeList lastRegularPaymentDateNodeList = xmlNode.SelectNodes("lastRegularPaymentDate");

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

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


            XmlNodeList rollConventionNodeList = xmlNode.SelectNodes("rollConvention");

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

            foreach (XmlNode item in rollConventionNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        rollConventionIDRef = item.Attributes["id"].Name;
                        RollConventionEnum ob = RollConventionEnum();
                        IDManager.SetID(rollConventionIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        rollConventionIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        rollConvention = new RollConventionEnum(item);
                    }
                }
            }


            XmlNodeList fixedAmountNodeList = xmlNode.SelectNodes("fixedAmount");

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

            foreach (XmlNode item in fixedAmountNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        fixedAmountIDRef = item.Attributes["id"].Name;
                        Money ob = Money();
                        IDManager.SetID(fixedAmountIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        fixedAmountIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        fixedAmount = new Money(item);
                    }
                }
            }


            XmlNodeList fixedAmountCalculationNodeList = xmlNode.SelectNodes("fixedAmountCalculation");

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

            foreach (XmlNode item in fixedAmountCalculationNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        fixedAmountCalculationIDRef = item.Attributes["id"].Name;
                        FixedAmountCalculation ob = FixedAmountCalculation();
                        IDManager.SetID(fixedAmountCalculationIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        fixedAmountCalculationIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        fixedAmountCalculation = new FixedAmountCalculation(item);
                    }
                }
            }


            XmlNodeList adjustedPaymentDatesNodeList = xmlNode.SelectNodes("adjustedPaymentDates");

            foreach (XmlNode item in adjustedPaymentDatesNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        adjustedPaymentDatesIDRef = item.Attributes["id"].Name;
                        List <AdjustedPaymentDates> ob = new List <AdjustedPaymentDates>();
                        ob.Add(new AdjustedPaymentDates(item));
                        IDManager.SetID(adjustedPaymentDatesIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        adjustedPaymentDatesIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        adjustedPaymentDates.Add(new AdjustedPaymentDates(item));
                    }
                }
            }
        }
 public PeriodicPayment(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode paymentFrequencyNode = xmlNode.SelectSingleNode("paymentFrequency");
     
     if (paymentFrequencyNode != null)
     {
         if (paymentFrequencyNode.Attributes["href"] != null || paymentFrequencyNode.Attributes["id"] != null) 
         {
             if (paymentFrequencyNode.Attributes["id"] != null) 
             {
                 paymentFrequencyIDRef_ = paymentFrequencyNode.Attributes["id"].Value;
                 Period ob = new Period(paymentFrequencyNode);
                 IDManager.SetID(paymentFrequencyIDRef_, ob);
             }
             else if (paymentFrequencyNode.Attributes["href"] != null)
             {
                 paymentFrequencyIDRef_ = paymentFrequencyNode.Attributes["href"].Value;
             }
             else
             {
                 paymentFrequency_ = new Period(paymentFrequencyNode);
             }
         }
         else
         {
             paymentFrequency_ = new Period(paymentFrequencyNode);
         }
     }
     
 
     XmlNode firstPeriodStartDateNode = xmlNode.SelectSingleNode("firstPeriodStartDate");
     
     if (firstPeriodStartDateNode != null)
     {
         if (firstPeriodStartDateNode.Attributes["href"] != null || firstPeriodStartDateNode.Attributes["id"] != null) 
         {
             if (firstPeriodStartDateNode.Attributes["id"] != null) 
             {
                 firstPeriodStartDateIDRef_ = firstPeriodStartDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(firstPeriodStartDateNode);
                 IDManager.SetID(firstPeriodStartDateIDRef_, ob);
             }
             else if (firstPeriodStartDateNode.Attributes["href"] != null)
             {
                 firstPeriodStartDateIDRef_ = firstPeriodStartDateNode.Attributes["href"].Value;
             }
             else
             {
                 firstPeriodStartDate_ = new XsdTypeDate(firstPeriodStartDateNode);
             }
         }
         else
         {
             firstPeriodStartDate_ = new XsdTypeDate(firstPeriodStartDateNode);
         }
     }
     
 
     XmlNode firstPaymentDateNode = xmlNode.SelectSingleNode("firstPaymentDate");
     
     if (firstPaymentDateNode != null)
     {
         if (firstPaymentDateNode.Attributes["href"] != null || firstPaymentDateNode.Attributes["id"] != null) 
         {
             if (firstPaymentDateNode.Attributes["id"] != null) 
             {
                 firstPaymentDateIDRef_ = firstPaymentDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(firstPaymentDateNode);
                 IDManager.SetID(firstPaymentDateIDRef_, ob);
             }
             else if (firstPaymentDateNode.Attributes["href"] != null)
             {
                 firstPaymentDateIDRef_ = firstPaymentDateNode.Attributes["href"].Value;
             }
             else
             {
                 firstPaymentDate_ = new XsdTypeDate(firstPaymentDateNode);
             }
         }
         else
         {
             firstPaymentDate_ = new XsdTypeDate(firstPaymentDateNode);
         }
     }
     
 
     XmlNode lastRegularPaymentDateNode = xmlNode.SelectSingleNode("lastRegularPaymentDate");
     
     if (lastRegularPaymentDateNode != null)
     {
         if (lastRegularPaymentDateNode.Attributes["href"] != null || lastRegularPaymentDateNode.Attributes["id"] != null) 
         {
             if (lastRegularPaymentDateNode.Attributes["id"] != null) 
             {
                 lastRegularPaymentDateIDRef_ = lastRegularPaymentDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(lastRegularPaymentDateNode);
                 IDManager.SetID(lastRegularPaymentDateIDRef_, ob);
             }
             else if (lastRegularPaymentDateNode.Attributes["href"] != null)
             {
                 lastRegularPaymentDateIDRef_ = lastRegularPaymentDateNode.Attributes["href"].Value;
             }
             else
             {
                 lastRegularPaymentDate_ = new XsdTypeDate(lastRegularPaymentDateNode);
             }
         }
         else
         {
             lastRegularPaymentDate_ = new XsdTypeDate(lastRegularPaymentDateNode);
         }
     }
     
 
     XmlNode rollConventionNode = xmlNode.SelectSingleNode("rollConvention");
     
     if (rollConventionNode != null)
     {
         if (rollConventionNode.Attributes["href"] != null || rollConventionNode.Attributes["id"] != null) 
         {
             if (rollConventionNode.Attributes["id"] != null) 
             {
                 rollConventionIDRef_ = rollConventionNode.Attributes["id"].Value;
                 RollConventionEnum ob = new RollConventionEnum(rollConventionNode);
                 IDManager.SetID(rollConventionIDRef_, ob);
             }
             else if (rollConventionNode.Attributes["href"] != null)
             {
                 rollConventionIDRef_ = rollConventionNode.Attributes["href"].Value;
             }
             else
             {
                 rollConvention_ = new RollConventionEnum(rollConventionNode);
             }
         }
         else
         {
             rollConvention_ = new RollConventionEnum(rollConventionNode);
         }
     }
     
 
     XmlNode fixedAmountNode = xmlNode.SelectSingleNode("fixedAmount");
     
     if (fixedAmountNode != null)
     {
         if (fixedAmountNode.Attributes["href"] != null || fixedAmountNode.Attributes["id"] != null) 
         {
             if (fixedAmountNode.Attributes["id"] != null) 
             {
                 fixedAmountIDRef_ = fixedAmountNode.Attributes["id"].Value;
                 Money ob = new Money(fixedAmountNode);
                 IDManager.SetID(fixedAmountIDRef_, ob);
             }
             else if (fixedAmountNode.Attributes["href"] != null)
             {
                 fixedAmountIDRef_ = fixedAmountNode.Attributes["href"].Value;
             }
             else
             {
                 fixedAmount_ = new Money(fixedAmountNode);
             }
         }
         else
         {
             fixedAmount_ = new Money(fixedAmountNode);
         }
     }
     
 
     XmlNode fixedAmountCalculationNode = xmlNode.SelectSingleNode("fixedAmountCalculation");
     
     if (fixedAmountCalculationNode != null)
     {
         if (fixedAmountCalculationNode.Attributes["href"] != null || fixedAmountCalculationNode.Attributes["id"] != null) 
         {
             if (fixedAmountCalculationNode.Attributes["id"] != null) 
             {
                 fixedAmountCalculationIDRef_ = fixedAmountCalculationNode.Attributes["id"].Value;
                 FixedAmountCalculation ob = new FixedAmountCalculation(fixedAmountCalculationNode);
                 IDManager.SetID(fixedAmountCalculationIDRef_, ob);
             }
             else if (fixedAmountCalculationNode.Attributes["href"] != null)
             {
                 fixedAmountCalculationIDRef_ = fixedAmountCalculationNode.Attributes["href"].Value;
             }
             else
             {
                 fixedAmountCalculation_ = new FixedAmountCalculation(fixedAmountCalculationNode);
             }
         }
         else
         {
             fixedAmountCalculation_ = new FixedAmountCalculation(fixedAmountCalculationNode);
         }
     }
     
 
     XmlNodeList adjustedPaymentDatesNodeList = xmlNode.SelectNodes("adjustedPaymentDates");
     
     if (adjustedPaymentDatesNodeList != null)
     {
         this.adjustedPaymentDates_ = new List<AdjustedPaymentDates>();
         foreach (XmlNode item in adjustedPaymentDatesNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     adjustedPaymentDatesIDRef_ = item.Attributes["id"].Value;
                     adjustedPaymentDates_.Add(new AdjustedPaymentDates(item));
                     IDManager.SetID(adjustedPaymentDatesIDRef_, adjustedPaymentDates_[adjustedPaymentDates_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     adjustedPaymentDatesIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 adjustedPaymentDates_.Add(new AdjustedPaymentDates(item));
                 }
             }
             else
             {
                 adjustedPaymentDates_.Add(new AdjustedPaymentDates(item));
             }
         }
     }
     
 
 }
예제 #3
0
        public PeriodicPayment(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode paymentFrequencyNode = xmlNode.SelectSingleNode("paymentFrequency");

            if (paymentFrequencyNode != null)
            {
                if (paymentFrequencyNode.Attributes["href"] != null || paymentFrequencyNode.Attributes["id"] != null)
                {
                    if (paymentFrequencyNode.Attributes["id"] != null)
                    {
                        paymentFrequencyIDRef_ = paymentFrequencyNode.Attributes["id"].Value;
                        Period ob = new Period(paymentFrequencyNode);
                        IDManager.SetID(paymentFrequencyIDRef_, ob);
                    }
                    else if (paymentFrequencyNode.Attributes["href"] != null)
                    {
                        paymentFrequencyIDRef_ = paymentFrequencyNode.Attributes["href"].Value;
                    }
                    else
                    {
                        paymentFrequency_ = new Period(paymentFrequencyNode);
                    }
                }
                else
                {
                    paymentFrequency_ = new Period(paymentFrequencyNode);
                }
            }


            XmlNode firstPeriodStartDateNode = xmlNode.SelectSingleNode("firstPeriodStartDate");

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


            XmlNode firstPaymentDateNode = xmlNode.SelectSingleNode("firstPaymentDate");

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


            XmlNode lastRegularPaymentDateNode = xmlNode.SelectSingleNode("lastRegularPaymentDate");

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


            XmlNode rollConventionNode = xmlNode.SelectSingleNode("rollConvention");

            if (rollConventionNode != null)
            {
                if (rollConventionNode.Attributes["href"] != null || rollConventionNode.Attributes["id"] != null)
                {
                    if (rollConventionNode.Attributes["id"] != null)
                    {
                        rollConventionIDRef_ = rollConventionNode.Attributes["id"].Value;
                        RollConventionEnum ob = new RollConventionEnum(rollConventionNode);
                        IDManager.SetID(rollConventionIDRef_, ob);
                    }
                    else if (rollConventionNode.Attributes["href"] != null)
                    {
                        rollConventionIDRef_ = rollConventionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        rollConvention_ = new RollConventionEnum(rollConventionNode);
                    }
                }
                else
                {
                    rollConvention_ = new RollConventionEnum(rollConventionNode);
                }
            }


            XmlNode fixedAmountNode = xmlNode.SelectSingleNode("fixedAmount");

            if (fixedAmountNode != null)
            {
                if (fixedAmountNode.Attributes["href"] != null || fixedAmountNode.Attributes["id"] != null)
                {
                    if (fixedAmountNode.Attributes["id"] != null)
                    {
                        fixedAmountIDRef_ = fixedAmountNode.Attributes["id"].Value;
                        Money ob = new Money(fixedAmountNode);
                        IDManager.SetID(fixedAmountIDRef_, ob);
                    }
                    else if (fixedAmountNode.Attributes["href"] != null)
                    {
                        fixedAmountIDRef_ = fixedAmountNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fixedAmount_ = new Money(fixedAmountNode);
                    }
                }
                else
                {
                    fixedAmount_ = new Money(fixedAmountNode);
                }
            }


            XmlNode fixedAmountCalculationNode = xmlNode.SelectSingleNode("fixedAmountCalculation");

            if (fixedAmountCalculationNode != null)
            {
                if (fixedAmountCalculationNode.Attributes["href"] != null || fixedAmountCalculationNode.Attributes["id"] != null)
                {
                    if (fixedAmountCalculationNode.Attributes["id"] != null)
                    {
                        fixedAmountCalculationIDRef_ = fixedAmountCalculationNode.Attributes["id"].Value;
                        FixedAmountCalculation ob = new FixedAmountCalculation(fixedAmountCalculationNode);
                        IDManager.SetID(fixedAmountCalculationIDRef_, ob);
                    }
                    else if (fixedAmountCalculationNode.Attributes["href"] != null)
                    {
                        fixedAmountCalculationIDRef_ = fixedAmountCalculationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fixedAmountCalculation_ = new FixedAmountCalculation(fixedAmountCalculationNode);
                    }
                }
                else
                {
                    fixedAmountCalculation_ = new FixedAmountCalculation(fixedAmountCalculationNode);
                }
            }


            XmlNodeList adjustedPaymentDatesNodeList = xmlNode.SelectNodes("adjustedPaymentDates");

            if (adjustedPaymentDatesNodeList != null)
            {
                this.adjustedPaymentDates_ = new List <AdjustedPaymentDates>();
                foreach (XmlNode item in adjustedPaymentDatesNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            adjustedPaymentDatesIDRef_ = item.Attributes["id"].Value;
                            adjustedPaymentDates_.Add(new AdjustedPaymentDates(item));
                            IDManager.SetID(adjustedPaymentDatesIDRef_, adjustedPaymentDates_[adjustedPaymentDates_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            adjustedPaymentDatesIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            adjustedPaymentDates_.Add(new AdjustedPaymentDates(item));
                        }
                    }
                    else
                    {
                        adjustedPaymentDates_.Add(new AdjustedPaymentDates(item));
                    }
                }
            }
        }
 public PeriodicPayment(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList paymentFrequencyNodeList = xmlNode.SelectNodes("paymentFrequency");
     if (paymentFrequencyNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in paymentFrequencyNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 paymentFrequencyIDRef = item.Attributes["id"].Name;
                 Period ob = Period();
                 IDManager.SetID(paymentFrequencyIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 paymentFrequencyIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 paymentFrequency = new Period(item);
             }
         }
     }
     
 
     XmlNodeList firstPeriodStartDateNodeList = xmlNode.SelectNodes("firstPeriodStartDate");
     if (firstPeriodStartDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in firstPeriodStartDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 firstPeriodStartDateIDRef = item.Attributes["id"].Name;
                 XsdTypeDate ob = XsdTypeDate();
                 IDManager.SetID(firstPeriodStartDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 firstPeriodStartDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 firstPeriodStartDate = new XsdTypeDate(item);
             }
         }
     }
     
 
     XmlNodeList firstPaymentDateNodeList = xmlNode.SelectNodes("firstPaymentDate");
     if (firstPaymentDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in firstPaymentDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 firstPaymentDateIDRef = item.Attributes["id"].Name;
                 XsdTypeDate ob = XsdTypeDate();
                 IDManager.SetID(firstPaymentDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 firstPaymentDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 firstPaymentDate = new XsdTypeDate(item);
             }
         }
     }
     
 
     XmlNodeList lastRegularPaymentDateNodeList = xmlNode.SelectNodes("lastRegularPaymentDate");
     if (lastRegularPaymentDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in lastRegularPaymentDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 lastRegularPaymentDateIDRef = item.Attributes["id"].Name;
                 XsdTypeDate ob = XsdTypeDate();
                 IDManager.SetID(lastRegularPaymentDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 lastRegularPaymentDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 lastRegularPaymentDate = new XsdTypeDate(item);
             }
         }
     }
     
 
     XmlNodeList rollConventionNodeList = xmlNode.SelectNodes("rollConvention");
     if (rollConventionNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in rollConventionNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 rollConventionIDRef = item.Attributes["id"].Name;
                 RollConventionEnum ob = RollConventionEnum();
                 IDManager.SetID(rollConventionIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 rollConventionIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 rollConvention = new RollConventionEnum(item);
             }
         }
     }
     
 
     XmlNodeList fixedAmountNodeList = xmlNode.SelectNodes("fixedAmount");
     if (fixedAmountNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in fixedAmountNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 fixedAmountIDRef = item.Attributes["id"].Name;
                 Money ob = Money();
                 IDManager.SetID(fixedAmountIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 fixedAmountIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 fixedAmount = new Money(item);
             }
         }
     }
     
 
     XmlNodeList fixedAmountCalculationNodeList = xmlNode.SelectNodes("fixedAmountCalculation");
     if (fixedAmountCalculationNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in fixedAmountCalculationNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 fixedAmountCalculationIDRef = item.Attributes["id"].Name;
                 FixedAmountCalculation ob = FixedAmountCalculation();
                 IDManager.SetID(fixedAmountCalculationIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 fixedAmountCalculationIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 fixedAmountCalculation = new FixedAmountCalculation(item);
             }
         }
     }
     
 
     XmlNodeList adjustedPaymentDatesNodeList = xmlNode.SelectNodes("adjustedPaymentDates");
     
     foreach (XmlNode item in adjustedPaymentDatesNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 adjustedPaymentDatesIDRef = item.Attributes["id"].Name;
                 List<AdjustedPaymentDates> ob = new List<AdjustedPaymentDates>();
                 ob.Add(new AdjustedPaymentDates(item));
                 IDManager.SetID(adjustedPaymentDatesIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 adjustedPaymentDatesIDRef = item.Attributes["href"].Name;
             }
             else
             {
             adjustedPaymentDates.Add(new AdjustedPaymentDates(item));
             }
         }
     }
     
 
 }