コード例 #1
0
        public EventTrigger_A(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode typeNode = xmlNode.SelectSingleNode("type");

            if (typeNode != null)
            {
                if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null)
                {
                    if (typeNode.Attributes["id"] != null)
                    {
                        typeIDRef_ = typeNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(typeNode);
                        IDManager.SetID(typeIDRef_, ob);
                    }
                    else if (typeNode.Attributes["href"] != null)
                    {
                        typeIDRef_ = typeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        type_ = new XsdTypeToken(typeNode);
                    }
                }
                else
                {
                    type_ = new XsdTypeToken(typeNode);
                }
            }


            XmlNode fixedRatePayoff_ANode = xmlNode.SelectSingleNode("fixedRatePayoff_A");

            if (fixedRatePayoff_ANode != null)
            {
                if (fixedRatePayoff_ANode.Attributes["href"] != null || fixedRatePayoff_ANode.Attributes["id"] != null)
                {
                    if (fixedRatePayoff_ANode.Attributes["id"] != null)
                    {
                        fixedRatePayoff_AIDRef_ = fixedRatePayoff_ANode.Attributes["id"].Value;
                        FixedRatePayoff_A ob = new FixedRatePayoff_A(fixedRatePayoff_ANode);
                        IDManager.SetID(fixedRatePayoff_AIDRef_, ob);
                    }
                    else if (fixedRatePayoff_ANode.Attributes["href"] != null)
                    {
                        fixedRatePayoff_AIDRef_ = fixedRatePayoff_ANode.Attributes["href"].Value;
                    }
                    else
                    {
                        fixedRatePayoff_A_ = new FixedRatePayoff_A(fixedRatePayoff_ANode);
                    }
                }
                else
                {
                    fixedRatePayoff_A_ = new FixedRatePayoff_A(fixedRatePayoff_ANode);
                }
            }


            XmlNode vanillaFloatingRatePayoff_ANode = xmlNode.SelectSingleNode("vanillaFloatingRatePayoff_A");

            if (vanillaFloatingRatePayoff_ANode != null)
            {
                if (vanillaFloatingRatePayoff_ANode.Attributes["href"] != null || vanillaFloatingRatePayoff_ANode.Attributes["id"] != null)
                {
                    if (vanillaFloatingRatePayoff_ANode.Attributes["id"] != null)
                    {
                        vanillaFloatingRatePayoff_AIDRef_ = vanillaFloatingRatePayoff_ANode.Attributes["id"].Value;
                        VanillaFloatingRatePayoff_A ob = new VanillaFloatingRatePayoff_A(vanillaFloatingRatePayoff_ANode);
                        IDManager.SetID(vanillaFloatingRatePayoff_AIDRef_, ob);
                    }
                    else if (vanillaFloatingRatePayoff_ANode.Attributes["href"] != null)
                    {
                        vanillaFloatingRatePayoff_AIDRef_ = vanillaFloatingRatePayoff_ANode.Attributes["href"].Value;
                    }
                    else
                    {
                        vanillaFloatingRatePayoff_A_ = new VanillaFloatingRatePayoff_A(vanillaFloatingRatePayoff_ANode);
                    }
                }
                else
                {
                    vanillaFloatingRatePayoff_A_ = new VanillaFloatingRatePayoff_A(vanillaFloatingRatePayoff_ANode);
                }
            }
        }
コード例 #2
0
 public EventTrigger_A(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode typeNode = xmlNode.SelectSingleNode("type");
     
     if (typeNode != null)
     {
         if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null) 
         {
             if (typeNode.Attributes["id"] != null) 
             {
                 typeIDRef_ = typeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(typeNode);
                 IDManager.SetID(typeIDRef_, ob);
             }
             else if (typeNode.Attributes["href"] != null)
             {
                 typeIDRef_ = typeNode.Attributes["href"].Value;
             }
             else
             {
                 type_ = new XsdTypeToken(typeNode);
             }
         }
         else
         {
             type_ = new XsdTypeToken(typeNode);
         }
     }
     
 
     XmlNode fixedRatePayoff_ANode = xmlNode.SelectSingleNode("fixedRatePayoff_A");
     
     if (fixedRatePayoff_ANode != null)
     {
         if (fixedRatePayoff_ANode.Attributes["href"] != null || fixedRatePayoff_ANode.Attributes["id"] != null) 
         {
             if (fixedRatePayoff_ANode.Attributes["id"] != null) 
             {
                 fixedRatePayoff_AIDRef_ = fixedRatePayoff_ANode.Attributes["id"].Value;
                 FixedRatePayoff_A ob = new FixedRatePayoff_A(fixedRatePayoff_ANode);
                 IDManager.SetID(fixedRatePayoff_AIDRef_, ob);
             }
             else if (fixedRatePayoff_ANode.Attributes["href"] != null)
             {
                 fixedRatePayoff_AIDRef_ = fixedRatePayoff_ANode.Attributes["href"].Value;
             }
             else
             {
                 fixedRatePayoff_A_ = new FixedRatePayoff_A(fixedRatePayoff_ANode);
             }
         }
         else
         {
             fixedRatePayoff_A_ = new FixedRatePayoff_A(fixedRatePayoff_ANode);
         }
     }
     
 
     XmlNode vanillaFloatingRatePayoff_ANode = xmlNode.SelectSingleNode("vanillaFloatingRatePayoff_A");
     
     if (vanillaFloatingRatePayoff_ANode != null)
     {
         if (vanillaFloatingRatePayoff_ANode.Attributes["href"] != null || vanillaFloatingRatePayoff_ANode.Attributes["id"] != null) 
         {
             if (vanillaFloatingRatePayoff_ANode.Attributes["id"] != null) 
             {
                 vanillaFloatingRatePayoff_AIDRef_ = vanillaFloatingRatePayoff_ANode.Attributes["id"].Value;
                 VanillaFloatingRatePayoff_A ob = new VanillaFloatingRatePayoff_A(vanillaFloatingRatePayoff_ANode);
                 IDManager.SetID(vanillaFloatingRatePayoff_AIDRef_, ob);
             }
             else if (vanillaFloatingRatePayoff_ANode.Attributes["href"] != null)
             {
                 vanillaFloatingRatePayoff_AIDRef_ = vanillaFloatingRatePayoff_ANode.Attributes["href"].Value;
             }
             else
             {
                 vanillaFloatingRatePayoff_A_ = new VanillaFloatingRatePayoff_A(vanillaFloatingRatePayoff_ANode);
             }
         }
         else
         {
             vanillaFloatingRatePayoff_A_ = new VanillaFloatingRatePayoff_A(vanillaFloatingRatePayoff_ANode);
         }
     }
     
 
 }