public FxDigitalAmericanExercise(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList commencementDateNodeList = xmlNode.SelectNodes("commencementDate");

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

            foreach (XmlNode item in commencementDateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        commencementDateIDRef = item.Attributes["id"].Name;
                        AdjustableOrRelativeDate ob = AdjustableOrRelativeDate();
                        IDManager.SetID(commencementDateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        commencementDateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        commencementDate = new AdjustableOrRelativeDate(item);
                    }
                }
            }


            XmlNodeList expiryDateNodeList = xmlNode.SelectNodes("expiryDate");

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

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


            XmlNodeList expiryTimeNodeList = xmlNode.SelectNodes("expiryTime");

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

            foreach (XmlNode item in expiryTimeNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        expiryTimeIDRef = item.Attributes["id"].Name;
                        BusinessCenterTime ob = BusinessCenterTime();
                        IDManager.SetID(expiryTimeIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        expiryTimeIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        expiryTime = new BusinessCenterTime(item);
                    }
                }
            }


            XmlNodeList cutNameNodeList = xmlNode.SelectNodes("cutName");

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

            foreach (XmlNode item in cutNameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        cutNameIDRef = item.Attributes["id"].Name;
                        CutName ob = CutName();
                        IDManager.SetID(cutNameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        cutNameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        cutName = new CutName(item);
                    }
                }
            }


            XmlNodeList latestValueDateNodeList = xmlNode.SelectNodes("latestValueDate");

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

            foreach (XmlNode item in latestValueDateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        latestValueDateIDRef = item.Attributes["id"].Name;
                        XsdTypeDate ob = XsdTypeDate();
                        IDManager.SetID(latestValueDateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        latestValueDateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        latestValueDate = new XsdTypeDate(item);
                    }
                }
            }
        }
 public FxDigitalAmericanExercise(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode commencementDateNode = xmlNode.SelectSingleNode("commencementDate");
     
     if (commencementDateNode != null)
     {
         if (commencementDateNode.Attributes["href"] != null || commencementDateNode.Attributes["id"] != null) 
         {
             if (commencementDateNode.Attributes["id"] != null) 
             {
                 commencementDateIDRef_ = commencementDateNode.Attributes["id"].Value;
                 AdjustableOrRelativeDate ob = new AdjustableOrRelativeDate(commencementDateNode);
                 IDManager.SetID(commencementDateIDRef_, ob);
             }
             else if (commencementDateNode.Attributes["href"] != null)
             {
                 commencementDateIDRef_ = commencementDateNode.Attributes["href"].Value;
             }
             else
             {
                 commencementDate_ = new AdjustableOrRelativeDate(commencementDateNode);
             }
         }
         else
         {
             commencementDate_ = new AdjustableOrRelativeDate(commencementDateNode);
         }
     }
     
 
     XmlNode expiryDateNode = xmlNode.SelectSingleNode("expiryDate");
     
     if (expiryDateNode != null)
     {
         if (expiryDateNode.Attributes["href"] != null || expiryDateNode.Attributes["id"] != null) 
         {
             if (expiryDateNode.Attributes["id"] != null) 
             {
                 expiryDateIDRef_ = expiryDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(expiryDateNode);
                 IDManager.SetID(expiryDateIDRef_, ob);
             }
             else if (expiryDateNode.Attributes["href"] != null)
             {
                 expiryDateIDRef_ = expiryDateNode.Attributes["href"].Value;
             }
             else
             {
                 expiryDate_ = new XsdTypeDate(expiryDateNode);
             }
         }
         else
         {
             expiryDate_ = new XsdTypeDate(expiryDateNode);
         }
     }
     
 
     XmlNode expiryTimeNode = xmlNode.SelectSingleNode("expiryTime");
     
     if (expiryTimeNode != null)
     {
         if (expiryTimeNode.Attributes["href"] != null || expiryTimeNode.Attributes["id"] != null) 
         {
             if (expiryTimeNode.Attributes["id"] != null) 
             {
                 expiryTimeIDRef_ = expiryTimeNode.Attributes["id"].Value;
                 BusinessCenterTime ob = new BusinessCenterTime(expiryTimeNode);
                 IDManager.SetID(expiryTimeIDRef_, ob);
             }
             else if (expiryTimeNode.Attributes["href"] != null)
             {
                 expiryTimeIDRef_ = expiryTimeNode.Attributes["href"].Value;
             }
             else
             {
                 expiryTime_ = new BusinessCenterTime(expiryTimeNode);
             }
         }
         else
         {
             expiryTime_ = new BusinessCenterTime(expiryTimeNode);
         }
     }
     
 
     XmlNode cutNameNode = xmlNode.SelectSingleNode("cutName");
     
     if (cutNameNode != null)
     {
         if (cutNameNode.Attributes["href"] != null || cutNameNode.Attributes["id"] != null) 
         {
             if (cutNameNode.Attributes["id"] != null) 
             {
                 cutNameIDRef_ = cutNameNode.Attributes["id"].Value;
                 CutName ob = new CutName(cutNameNode);
                 IDManager.SetID(cutNameIDRef_, ob);
             }
             else if (cutNameNode.Attributes["href"] != null)
             {
                 cutNameIDRef_ = cutNameNode.Attributes["href"].Value;
             }
             else
             {
                 cutName_ = new CutName(cutNameNode);
             }
         }
         else
         {
             cutName_ = new CutName(cutNameNode);
         }
     }
     
 
     XmlNode latestValueDateNode = xmlNode.SelectSingleNode("latestValueDate");
     
     if (latestValueDateNode != null)
     {
         if (latestValueDateNode.Attributes["href"] != null || latestValueDateNode.Attributes["id"] != null) 
         {
             if (latestValueDateNode.Attributes["id"] != null) 
             {
                 latestValueDateIDRef_ = latestValueDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(latestValueDateNode);
                 IDManager.SetID(latestValueDateIDRef_, ob);
             }
             else if (latestValueDateNode.Attributes["href"] != null)
             {
                 latestValueDateIDRef_ = latestValueDateNode.Attributes["href"].Value;
             }
             else
             {
                 latestValueDate_ = new XsdTypeDate(latestValueDateNode);
             }
         }
         else
         {
             latestValueDate_ = new XsdTypeDate(latestValueDateNode);
         }
     }
     
 
 }
        public FxDigitalAmericanExercise(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode commencementDateNode = xmlNode.SelectSingleNode("commencementDate");

            if (commencementDateNode != null)
            {
                if (commencementDateNode.Attributes["href"] != null || commencementDateNode.Attributes["id"] != null)
                {
                    if (commencementDateNode.Attributes["id"] != null)
                    {
                        commencementDateIDRef_ = commencementDateNode.Attributes["id"].Value;
                        AdjustableOrRelativeDate ob = new AdjustableOrRelativeDate(commencementDateNode);
                        IDManager.SetID(commencementDateIDRef_, ob);
                    }
                    else if (commencementDateNode.Attributes["href"] != null)
                    {
                        commencementDateIDRef_ = commencementDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        commencementDate_ = new AdjustableOrRelativeDate(commencementDateNode);
                    }
                }
                else
                {
                    commencementDate_ = new AdjustableOrRelativeDate(commencementDateNode);
                }
            }


            XmlNode expiryDateNode = xmlNode.SelectSingleNode("expiryDate");

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


            XmlNode expiryTimeNode = xmlNode.SelectSingleNode("expiryTime");

            if (expiryTimeNode != null)
            {
                if (expiryTimeNode.Attributes["href"] != null || expiryTimeNode.Attributes["id"] != null)
                {
                    if (expiryTimeNode.Attributes["id"] != null)
                    {
                        expiryTimeIDRef_ = expiryTimeNode.Attributes["id"].Value;
                        BusinessCenterTime ob = new BusinessCenterTime(expiryTimeNode);
                        IDManager.SetID(expiryTimeIDRef_, ob);
                    }
                    else if (expiryTimeNode.Attributes["href"] != null)
                    {
                        expiryTimeIDRef_ = expiryTimeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        expiryTime_ = new BusinessCenterTime(expiryTimeNode);
                    }
                }
                else
                {
                    expiryTime_ = new BusinessCenterTime(expiryTimeNode);
                }
            }


            XmlNode cutNameNode = xmlNode.SelectSingleNode("cutName");

            if (cutNameNode != null)
            {
                if (cutNameNode.Attributes["href"] != null || cutNameNode.Attributes["id"] != null)
                {
                    if (cutNameNode.Attributes["id"] != null)
                    {
                        cutNameIDRef_ = cutNameNode.Attributes["id"].Value;
                        CutName ob = new CutName(cutNameNode);
                        IDManager.SetID(cutNameIDRef_, ob);
                    }
                    else if (cutNameNode.Attributes["href"] != null)
                    {
                        cutNameIDRef_ = cutNameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        cutName_ = new CutName(cutNameNode);
                    }
                }
                else
                {
                    cutName_ = new CutName(cutNameNode);
                }
            }


            XmlNode latestValueDateNode = xmlNode.SelectSingleNode("latestValueDate");

            if (latestValueDateNode != null)
            {
                if (latestValueDateNode.Attributes["href"] != null || latestValueDateNode.Attributes["id"] != null)
                {
                    if (latestValueDateNode.Attributes["id"] != null)
                    {
                        latestValueDateIDRef_ = latestValueDateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(latestValueDateNode);
                        IDManager.SetID(latestValueDateIDRef_, ob);
                    }
                    else if (latestValueDateNode.Attributes["href"] != null)
                    {
                        latestValueDateIDRef_ = latestValueDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        latestValueDate_ = new XsdTypeDate(latestValueDateNode);
                    }
                }
                else
                {
                    latestValueDate_ = new XsdTypeDate(latestValueDateNode);
                }
            }
        }
 public FxEuropeanExercise(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList expiryDateNodeList = xmlNode.SelectNodes("expiryDate");
     if (expiryDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in expiryDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 expiryDateIDRef = item.Attributes["id"].Name;
                 XsdTypeDate ob = XsdTypeDate();
                 IDManager.SetID(expiryDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 expiryDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 expiryDate = new XsdTypeDate(item);
             }
         }
     }
     
 
     XmlNodeList expiryTimeNodeList = xmlNode.SelectNodes("expiryTime");
     if (expiryTimeNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in expiryTimeNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 expiryTimeIDRef = item.Attributes["id"].Name;
                 BusinessCenterTime ob = BusinessCenterTime();
                 IDManager.SetID(expiryTimeIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 expiryTimeIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 expiryTime = new BusinessCenterTime(item);
             }
         }
     }
     
 
     XmlNodeList cutNameNodeList = xmlNode.SelectNodes("cutName");
     if (cutNameNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in cutNameNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 cutNameIDRef = item.Attributes["id"].Name;
                 CutName ob = CutName();
                 IDManager.SetID(cutNameIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 cutNameIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 cutName = new CutName(item);
             }
         }
     }
     
 
     XmlNodeList valueDateNodeList = xmlNode.SelectNodes("valueDate");
     if (valueDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in valueDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 valueDateIDRef = item.Attributes["id"].Name;
                 XsdTypeDate ob = XsdTypeDate();
                 IDManager.SetID(valueDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 valueDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 valueDate = new XsdTypeDate(item);
             }
         }
     }
     
 
 }
Пример #5
0
        public FxEuropeanExercise(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode expiryDateNode = xmlNode.SelectSingleNode("expiryDate");

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


            XmlNode expiryTimeNode = xmlNode.SelectSingleNode("expiryTime");

            if (expiryTimeNode != null)
            {
                if (expiryTimeNode.Attributes["href"] != null || expiryTimeNode.Attributes["id"] != null)
                {
                    if (expiryTimeNode.Attributes["id"] != null)
                    {
                        expiryTimeIDRef_ = expiryTimeNode.Attributes["id"].Value;
                        BusinessCenterTime ob = new BusinessCenterTime(expiryTimeNode);
                        IDManager.SetID(expiryTimeIDRef_, ob);
                    }
                    else if (expiryTimeNode.Attributes["href"] != null)
                    {
                        expiryTimeIDRef_ = expiryTimeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        expiryTime_ = new BusinessCenterTime(expiryTimeNode);
                    }
                }
                else
                {
                    expiryTime_ = new BusinessCenterTime(expiryTimeNode);
                }
            }


            XmlNode cutNameNode = xmlNode.SelectSingleNode("cutName");

            if (cutNameNode != null)
            {
                if (cutNameNode.Attributes["href"] != null || cutNameNode.Attributes["id"] != null)
                {
                    if (cutNameNode.Attributes["id"] != null)
                    {
                        cutNameIDRef_ = cutNameNode.Attributes["id"].Value;
                        CutName ob = new CutName(cutNameNode);
                        IDManager.SetID(cutNameIDRef_, ob);
                    }
                    else if (cutNameNode.Attributes["href"] != null)
                    {
                        cutNameIDRef_ = cutNameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        cutName_ = new CutName(cutNameNode);
                    }
                }
                else
                {
                    cutName_ = new CutName(cutNameNode);
                }
            }


            XmlNode valueDateNode = xmlNode.SelectSingleNode("valueDate");

            if (valueDateNode != null)
            {
                if (valueDateNode.Attributes["href"] != null || valueDateNode.Attributes["id"] != null)
                {
                    if (valueDateNode.Attributes["id"] != null)
                    {
                        valueDateIDRef_ = valueDateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(valueDateNode);
                        IDManager.SetID(valueDateIDRef_, ob);
                    }
                    else if (valueDateNode.Attributes["href"] != null)
                    {
                        valueDateIDRef_ = valueDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        valueDate_ = new XsdTypeDate(valueDateNode);
                    }
                }
                else
                {
                    valueDate_ = new XsdTypeDate(valueDateNode);
                }
            }
        }
        public FxEuropeanExercise(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList expiryDateNodeList = xmlNode.SelectNodes("expiryDate");

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

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


            XmlNodeList expiryTimeNodeList = xmlNode.SelectNodes("expiryTime");

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

            foreach (XmlNode item in expiryTimeNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        expiryTimeIDRef = item.Attributes["id"].Name;
                        BusinessCenterTime ob = BusinessCenterTime();
                        IDManager.SetID(expiryTimeIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        expiryTimeIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        expiryTime = new BusinessCenterTime(item);
                    }
                }
            }


            XmlNodeList cutNameNodeList = xmlNode.SelectNodes("cutName");

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

            foreach (XmlNode item in cutNameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        cutNameIDRef = item.Attributes["id"].Name;
                        CutName ob = CutName();
                        IDManager.SetID(cutNameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        cutNameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        cutName = new CutName(item);
                    }
                }
            }


            XmlNodeList valueDateNodeList = xmlNode.SelectNodes("valueDate");

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

            foreach (XmlNode item in valueDateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        valueDateIDRef = item.Attributes["id"].Name;
                        XsdTypeDate ob = XsdTypeDate();
                        IDManager.SetID(valueDateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        valueDateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        valueDate = new XsdTypeDate(item);
                    }
                }
            }
        }
 public FxDigitalAmericanExercise(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList commencementDateNodeList = xmlNode.SelectNodes("commencementDate");
     if (commencementDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in commencementDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 commencementDateIDRef = item.Attributes["id"].Name;
                 AdjustableOrRelativeDate ob = AdjustableOrRelativeDate();
                 IDManager.SetID(commencementDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 commencementDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 commencementDate = new AdjustableOrRelativeDate(item);
             }
         }
     }
     
 
     XmlNodeList expiryDateNodeList = xmlNode.SelectNodes("expiryDate");
     if (expiryDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in expiryDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 expiryDateIDRef = item.Attributes["id"].Name;
                 XsdTypeDate ob = XsdTypeDate();
                 IDManager.SetID(expiryDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 expiryDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 expiryDate = new XsdTypeDate(item);
             }
         }
     }
     
 
     XmlNodeList expiryTimeNodeList = xmlNode.SelectNodes("expiryTime");
     if (expiryTimeNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in expiryTimeNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 expiryTimeIDRef = item.Attributes["id"].Name;
                 BusinessCenterTime ob = BusinessCenterTime();
                 IDManager.SetID(expiryTimeIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 expiryTimeIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 expiryTime = new BusinessCenterTime(item);
             }
         }
     }
     
 
     XmlNodeList cutNameNodeList = xmlNode.SelectNodes("cutName");
     if (cutNameNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in cutNameNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 cutNameIDRef = item.Attributes["id"].Name;
                 CutName ob = CutName();
                 IDManager.SetID(cutNameIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 cutNameIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 cutName = new CutName(item);
             }
         }
     }
     
 
     XmlNodeList latestValueDateNodeList = xmlNode.SelectNodes("latestValueDate");
     if (latestValueDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in latestValueDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 latestValueDateIDRef = item.Attributes["id"].Name;
                 XsdTypeDate ob = XsdTypeDate();
                 IDManager.SetID(latestValueDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 latestValueDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 latestValueDate = new XsdTypeDate(item);
             }
         }
     }
     
 
 }
 public FxEuropeanExercise(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode expiryDateNode = xmlNode.SelectSingleNode("expiryDate");
     
     if (expiryDateNode != null)
     {
         if (expiryDateNode.Attributes["href"] != null || expiryDateNode.Attributes["id"] != null) 
         {
             if (expiryDateNode.Attributes["id"] != null) 
             {
                 expiryDateIDRef_ = expiryDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(expiryDateNode);
                 IDManager.SetID(expiryDateIDRef_, ob);
             }
             else if (expiryDateNode.Attributes["href"] != null)
             {
                 expiryDateIDRef_ = expiryDateNode.Attributes["href"].Value;
             }
             else
             {
                 expiryDate_ = new XsdTypeDate(expiryDateNode);
             }
         }
         else
         {
             expiryDate_ = new XsdTypeDate(expiryDateNode);
         }
     }
     
 
     XmlNode expiryTimeNode = xmlNode.SelectSingleNode("expiryTime");
     
     if (expiryTimeNode != null)
     {
         if (expiryTimeNode.Attributes["href"] != null || expiryTimeNode.Attributes["id"] != null) 
         {
             if (expiryTimeNode.Attributes["id"] != null) 
             {
                 expiryTimeIDRef_ = expiryTimeNode.Attributes["id"].Value;
                 BusinessCenterTime ob = new BusinessCenterTime(expiryTimeNode);
                 IDManager.SetID(expiryTimeIDRef_, ob);
             }
             else if (expiryTimeNode.Attributes["href"] != null)
             {
                 expiryTimeIDRef_ = expiryTimeNode.Attributes["href"].Value;
             }
             else
             {
                 expiryTime_ = new BusinessCenterTime(expiryTimeNode);
             }
         }
         else
         {
             expiryTime_ = new BusinessCenterTime(expiryTimeNode);
         }
     }
     
 
     XmlNode cutNameNode = xmlNode.SelectSingleNode("cutName");
     
     if (cutNameNode != null)
     {
         if (cutNameNode.Attributes["href"] != null || cutNameNode.Attributes["id"] != null) 
         {
             if (cutNameNode.Attributes["id"] != null) 
             {
                 cutNameIDRef_ = cutNameNode.Attributes["id"].Value;
                 CutName ob = new CutName(cutNameNode);
                 IDManager.SetID(cutNameIDRef_, ob);
             }
             else if (cutNameNode.Attributes["href"] != null)
             {
                 cutNameIDRef_ = cutNameNode.Attributes["href"].Value;
             }
             else
             {
                 cutName_ = new CutName(cutNameNode);
             }
         }
         else
         {
             cutName_ = new CutName(cutNameNode);
         }
     }
     
 
     XmlNode valueDateNode = xmlNode.SelectSingleNode("valueDate");
     
     if (valueDateNode != null)
     {
         if (valueDateNode.Attributes["href"] != null || valueDateNode.Attributes["id"] != null) 
         {
             if (valueDateNode.Attributes["id"] != null) 
             {
                 valueDateIDRef_ = valueDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(valueDateNode);
                 IDManager.SetID(valueDateIDRef_, ob);
             }
             else if (valueDateNode.Attributes["href"] != null)
             {
                 valueDateIDRef_ = valueDateNode.Attributes["href"].Value;
             }
             else
             {
                 valueDate_ = new XsdTypeDate(valueDateNode);
             }
         }
         else
         {
             valueDate_ = new XsdTypeDate(valueDateNode);
         }
     }
     
 
 }