示例#1
0
        public Excel_compositeOption_subtype(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");

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


            XmlNode excel_vanillaCallPutNode = xmlNode.SelectSingleNode("excel_vanillaCallPut");

            if (excel_vanillaCallPutNode != null)
            {
                if (excel_vanillaCallPutNode.Attributes["href"] != null || excel_vanillaCallPutNode.Attributes["id"] != null)
                {
                    if (excel_vanillaCallPutNode.Attributes["id"] != null)
                    {
                        excel_vanillaCallPutIDRef_ = excel_vanillaCallPutNode.Attributes["id"].Value;
                        Excel_vanillaCallPut ob = new Excel_vanillaCallPut(excel_vanillaCallPutNode);
                        IDManager.SetID(excel_vanillaCallPutIDRef_, ob);
                    }
                    else if (excel_vanillaCallPutNode.Attributes["href"] != null)
                    {
                        excel_vanillaCallPutIDRef_ = excel_vanillaCallPutNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_vanillaCallPut_ = new Excel_vanillaCallPut(excel_vanillaCallPutNode);
                    }
                }
                else
                {
                    excel_vanillaCallPut_ = new Excel_vanillaCallPut(excel_vanillaCallPutNode);
                }
            }


            XmlNode excel_upInOutCallNode = xmlNode.SelectSingleNode("excel_upInOutCall");

            if (excel_upInOutCallNode != null)
            {
                if (excel_upInOutCallNode.Attributes["href"] != null || excel_upInOutCallNode.Attributes["id"] != null)
                {
                    if (excel_upInOutCallNode.Attributes["id"] != null)
                    {
                        excel_upInOutCallIDRef_ = excel_upInOutCallNode.Attributes["id"].Value;
                        Excel_upInOutCall ob = new Excel_upInOutCall(excel_upInOutCallNode);
                        IDManager.SetID(excel_upInOutCallIDRef_, ob);
                    }
                    else if (excel_upInOutCallNode.Attributes["href"] != null)
                    {
                        excel_upInOutCallIDRef_ = excel_upInOutCallNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_upInOutCall_ = new Excel_upInOutCall(excel_upInOutCallNode);
                    }
                }
                else
                {
                    excel_upInOutCall_ = new Excel_upInOutCall(excel_upInOutCallNode);
                }
            }


            XmlNode excel_downInOutPutNode = xmlNode.SelectSingleNode("excel_downInOutPut");

            if (excel_downInOutPutNode != null)
            {
                if (excel_downInOutPutNode.Attributes["href"] != null || excel_downInOutPutNode.Attributes["id"] != null)
                {
                    if (excel_downInOutPutNode.Attributes["id"] != null)
                    {
                        excel_downInOutPutIDRef_ = excel_downInOutPutNode.Attributes["id"].Value;
                        Excel_downInOutPut ob = new Excel_downInOutPut(excel_downInOutPutNode);
                        IDManager.SetID(excel_downInOutPutIDRef_, ob);
                    }
                    else if (excel_downInOutPutNode.Attributes["href"] != null)
                    {
                        excel_downInOutPutIDRef_ = excel_downInOutPutNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_downInOutPut_ = new Excel_downInOutPut(excel_downInOutPutNode);
                    }
                }
                else
                {
                    excel_downInOutPut_ = new Excel_downInOutPut(excel_downInOutPutNode);
                }
            }


            XmlNode excel_digitalCallPutNode = xmlNode.SelectSingleNode("excel_digitalCallPut");

            if (excel_digitalCallPutNode != null)
            {
                if (excel_digitalCallPutNode.Attributes["href"] != null || excel_digitalCallPutNode.Attributes["id"] != null)
                {
                    if (excel_digitalCallPutNode.Attributes["id"] != null)
                    {
                        excel_digitalCallPutIDRef_ = excel_digitalCallPutNode.Attributes["id"].Value;
                        Excel_digitalCallPut ob = new Excel_digitalCallPut(excel_digitalCallPutNode);
                        IDManager.SetID(excel_digitalCallPutIDRef_, ob);
                    }
                    else if (excel_digitalCallPutNode.Attributes["href"] != null)
                    {
                        excel_digitalCallPutIDRef_ = excel_digitalCallPutNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_digitalCallPut_ = new Excel_digitalCallPut(excel_digitalCallPutNode);
                    }
                }
                else
                {
                    excel_digitalCallPut_ = new Excel_digitalCallPut(excel_digitalCallPutNode);
                }
            }
        }
 public Excel_compositeOption_subtype(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");
     
     if (excel_typeNode != null)
     {
         if (excel_typeNode.Attributes["href"] != null || excel_typeNode.Attributes["id"] != null) 
         {
             if (excel_typeNode.Attributes["id"] != null) 
             {
                 excel_typeIDRef_ = excel_typeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(excel_typeNode);
                 IDManager.SetID(excel_typeIDRef_, ob);
             }
             else if (excel_typeNode.Attributes["href"] != null)
             {
                 excel_typeIDRef_ = excel_typeNode.Attributes["href"].Value;
             }
             else
             {
                 excel_type_ = new XsdTypeToken(excel_typeNode);
             }
         }
         else
         {
             excel_type_ = new XsdTypeToken(excel_typeNode);
         }
     }
     
 
     XmlNode excel_vanillaCallPutNode = xmlNode.SelectSingleNode("excel_vanillaCallPut");
     
     if (excel_vanillaCallPutNode != null)
     {
         if (excel_vanillaCallPutNode.Attributes["href"] != null || excel_vanillaCallPutNode.Attributes["id"] != null) 
         {
             if (excel_vanillaCallPutNode.Attributes["id"] != null) 
             {
                 excel_vanillaCallPutIDRef_ = excel_vanillaCallPutNode.Attributes["id"].Value;
                 Excel_vanillaCallPut ob = new Excel_vanillaCallPut(excel_vanillaCallPutNode);
                 IDManager.SetID(excel_vanillaCallPutIDRef_, ob);
             }
             else if (excel_vanillaCallPutNode.Attributes["href"] != null)
             {
                 excel_vanillaCallPutIDRef_ = excel_vanillaCallPutNode.Attributes["href"].Value;
             }
             else
             {
                 excel_vanillaCallPut_ = new Excel_vanillaCallPut(excel_vanillaCallPutNode);
             }
         }
         else
         {
             excel_vanillaCallPut_ = new Excel_vanillaCallPut(excel_vanillaCallPutNode);
         }
     }
     
 
     XmlNode excel_upInOutCallNode = xmlNode.SelectSingleNode("excel_upInOutCall");
     
     if (excel_upInOutCallNode != null)
     {
         if (excel_upInOutCallNode.Attributes["href"] != null || excel_upInOutCallNode.Attributes["id"] != null) 
         {
             if (excel_upInOutCallNode.Attributes["id"] != null) 
             {
                 excel_upInOutCallIDRef_ = excel_upInOutCallNode.Attributes["id"].Value;
                 Excel_upInOutCall ob = new Excel_upInOutCall(excel_upInOutCallNode);
                 IDManager.SetID(excel_upInOutCallIDRef_, ob);
             }
             else if (excel_upInOutCallNode.Attributes["href"] != null)
             {
                 excel_upInOutCallIDRef_ = excel_upInOutCallNode.Attributes["href"].Value;
             }
             else
             {
                 excel_upInOutCall_ = new Excel_upInOutCall(excel_upInOutCallNode);
             }
         }
         else
         {
             excel_upInOutCall_ = new Excel_upInOutCall(excel_upInOutCallNode);
         }
     }
     
 
     XmlNode excel_downInOutPutNode = xmlNode.SelectSingleNode("excel_downInOutPut");
     
     if (excel_downInOutPutNode != null)
     {
         if (excel_downInOutPutNode.Attributes["href"] != null || excel_downInOutPutNode.Attributes["id"] != null) 
         {
             if (excel_downInOutPutNode.Attributes["id"] != null) 
             {
                 excel_downInOutPutIDRef_ = excel_downInOutPutNode.Attributes["id"].Value;
                 Excel_downInOutPut ob = new Excel_downInOutPut(excel_downInOutPutNode);
                 IDManager.SetID(excel_downInOutPutIDRef_, ob);
             }
             else if (excel_downInOutPutNode.Attributes["href"] != null)
             {
                 excel_downInOutPutIDRef_ = excel_downInOutPutNode.Attributes["href"].Value;
             }
             else
             {
                 excel_downInOutPut_ = new Excel_downInOutPut(excel_downInOutPutNode);
             }
         }
         else
         {
             excel_downInOutPut_ = new Excel_downInOutPut(excel_downInOutPutNode);
         }
     }
     
 
     XmlNode excel_digitalCallPutNode = xmlNode.SelectSingleNode("excel_digitalCallPut");
     
     if (excel_digitalCallPutNode != null)
     {
         if (excel_digitalCallPutNode.Attributes["href"] != null || excel_digitalCallPutNode.Attributes["id"] != null) 
         {
             if (excel_digitalCallPutNode.Attributes["id"] != null) 
             {
                 excel_digitalCallPutIDRef_ = excel_digitalCallPutNode.Attributes["id"].Value;
                 Excel_digitalCallPut ob = new Excel_digitalCallPut(excel_digitalCallPutNode);
                 IDManager.SetID(excel_digitalCallPutIDRef_, ob);
             }
             else if (excel_digitalCallPutNode.Attributes["href"] != null)
             {
                 excel_digitalCallPutIDRef_ = excel_digitalCallPutNode.Attributes["href"].Value;
             }
             else
             {
                 excel_digitalCallPut_ = new Excel_digitalCallPut(excel_digitalCallPutNode);
             }
         }
         else
         {
             excel_digitalCallPut_ = new Excel_digitalCallPut(excel_digitalCallPutNode);
         }
     }
     
 
 }