コード例 #1
0
 public CapFloorOption(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode capOptionNode = xmlNode.SelectSingleNode("capOption");
     
     if (capOptionNode != null)
     {
         if (capOptionNode.Attributes["href"] != null || capOptionNode.Attributes["id"] != null) 
         {
             if (capOptionNode.Attributes["id"] != null) 
             {
                 capOptionIDRef_ = capOptionNode.Attributes["id"].Value;
                 CapOption ob = new CapOption(capOptionNode);
                 IDManager.SetID(capOptionIDRef_, ob);
             }
             else if (capOptionNode.Attributes["href"] != null)
             {
                 capOptionIDRef_ = capOptionNode.Attributes["href"].Value;
             }
             else
             {
                 capOption_ = new CapOption(capOptionNode);
             }
         }
         else
         {
             capOption_ = new CapOption(capOptionNode);
         }
     }
     
 
     XmlNode floorOptionNode = xmlNode.SelectSingleNode("floorOption");
     
     if (floorOptionNode != null)
     {
         if (floorOptionNode.Attributes["href"] != null || floorOptionNode.Attributes["id"] != null) 
         {
             if (floorOptionNode.Attributes["id"] != null) 
             {
                 floorOptionIDRef_ = floorOptionNode.Attributes["id"].Value;
                 FloorOption ob = new FloorOption(floorOptionNode);
                 IDManager.SetID(floorOptionIDRef_, ob);
             }
             else if (floorOptionNode.Attributes["href"] != null)
             {
                 floorOptionIDRef_ = floorOptionNode.Attributes["href"].Value;
             }
             else
             {
                 floorOption_ = new FloorOption(floorOptionNode);
             }
         }
         else
         {
             floorOption_ = new FloorOption(floorOptionNode);
         }
     }
     
 
 }
コード例 #2
0
        public CapFloorOption(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode capOptionNode = xmlNode.SelectSingleNode("capOption");

            if (capOptionNode != null)
            {
                if (capOptionNode.Attributes["href"] != null || capOptionNode.Attributes["id"] != null)
                {
                    if (capOptionNode.Attributes["id"] != null)
                    {
                        capOptionIDRef_ = capOptionNode.Attributes["id"].Value;
                        CapOption ob = new CapOption(capOptionNode);
                        IDManager.SetID(capOptionIDRef_, ob);
                    }
                    else if (capOptionNode.Attributes["href"] != null)
                    {
                        capOptionIDRef_ = capOptionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        capOption_ = new CapOption(capOptionNode);
                    }
                }
                else
                {
                    capOption_ = new CapOption(capOptionNode);
                }
            }


            XmlNode floorOptionNode = xmlNode.SelectSingleNode("floorOption");

            if (floorOptionNode != null)
            {
                if (floorOptionNode.Attributes["href"] != null || floorOptionNode.Attributes["id"] != null)
                {
                    if (floorOptionNode.Attributes["id"] != null)
                    {
                        floorOptionIDRef_ = floorOptionNode.Attributes["id"].Value;
                        FloorOption ob = new FloorOption(floorOptionNode);
                        IDManager.SetID(floorOptionIDRef_, ob);
                    }
                    else if (floorOptionNode.Attributes["href"] != null)
                    {
                        floorOptionIDRef_ = floorOptionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        floorOption_ = new FloorOption(floorOptionNode);
                    }
                }
                else
                {
                    floorOption_ = new FloorOption(floorOptionNode);
                }
            }
        }