public CalculationPeriodAmount(XmlNode xmlNode)
 {
     XmlNode calculationNode = xmlNode.SelectSingleNode("calculation");
     
     if (calculationNode != null)
     {
         if (calculationNode.Attributes["href"] != null || calculationNode.Attributes["id"] != null) 
         {
             if (calculationNode.Attributes["id"] != null) 
             {
                 calculationIDRef_ = calculationNode.Attributes["id"].Value;
                 Calculation ob = new Calculation(calculationNode);
                 IDManager.SetID(calculationIDRef_, ob);
             }
             else if (calculationNode.Attributes["href"] != null)
             {
                 calculationIDRef_ = calculationNode.Attributes["href"].Value;
             }
             else
             {
                 calculation_ = new Calculation(calculationNode);
             }
         }
         else
         {
             calculation_ = new Calculation(calculationNode);
         }
     }
     
 
     XmlNode knownAmountScheduleNode = xmlNode.SelectSingleNode("knownAmountSchedule");
     
     if (knownAmountScheduleNode != null)
     {
         if (knownAmountScheduleNode.Attributes["href"] != null || knownAmountScheduleNode.Attributes["id"] != null) 
         {
             if (knownAmountScheduleNode.Attributes["id"] != null) 
             {
                 knownAmountScheduleIDRef_ = knownAmountScheduleNode.Attributes["id"].Value;
                 AmountSchedule ob = new AmountSchedule(knownAmountScheduleNode);
                 IDManager.SetID(knownAmountScheduleIDRef_, ob);
             }
             else if (knownAmountScheduleNode.Attributes["href"] != null)
             {
                 knownAmountScheduleIDRef_ = knownAmountScheduleNode.Attributes["href"].Value;
             }
             else
             {
                 knownAmountSchedule_ = new AmountSchedule(knownAmountScheduleNode);
             }
         }
         else
         {
             knownAmountSchedule_ = new AmountSchedule(knownAmountScheduleNode);
         }
     }
     
 
 }
 public CalculationPeriodAmount(XmlNode xmlNode)
 {
     XmlNodeList calculationNodeList = xmlNode.SelectNodes("calculation");
     if (calculationNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in calculationNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 calculationIDRef = item.Attributes["id"].Name;
                 Calculation ob = Calculation();
                 IDManager.SetID(calculationIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 calculationIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 calculation = new Calculation(item);
             }
         }
     }
     
 
     XmlNodeList knownAmountScheduleNodeList = xmlNode.SelectNodes("knownAmountSchedule");
     if (knownAmountScheduleNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in knownAmountScheduleNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 knownAmountScheduleIDRef = item.Attributes["id"].Name;
                 AmountSchedule ob = AmountSchedule();
                 IDManager.SetID(knownAmountScheduleIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 knownAmountScheduleIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 knownAmountSchedule = new AmountSchedule(item);
             }
         }
     }
     
 
 }
Ejemplo n.º 3
0
        public CalculationPeriodAmount(XmlNode xmlNode)
        {
            XmlNodeList calculationNodeList = xmlNode.SelectNodes("calculation");

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

            foreach (XmlNode item in calculationNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        calculationIDRef = item.Attributes["id"].Name;
                        Calculation ob = Calculation();
                        IDManager.SetID(calculationIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        calculationIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        calculation = new Calculation(item);
                    }
                }
            }


            XmlNodeList knownAmountScheduleNodeList = xmlNode.SelectNodes("knownAmountSchedule");

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

            foreach (XmlNode item in knownAmountScheduleNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        knownAmountScheduleIDRef = item.Attributes["id"].Name;
                        AmountSchedule ob = AmountSchedule();
                        IDManager.SetID(knownAmountScheduleIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        knownAmountScheduleIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        knownAmountSchedule = new AmountSchedule(item);
                    }
                }
            }
        }
Ejemplo n.º 4
0
        public CalculationPeriodAmount(XmlNode xmlNode)
        {
            XmlNode calculationNode = xmlNode.SelectSingleNode("calculation");

            if (calculationNode != null)
            {
                if (calculationNode.Attributes["href"] != null || calculationNode.Attributes["id"] != null)
                {
                    if (calculationNode.Attributes["id"] != null)
                    {
                        calculationIDRef_ = calculationNode.Attributes["id"].Value;
                        Calculation ob = new Calculation(calculationNode);
                        IDManager.SetID(calculationIDRef_, ob);
                    }
                    else if (calculationNode.Attributes["href"] != null)
                    {
                        calculationIDRef_ = calculationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        calculation_ = new Calculation(calculationNode);
                    }
                }
                else
                {
                    calculation_ = new Calculation(calculationNode);
                }
            }


            XmlNode knownAmountScheduleNode = xmlNode.SelectSingleNode("knownAmountSchedule");

            if (knownAmountScheduleNode != null)
            {
                if (knownAmountScheduleNode.Attributes["href"] != null || knownAmountScheduleNode.Attributes["id"] != null)
                {
                    if (knownAmountScheduleNode.Attributes["id"] != null)
                    {
                        knownAmountScheduleIDRef_ = knownAmountScheduleNode.Attributes["id"].Value;
                        AmountSchedule ob = new AmountSchedule(knownAmountScheduleNode);
                        IDManager.SetID(knownAmountScheduleIDRef_, ob);
                    }
                    else if (knownAmountScheduleNode.Attributes["href"] != null)
                    {
                        knownAmountScheduleIDRef_ = knownAmountScheduleNode.Attributes["href"].Value;
                    }
                    else
                    {
                        knownAmountSchedule_ = new AmountSchedule(knownAmountScheduleNode);
                    }
                }
                else
                {
                    knownAmountSchedule_ = new AmountSchedule(knownAmountScheduleNode);
                }
            }
        }
 public ExerciseFeeSchedule(XmlNode xmlNode)
 {
     XmlNodeList payerPartyReferenceNodeList = xmlNode.SelectNodes("payerPartyReference");
     if (payerPartyReferenceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in payerPartyReferenceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 payerPartyReferenceIDRef = item.Attributes["id"].Name;
                 PartyReference ob = PartyReference();
                 IDManager.SetID(payerPartyReferenceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 payerPartyReferenceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 payerPartyReference = new PartyReference(item);
             }
         }
     }
     
 
     XmlNodeList payerAccountReferenceNodeList = xmlNode.SelectNodes("payerAccountReference");
     if (payerAccountReferenceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in payerAccountReferenceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 payerAccountReferenceIDRef = item.Attributes["id"].Name;
                 AccountReference ob = AccountReference();
                 IDManager.SetID(payerAccountReferenceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 payerAccountReferenceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 payerAccountReference = new AccountReference(item);
             }
         }
     }
     
 
     XmlNodeList receiverPartyReferenceNodeList = xmlNode.SelectNodes("receiverPartyReference");
     if (receiverPartyReferenceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in receiverPartyReferenceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 receiverPartyReferenceIDRef = item.Attributes["id"].Name;
                 PartyReference ob = PartyReference();
                 IDManager.SetID(receiverPartyReferenceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 receiverPartyReferenceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 receiverPartyReference = new PartyReference(item);
             }
         }
     }
     
 
     XmlNodeList receiverAccountReferenceNodeList = xmlNode.SelectNodes("receiverAccountReference");
     if (receiverAccountReferenceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in receiverAccountReferenceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 receiverAccountReferenceIDRef = item.Attributes["id"].Name;
                 AccountReference ob = AccountReference();
                 IDManager.SetID(receiverAccountReferenceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 receiverAccountReferenceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 receiverAccountReference = new AccountReference(item);
             }
         }
     }
     
 
     XmlNodeList notionalReferenceNodeList = xmlNode.SelectNodes("notionalReference");
     if (notionalReferenceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in notionalReferenceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 notionalReferenceIDRef = item.Attributes["id"].Name;
                 ScheduleReference ob = ScheduleReference();
                 IDManager.SetID(notionalReferenceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 notionalReferenceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 notionalReference = new ScheduleReference(item);
             }
         }
     }
     
 
     XmlNodeList feeAmountScheduleNodeList = xmlNode.SelectNodes("feeAmountSchedule");
     if (feeAmountScheduleNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in feeAmountScheduleNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 feeAmountScheduleIDRef = item.Attributes["id"].Name;
                 AmountSchedule ob = AmountSchedule();
                 IDManager.SetID(feeAmountScheduleIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 feeAmountScheduleIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 feeAmountSchedule = new AmountSchedule(item);
             }
         }
     }
     
 
     XmlNodeList feeRateScheduleNodeList = xmlNode.SelectNodes("feeRateSchedule");
     if (feeRateScheduleNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in feeRateScheduleNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 feeRateScheduleIDRef = item.Attributes["id"].Name;
                 Schedule ob = Schedule();
                 IDManager.SetID(feeRateScheduleIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 feeRateScheduleIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 feeRateSchedule = new Schedule(item);
             }
         }
     }
     
 
     XmlNodeList feePaymentDateNodeList = xmlNode.SelectNodes("feePaymentDate");
     if (feePaymentDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in feePaymentDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 feePaymentDateIDRef = item.Attributes["id"].Name;
                 RelativeDateOffset ob = RelativeDateOffset();
                 IDManager.SetID(feePaymentDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 feePaymentDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 feePaymentDate = new RelativeDateOffset(item);
             }
         }
     }
     
 
 }
Ejemplo n.º 6
0
        public ExerciseFeeSchedule(XmlNode xmlNode)
        {
            XmlNode payerPartyReferenceNode = xmlNode.SelectSingleNode("payerPartyReference");

            if (payerPartyReferenceNode != null)
            {
                if (payerPartyReferenceNode.Attributes["href"] != null || payerPartyReferenceNode.Attributes["id"] != null)
                {
                    if (payerPartyReferenceNode.Attributes["id"] != null)
                    {
                        payerPartyReferenceIDRef_ = payerPartyReferenceNode.Attributes["id"].Value;
                        PartyReference ob = new PartyReference(payerPartyReferenceNode);
                        IDManager.SetID(payerPartyReferenceIDRef_, ob);
                    }
                    else if (payerPartyReferenceNode.Attributes["href"] != null)
                    {
                        payerPartyReferenceIDRef_ = payerPartyReferenceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        payerPartyReference_ = new PartyReference(payerPartyReferenceNode);
                    }
                }
                else
                {
                    payerPartyReference_ = new PartyReference(payerPartyReferenceNode);
                }
            }


            XmlNode payerAccountReferenceNode = xmlNode.SelectSingleNode("payerAccountReference");

            if (payerAccountReferenceNode != null)
            {
                if (payerAccountReferenceNode.Attributes["href"] != null || payerAccountReferenceNode.Attributes["id"] != null)
                {
                    if (payerAccountReferenceNode.Attributes["id"] != null)
                    {
                        payerAccountReferenceIDRef_ = payerAccountReferenceNode.Attributes["id"].Value;
                        AccountReference ob = new AccountReference(payerAccountReferenceNode);
                        IDManager.SetID(payerAccountReferenceIDRef_, ob);
                    }
                    else if (payerAccountReferenceNode.Attributes["href"] != null)
                    {
                        payerAccountReferenceIDRef_ = payerAccountReferenceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        payerAccountReference_ = new AccountReference(payerAccountReferenceNode);
                    }
                }
                else
                {
                    payerAccountReference_ = new AccountReference(payerAccountReferenceNode);
                }
            }


            XmlNode receiverPartyReferenceNode = xmlNode.SelectSingleNode("receiverPartyReference");

            if (receiverPartyReferenceNode != null)
            {
                if (receiverPartyReferenceNode.Attributes["href"] != null || receiverPartyReferenceNode.Attributes["id"] != null)
                {
                    if (receiverPartyReferenceNode.Attributes["id"] != null)
                    {
                        receiverPartyReferenceIDRef_ = receiverPartyReferenceNode.Attributes["id"].Value;
                        PartyReference ob = new PartyReference(receiverPartyReferenceNode);
                        IDManager.SetID(receiverPartyReferenceIDRef_, ob);
                    }
                    else if (receiverPartyReferenceNode.Attributes["href"] != null)
                    {
                        receiverPartyReferenceIDRef_ = receiverPartyReferenceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        receiverPartyReference_ = new PartyReference(receiverPartyReferenceNode);
                    }
                }
                else
                {
                    receiverPartyReference_ = new PartyReference(receiverPartyReferenceNode);
                }
            }


            XmlNode receiverAccountReferenceNode = xmlNode.SelectSingleNode("receiverAccountReference");

            if (receiverAccountReferenceNode != null)
            {
                if (receiverAccountReferenceNode.Attributes["href"] != null || receiverAccountReferenceNode.Attributes["id"] != null)
                {
                    if (receiverAccountReferenceNode.Attributes["id"] != null)
                    {
                        receiverAccountReferenceIDRef_ = receiverAccountReferenceNode.Attributes["id"].Value;
                        AccountReference ob = new AccountReference(receiverAccountReferenceNode);
                        IDManager.SetID(receiverAccountReferenceIDRef_, ob);
                    }
                    else if (receiverAccountReferenceNode.Attributes["href"] != null)
                    {
                        receiverAccountReferenceIDRef_ = receiverAccountReferenceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        receiverAccountReference_ = new AccountReference(receiverAccountReferenceNode);
                    }
                }
                else
                {
                    receiverAccountReference_ = new AccountReference(receiverAccountReferenceNode);
                }
            }


            XmlNode notionalReferenceNode = xmlNode.SelectSingleNode("notionalReference");

            if (notionalReferenceNode != null)
            {
                if (notionalReferenceNode.Attributes["href"] != null || notionalReferenceNode.Attributes["id"] != null)
                {
                    if (notionalReferenceNode.Attributes["id"] != null)
                    {
                        notionalReferenceIDRef_ = notionalReferenceNode.Attributes["id"].Value;
                        ScheduleReference ob = new ScheduleReference(notionalReferenceNode);
                        IDManager.SetID(notionalReferenceIDRef_, ob);
                    }
                    else if (notionalReferenceNode.Attributes["href"] != null)
                    {
                        notionalReferenceIDRef_ = notionalReferenceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        notionalReference_ = new ScheduleReference(notionalReferenceNode);
                    }
                }
                else
                {
                    notionalReference_ = new ScheduleReference(notionalReferenceNode);
                }
            }


            XmlNode feeAmountScheduleNode = xmlNode.SelectSingleNode("feeAmountSchedule");

            if (feeAmountScheduleNode != null)
            {
                if (feeAmountScheduleNode.Attributes["href"] != null || feeAmountScheduleNode.Attributes["id"] != null)
                {
                    if (feeAmountScheduleNode.Attributes["id"] != null)
                    {
                        feeAmountScheduleIDRef_ = feeAmountScheduleNode.Attributes["id"].Value;
                        AmountSchedule ob = new AmountSchedule(feeAmountScheduleNode);
                        IDManager.SetID(feeAmountScheduleIDRef_, ob);
                    }
                    else if (feeAmountScheduleNode.Attributes["href"] != null)
                    {
                        feeAmountScheduleIDRef_ = feeAmountScheduleNode.Attributes["href"].Value;
                    }
                    else
                    {
                        feeAmountSchedule_ = new AmountSchedule(feeAmountScheduleNode);
                    }
                }
                else
                {
                    feeAmountSchedule_ = new AmountSchedule(feeAmountScheduleNode);
                }
            }


            XmlNode feeRateScheduleNode = xmlNode.SelectSingleNode("feeRateSchedule");

            if (feeRateScheduleNode != null)
            {
                if (feeRateScheduleNode.Attributes["href"] != null || feeRateScheduleNode.Attributes["id"] != null)
                {
                    if (feeRateScheduleNode.Attributes["id"] != null)
                    {
                        feeRateScheduleIDRef_ = feeRateScheduleNode.Attributes["id"].Value;
                        Schedule ob = new Schedule(feeRateScheduleNode);
                        IDManager.SetID(feeRateScheduleIDRef_, ob);
                    }
                    else if (feeRateScheduleNode.Attributes["href"] != null)
                    {
                        feeRateScheduleIDRef_ = feeRateScheduleNode.Attributes["href"].Value;
                    }
                    else
                    {
                        feeRateSchedule_ = new Schedule(feeRateScheduleNode);
                    }
                }
                else
                {
                    feeRateSchedule_ = new Schedule(feeRateScheduleNode);
                }
            }


            XmlNode feePaymentDateNode = xmlNode.SelectSingleNode("feePaymentDate");

            if (feePaymentDateNode != null)
            {
                if (feePaymentDateNode.Attributes["href"] != null || feePaymentDateNode.Attributes["id"] != null)
                {
                    if (feePaymentDateNode.Attributes["id"] != null)
                    {
                        feePaymentDateIDRef_ = feePaymentDateNode.Attributes["id"].Value;
                        RelativeDateOffset ob = new RelativeDateOffset(feePaymentDateNode);
                        IDManager.SetID(feePaymentDateIDRef_, ob);
                    }
                    else if (feePaymentDateNode.Attributes["href"] != null)
                    {
                        feePaymentDateIDRef_ = feePaymentDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        feePaymentDate_ = new RelativeDateOffset(feePaymentDateNode);
                    }
                }
                else
                {
                    feePaymentDate_ = new RelativeDateOffset(feePaymentDateNode);
                }
            }
        }
Ejemplo n.º 7
0
        public ExerciseFeeSchedule(XmlNode xmlNode)
        {
            XmlNodeList payerPartyReferenceNodeList = xmlNode.SelectNodes("payerPartyReference");

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

            foreach (XmlNode item in payerPartyReferenceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        payerPartyReferenceIDRef = item.Attributes["id"].Name;
                        PartyReference ob = PartyReference();
                        IDManager.SetID(payerPartyReferenceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        payerPartyReferenceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        payerPartyReference = new PartyReference(item);
                    }
                }
            }


            XmlNodeList payerAccountReferenceNodeList = xmlNode.SelectNodes("payerAccountReference");

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

            foreach (XmlNode item in payerAccountReferenceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        payerAccountReferenceIDRef = item.Attributes["id"].Name;
                        AccountReference ob = AccountReference();
                        IDManager.SetID(payerAccountReferenceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        payerAccountReferenceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        payerAccountReference = new AccountReference(item);
                    }
                }
            }


            XmlNodeList receiverPartyReferenceNodeList = xmlNode.SelectNodes("receiverPartyReference");

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

            foreach (XmlNode item in receiverPartyReferenceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        receiverPartyReferenceIDRef = item.Attributes["id"].Name;
                        PartyReference ob = PartyReference();
                        IDManager.SetID(receiverPartyReferenceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        receiverPartyReferenceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        receiverPartyReference = new PartyReference(item);
                    }
                }
            }


            XmlNodeList receiverAccountReferenceNodeList = xmlNode.SelectNodes("receiverAccountReference");

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

            foreach (XmlNode item in receiverAccountReferenceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        receiverAccountReferenceIDRef = item.Attributes["id"].Name;
                        AccountReference ob = AccountReference();
                        IDManager.SetID(receiverAccountReferenceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        receiverAccountReferenceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        receiverAccountReference = new AccountReference(item);
                    }
                }
            }


            XmlNodeList notionalReferenceNodeList = xmlNode.SelectNodes("notionalReference");

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

            foreach (XmlNode item in notionalReferenceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        notionalReferenceIDRef = item.Attributes["id"].Name;
                        ScheduleReference ob = ScheduleReference();
                        IDManager.SetID(notionalReferenceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        notionalReferenceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        notionalReference = new ScheduleReference(item);
                    }
                }
            }


            XmlNodeList feeAmountScheduleNodeList = xmlNode.SelectNodes("feeAmountSchedule");

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

            foreach (XmlNode item in feeAmountScheduleNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        feeAmountScheduleIDRef = item.Attributes["id"].Name;
                        AmountSchedule ob = AmountSchedule();
                        IDManager.SetID(feeAmountScheduleIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        feeAmountScheduleIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        feeAmountSchedule = new AmountSchedule(item);
                    }
                }
            }


            XmlNodeList feeRateScheduleNodeList = xmlNode.SelectNodes("feeRateSchedule");

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

            foreach (XmlNode item in feeRateScheduleNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        feeRateScheduleIDRef = item.Attributes["id"].Name;
                        Schedule ob = Schedule();
                        IDManager.SetID(feeRateScheduleIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        feeRateScheduleIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        feeRateSchedule = new Schedule(item);
                    }
                }
            }


            XmlNodeList feePaymentDateNodeList = xmlNode.SelectNodes("feePaymentDate");

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

            foreach (XmlNode item in feePaymentDateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        feePaymentDateIDRef = item.Attributes["id"].Name;
                        RelativeDateOffset ob = RelativeDateOffset();
                        IDManager.SetID(feePaymentDateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        feePaymentDateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        feePaymentDate = new RelativeDateOffset(item);
                    }
                }
            }
        }
 public ExerciseFeeSchedule(XmlNode xmlNode)
 {
     XmlNode payerPartyReferenceNode = xmlNode.SelectSingleNode("payerPartyReference");
     
     if (payerPartyReferenceNode != null)
     {
         if (payerPartyReferenceNode.Attributes["href"] != null || payerPartyReferenceNode.Attributes["id"] != null) 
         {
             if (payerPartyReferenceNode.Attributes["id"] != null) 
             {
                 payerPartyReferenceIDRef_ = payerPartyReferenceNode.Attributes["id"].Value;
                 PartyReference ob = new PartyReference(payerPartyReferenceNode);
                 IDManager.SetID(payerPartyReferenceIDRef_, ob);
             }
             else if (payerPartyReferenceNode.Attributes["href"] != null)
             {
                 payerPartyReferenceIDRef_ = payerPartyReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 payerPartyReference_ = new PartyReference(payerPartyReferenceNode);
             }
         }
         else
         {
             payerPartyReference_ = new PartyReference(payerPartyReferenceNode);
         }
     }
     
 
     XmlNode payerAccountReferenceNode = xmlNode.SelectSingleNode("payerAccountReference");
     
     if (payerAccountReferenceNode != null)
     {
         if (payerAccountReferenceNode.Attributes["href"] != null || payerAccountReferenceNode.Attributes["id"] != null) 
         {
             if (payerAccountReferenceNode.Attributes["id"] != null) 
             {
                 payerAccountReferenceIDRef_ = payerAccountReferenceNode.Attributes["id"].Value;
                 AccountReference ob = new AccountReference(payerAccountReferenceNode);
                 IDManager.SetID(payerAccountReferenceIDRef_, ob);
             }
             else if (payerAccountReferenceNode.Attributes["href"] != null)
             {
                 payerAccountReferenceIDRef_ = payerAccountReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 payerAccountReference_ = new AccountReference(payerAccountReferenceNode);
             }
         }
         else
         {
             payerAccountReference_ = new AccountReference(payerAccountReferenceNode);
         }
     }
     
 
     XmlNode receiverPartyReferenceNode = xmlNode.SelectSingleNode("receiverPartyReference");
     
     if (receiverPartyReferenceNode != null)
     {
         if (receiverPartyReferenceNode.Attributes["href"] != null || receiverPartyReferenceNode.Attributes["id"] != null) 
         {
             if (receiverPartyReferenceNode.Attributes["id"] != null) 
             {
                 receiverPartyReferenceIDRef_ = receiverPartyReferenceNode.Attributes["id"].Value;
                 PartyReference ob = new PartyReference(receiverPartyReferenceNode);
                 IDManager.SetID(receiverPartyReferenceIDRef_, ob);
             }
             else if (receiverPartyReferenceNode.Attributes["href"] != null)
             {
                 receiverPartyReferenceIDRef_ = receiverPartyReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 receiverPartyReference_ = new PartyReference(receiverPartyReferenceNode);
             }
         }
         else
         {
             receiverPartyReference_ = new PartyReference(receiverPartyReferenceNode);
         }
     }
     
 
     XmlNode receiverAccountReferenceNode = xmlNode.SelectSingleNode("receiverAccountReference");
     
     if (receiverAccountReferenceNode != null)
     {
         if (receiverAccountReferenceNode.Attributes["href"] != null || receiverAccountReferenceNode.Attributes["id"] != null) 
         {
             if (receiverAccountReferenceNode.Attributes["id"] != null) 
             {
                 receiverAccountReferenceIDRef_ = receiverAccountReferenceNode.Attributes["id"].Value;
                 AccountReference ob = new AccountReference(receiverAccountReferenceNode);
                 IDManager.SetID(receiverAccountReferenceIDRef_, ob);
             }
             else if (receiverAccountReferenceNode.Attributes["href"] != null)
             {
                 receiverAccountReferenceIDRef_ = receiverAccountReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 receiverAccountReference_ = new AccountReference(receiverAccountReferenceNode);
             }
         }
         else
         {
             receiverAccountReference_ = new AccountReference(receiverAccountReferenceNode);
         }
     }
     
 
     XmlNode notionalReferenceNode = xmlNode.SelectSingleNode("notionalReference");
     
     if (notionalReferenceNode != null)
     {
         if (notionalReferenceNode.Attributes["href"] != null || notionalReferenceNode.Attributes["id"] != null) 
         {
             if (notionalReferenceNode.Attributes["id"] != null) 
             {
                 notionalReferenceIDRef_ = notionalReferenceNode.Attributes["id"].Value;
                 ScheduleReference ob = new ScheduleReference(notionalReferenceNode);
                 IDManager.SetID(notionalReferenceIDRef_, ob);
             }
             else if (notionalReferenceNode.Attributes["href"] != null)
             {
                 notionalReferenceIDRef_ = notionalReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 notionalReference_ = new ScheduleReference(notionalReferenceNode);
             }
         }
         else
         {
             notionalReference_ = new ScheduleReference(notionalReferenceNode);
         }
     }
     
 
     XmlNode feeAmountScheduleNode = xmlNode.SelectSingleNode("feeAmountSchedule");
     
     if (feeAmountScheduleNode != null)
     {
         if (feeAmountScheduleNode.Attributes["href"] != null || feeAmountScheduleNode.Attributes["id"] != null) 
         {
             if (feeAmountScheduleNode.Attributes["id"] != null) 
             {
                 feeAmountScheduleIDRef_ = feeAmountScheduleNode.Attributes["id"].Value;
                 AmountSchedule ob = new AmountSchedule(feeAmountScheduleNode);
                 IDManager.SetID(feeAmountScheduleIDRef_, ob);
             }
             else if (feeAmountScheduleNode.Attributes["href"] != null)
             {
                 feeAmountScheduleIDRef_ = feeAmountScheduleNode.Attributes["href"].Value;
             }
             else
             {
                 feeAmountSchedule_ = new AmountSchedule(feeAmountScheduleNode);
             }
         }
         else
         {
             feeAmountSchedule_ = new AmountSchedule(feeAmountScheduleNode);
         }
     }
     
 
     XmlNode feeRateScheduleNode = xmlNode.SelectSingleNode("feeRateSchedule");
     
     if (feeRateScheduleNode != null)
     {
         if (feeRateScheduleNode.Attributes["href"] != null || feeRateScheduleNode.Attributes["id"] != null) 
         {
             if (feeRateScheduleNode.Attributes["id"] != null) 
             {
                 feeRateScheduleIDRef_ = feeRateScheduleNode.Attributes["id"].Value;
                 Schedule ob = new Schedule(feeRateScheduleNode);
                 IDManager.SetID(feeRateScheduleIDRef_, ob);
             }
             else if (feeRateScheduleNode.Attributes["href"] != null)
             {
                 feeRateScheduleIDRef_ = feeRateScheduleNode.Attributes["href"].Value;
             }
             else
             {
                 feeRateSchedule_ = new Schedule(feeRateScheduleNode);
             }
         }
         else
         {
             feeRateSchedule_ = new Schedule(feeRateScheduleNode);
         }
     }
     
 
     XmlNode feePaymentDateNode = xmlNode.SelectSingleNode("feePaymentDate");
     
     if (feePaymentDateNode != null)
     {
         if (feePaymentDateNode.Attributes["href"] != null || feePaymentDateNode.Attributes["id"] != null) 
         {
             if (feePaymentDateNode.Attributes["id"] != null) 
             {
                 feePaymentDateIDRef_ = feePaymentDateNode.Attributes["id"].Value;
                 RelativeDateOffset ob = new RelativeDateOffset(feePaymentDateNode);
                 IDManager.SetID(feePaymentDateIDRef_, ob);
             }
             else if (feePaymentDateNode.Attributes["href"] != null)
             {
                 feePaymentDateIDRef_ = feePaymentDateNode.Attributes["href"].Value;
             }
             else
             {
                 feePaymentDate_ = new RelativeDateOffset(feePaymentDateNode);
             }
         }
         else
         {
             feePaymentDate_ = new RelativeDateOffset(feePaymentDateNode);
         }
     }
     
 
 }