public Excel_structuredSwapLeg(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode excel_swapLegInfoNode = xmlNode.SelectSingleNode("excel_swapLegInfo");
     
     if (excel_swapLegInfoNode != null)
     {
         if (excel_swapLegInfoNode.Attributes["href"] != null || excel_swapLegInfoNode.Attributes["id"] != null) 
         {
             if (excel_swapLegInfoNode.Attributes["id"] != null) 
             {
                 excel_swapLegInfoIDRef_ = excel_swapLegInfoNode.Attributes["id"].Value;
                 Excel_swapLegInfo ob = new Excel_swapLegInfo(excel_swapLegInfoNode);
                 IDManager.SetID(excel_swapLegInfoIDRef_, ob);
             }
             else if (excel_swapLegInfoNode.Attributes["href"] != null)
             {
                 excel_swapLegInfoIDRef_ = excel_swapLegInfoNode.Attributes["href"].Value;
             }
             else
             {
                 excel_swapLegInfo_ = new Excel_swapLegInfo(excel_swapLegInfoNode);
             }
         }
         else
         {
             excel_swapLegInfo_ = new Excel_swapLegInfo(excel_swapLegInfoNode);
         }
     }
     
 
     XmlNode excel_interfaceNode = xmlNode.SelectSingleNode("excel_interface");
     
     if (excel_interfaceNode != null)
     {
         if (excel_interfaceNode.Attributes["href"] != null || excel_interfaceNode.Attributes["id"] != null) 
         {
             if (excel_interfaceNode.Attributes["id"] != null) 
             {
                 excel_interfaceIDRef_ = excel_interfaceNode.Attributes["id"].Value;
                 Excel_interface ob = new Excel_interface(excel_interfaceNode);
                 IDManager.SetID(excel_interfaceIDRef_, ob);
             }
             else if (excel_interfaceNode.Attributes["href"] != null)
             {
                 excel_interfaceIDRef_ = excel_interfaceNode.Attributes["href"].Value;
             }
             else
             {
                 excel_interface_ = new Excel_interface(excel_interfaceNode);
             }
         }
         else
         {
             excel_interface_ = new Excel_interface(excel_interfaceNode);
         }
     }
     
 
 }
示例#2
0
        public Excel_hifiveSwapLeg(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode excel_swapLegInfoNode = xmlNode.SelectSingleNode("excel_swapLegInfo");

            if (excel_swapLegInfoNode != null)
            {
                if (excel_swapLegInfoNode.Attributes["href"] != null || excel_swapLegInfoNode.Attributes["id"] != null)
                {
                    if (excel_swapLegInfoNode.Attributes["id"] != null)
                    {
                        excel_swapLegInfoIDRef_ = excel_swapLegInfoNode.Attributes["id"].Value;
                        Excel_swapLegInfo ob = new Excel_swapLegInfo(excel_swapLegInfoNode);
                        IDManager.SetID(excel_swapLegInfoIDRef_, ob);
                    }
                    else if (excel_swapLegInfoNode.Attributes["href"] != null)
                    {
                        excel_swapLegInfoIDRef_ = excel_swapLegInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_swapLegInfo_ = new Excel_swapLegInfo(excel_swapLegInfoNode);
                    }
                }
                else
                {
                    excel_swapLegInfo_ = new Excel_swapLegInfo(excel_swapLegInfoNode);
                }
            }


            XmlNode excel_interfaceNode = xmlNode.SelectSingleNode("excel_interface");

            if (excel_interfaceNode != null)
            {
                if (excel_interfaceNode.Attributes["href"] != null || excel_interfaceNode.Attributes["id"] != null)
                {
                    if (excel_interfaceNode.Attributes["id"] != null)
                    {
                        excel_interfaceIDRef_ = excel_interfaceNode.Attributes["id"].Value;
                        Excel_interface ob = new Excel_interface(excel_interfaceNode);
                        IDManager.SetID(excel_interfaceIDRef_, ob);
                    }
                    else if (excel_interfaceNode.Attributes["href"] != null)
                    {
                        excel_interfaceIDRef_ = excel_interfaceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_interface_ = new Excel_interface(excel_interfaceNode);
                    }
                }
                else
                {
                    excel_interface_ = new Excel_interface(excel_interfaceNode);
                }
            }
        }
 public Instrument(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode headerNode = xmlNode.SelectSingleNode("header");
     
     if (headerNode != null)
     {
         if (headerNode.Attributes["href"] != null || headerNode.Attributes["id"] != null) 
         {
             if (headerNode.Attributes["id"] != null) 
             {
                 headerIDRef_ = headerNode.Attributes["id"].Value;
                 Header ob = new Header(headerNode);
                 IDManager.SetID(headerIDRef_, ob);
             }
             else if (headerNode.Attributes["href"] != null)
             {
                 headerIDRef_ = headerNode.Attributes["href"].Value;
             }
             else
             {
                 header_ = new Header(headerNode);
             }
         }
         else
         {
             header_ = new Header(headerNode);
         }
     }
     
 
     XmlNode instPositionInfoNode = xmlNode.SelectSingleNode("instPositionInfo");
     
     if (instPositionInfoNode != null)
     {
         if (instPositionInfoNode.Attributes["href"] != null || instPositionInfoNode.Attributes["id"] != null) 
         {
             if (instPositionInfoNode.Attributes["id"] != null) 
             {
                 instPositionInfoIDRef_ = instPositionInfoNode.Attributes["id"].Value;
                 InstPositionInfo ob = new InstPositionInfo(instPositionInfoNode);
                 IDManager.SetID(instPositionInfoIDRef_, ob);
             }
             else if (instPositionInfoNode.Attributes["href"] != null)
             {
                 instPositionInfoIDRef_ = instPositionInfoNode.Attributes["href"].Value;
             }
             else
             {
                 instPositionInfo_ = new InstPositionInfo(instPositionInfoNode);
             }
         }
         else
         {
             instPositionInfo_ = new InstPositionInfo(instPositionInfoNode);
         }
     }
     
 
     XmlNode excel_interfaceNode = xmlNode.SelectSingleNode("excel_interface");
     
     if (excel_interfaceNode != null)
     {
         if (excel_interfaceNode.Attributes["href"] != null || excel_interfaceNode.Attributes["id"] != null) 
         {
             if (excel_interfaceNode.Attributes["id"] != null) 
             {
                 excel_interfaceIDRef_ = excel_interfaceNode.Attributes["id"].Value;
                 Excel_interface ob = new Excel_interface(excel_interfaceNode);
                 IDManager.SetID(excel_interfaceIDRef_, ob);
             }
             else if (excel_interfaceNode.Attributes["href"] != null)
             {
                 excel_interfaceIDRef_ = excel_interfaceNode.Attributes["href"].Value;
             }
             else
             {
                 excel_interface_ = new Excel_interface(excel_interfaceNode);
             }
         }
         else
         {
             excel_interface_ = new Excel_interface(excel_interfaceNode);
         }
     }
     
 
     XmlNode instrumentInfoNode = xmlNode.SelectSingleNode("instrumentInfo");
     
     if (instrumentInfoNode != null)
     {
         if (instrumentInfoNode.Attributes["href"] != null || instrumentInfoNode.Attributes["id"] != null) 
         {
             if (instrumentInfoNode.Attributes["id"] != null) 
             {
                 instrumentInfoIDRef_ = instrumentInfoNode.Attributes["id"].Value;
                 InstrumentInfo ob = new InstrumentInfo(instrumentInfoNode);
                 IDManager.SetID(instrumentInfoIDRef_, ob);
             }
             else if (instrumentInfoNode.Attributes["href"] != null)
             {
                 instrumentInfoIDRef_ = instrumentInfoNode.Attributes["href"].Value;
             }
             else
             {
                 instrumentInfo_ = new InstrumentInfo(instrumentInfoNode);
             }
         }
         else
         {
             instrumentInfo_ = new InstrumentInfo(instrumentInfoNode);
         }
     }
     
 
 }
        public Instrument(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode codeNode = xmlNode.SelectSingleNode("code");

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


            XmlNode excel_interfaceNode = xmlNode.SelectSingleNode("excel_interface");

            if (excel_interfaceNode != null)
            {
                if (excel_interfaceNode.Attributes["href"] != null || excel_interfaceNode.Attributes["id"] != null)
                {
                    if (excel_interfaceNode.Attributes["id"] != null)
                    {
                        excel_interfaceIDRef_ = excel_interfaceNode.Attributes["id"].Value;
                        Excel_interface ob = new Excel_interface(excel_interfaceNode);
                        IDManager.SetID(excel_interfaceIDRef_, ob);
                    }
                    else if (excel_interfaceNode.Attributes["href"] != null)
                    {
                        excel_interfaceIDRef_ = excel_interfaceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_interface_ = new Excel_interface(excel_interfaceNode);
                    }
                }
                else
                {
                    excel_interface_ = new Excel_interface(excel_interfaceNode);
                }
            }


            XmlNode excel_swapInterfaceNode = xmlNode.SelectSingleNode("excel_swapInterface");

            if (excel_swapInterfaceNode != null)
            {
                if (excel_swapInterfaceNode.Attributes["href"] != null || excel_swapInterfaceNode.Attributes["id"] != null)
                {
                    if (excel_swapInterfaceNode.Attributes["id"] != null)
                    {
                        excel_swapInterfaceIDRef_ = excel_swapInterfaceNode.Attributes["id"].Value;
                        Excel_swapInterface ob = new Excel_swapInterface(excel_swapInterfaceNode);
                        IDManager.SetID(excel_swapInterfaceIDRef_, ob);
                    }
                    else if (excel_swapInterfaceNode.Attributes["href"] != null)
                    {
                        excel_swapInterfaceIDRef_ = excel_swapInterfaceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_swapInterface_ = new Excel_swapInterface(excel_swapInterfaceNode);
                    }
                }
                else
                {
                    excel_swapInterface_ = new Excel_swapInterface(excel_swapInterfaceNode);
                }
            }
        }
 public Instrument(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode codeNode = xmlNode.SelectSingleNode("code");
     
     if (codeNode != null)
     {
         if (codeNode.Attributes["href"] != null || codeNode.Attributes["id"] != null) 
         {
             if (codeNode.Attributes["id"] != null) 
             {
                 codeIDRef_ = codeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(codeNode);
                 IDManager.SetID(codeIDRef_, ob);
             }
             else if (codeNode.Attributes["href"] != null)
             {
                 codeIDRef_ = codeNode.Attributes["href"].Value;
             }
             else
             {
                 code_ = new XsdTypeToken(codeNode);
             }
         }
         else
         {
             code_ = new XsdTypeToken(codeNode);
         }
     }
     
 
     XmlNode excel_interfaceNode = xmlNode.SelectSingleNode("excel_interface");
     
     if (excel_interfaceNode != null)
     {
         if (excel_interfaceNode.Attributes["href"] != null || excel_interfaceNode.Attributes["id"] != null) 
         {
             if (excel_interfaceNode.Attributes["id"] != null) 
             {
                 excel_interfaceIDRef_ = excel_interfaceNode.Attributes["id"].Value;
                 Excel_interface ob = new Excel_interface(excel_interfaceNode);
                 IDManager.SetID(excel_interfaceIDRef_, ob);
             }
             else if (excel_interfaceNode.Attributes["href"] != null)
             {
                 excel_interfaceIDRef_ = excel_interfaceNode.Attributes["href"].Value;
             }
             else
             {
                 excel_interface_ = new Excel_interface(excel_interfaceNode);
             }
         }
         else
         {
             excel_interface_ = new Excel_interface(excel_interfaceNode);
         }
     }
     
 
     XmlNode excel_swapInterfaceNode = xmlNode.SelectSingleNode("excel_swapInterface");
     
     if (excel_swapInterfaceNode != null)
     {
         if (excel_swapInterfaceNode.Attributes["href"] != null || excel_swapInterfaceNode.Attributes["id"] != null) 
         {
             if (excel_swapInterfaceNode.Attributes["id"] != null) 
             {
                 excel_swapInterfaceIDRef_ = excel_swapInterfaceNode.Attributes["id"].Value;
                 Excel_swapInterface ob = new Excel_swapInterface(excel_swapInterfaceNode);
                 IDManager.SetID(excel_swapInterfaceIDRef_, ob);
             }
             else if (excel_swapInterfaceNode.Attributes["href"] != null)
             {
                 excel_swapInterfaceIDRef_ = excel_swapInterfaceNode.Attributes["href"].Value;
             }
             else
             {
                 excel_swapInterface_ = new Excel_swapInterface(excel_swapInterfaceNode);
             }
         }
         else
         {
             excel_swapInterface_ = new Excel_swapInterface(excel_swapInterfaceNode);
         }
     }
     
 
 }
        public Instrument(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode headerNode = xmlNode.SelectSingleNode("header");

            if (headerNode != null)
            {
                if (headerNode.Attributes["href"] != null || headerNode.Attributes["id"] != null)
                {
                    if (headerNode.Attributes["id"] != null)
                    {
                        headerIDRef_ = headerNode.Attributes["id"].Value;
                        Header ob = new Header(headerNode);
                        IDManager.SetID(headerIDRef_, ob);
                    }
                    else if (headerNode.Attributes["href"] != null)
                    {
                        headerIDRef_ = headerNode.Attributes["href"].Value;
                    }
                    else
                    {
                        header_ = new Header(headerNode);
                    }
                }
                else
                {
                    header_ = new Header(headerNode);
                }
            }


            XmlNode instPositionInfoNode = xmlNode.SelectSingleNode("instPositionInfo");

            if (instPositionInfoNode != null)
            {
                if (instPositionInfoNode.Attributes["href"] != null || instPositionInfoNode.Attributes["id"] != null)
                {
                    if (instPositionInfoNode.Attributes["id"] != null)
                    {
                        instPositionInfoIDRef_ = instPositionInfoNode.Attributes["id"].Value;
                        InstPositionInfo ob = new InstPositionInfo(instPositionInfoNode);
                        IDManager.SetID(instPositionInfoIDRef_, ob);
                    }
                    else if (instPositionInfoNode.Attributes["href"] != null)
                    {
                        instPositionInfoIDRef_ = instPositionInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        instPositionInfo_ = new InstPositionInfo(instPositionInfoNode);
                    }
                }
                else
                {
                    instPositionInfo_ = new InstPositionInfo(instPositionInfoNode);
                }
            }


            XmlNode excel_interfaceNode = xmlNode.SelectSingleNode("excel_interface");

            if (excel_interfaceNode != null)
            {
                if (excel_interfaceNode.Attributes["href"] != null || excel_interfaceNode.Attributes["id"] != null)
                {
                    if (excel_interfaceNode.Attributes["id"] != null)
                    {
                        excel_interfaceIDRef_ = excel_interfaceNode.Attributes["id"].Value;
                        Excel_interface ob = new Excel_interface(excel_interfaceNode);
                        IDManager.SetID(excel_interfaceIDRef_, ob);
                    }
                    else if (excel_interfaceNode.Attributes["href"] != null)
                    {
                        excel_interfaceIDRef_ = excel_interfaceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_interface_ = new Excel_interface(excel_interfaceNode);
                    }
                }
                else
                {
                    excel_interface_ = new Excel_interface(excel_interfaceNode);
                }
            }


            XmlNode instrumentInfoNode = xmlNode.SelectSingleNode("instrumentInfo");

            if (instrumentInfoNode != null)
            {
                if (instrumentInfoNode.Attributes["href"] != null || instrumentInfoNode.Attributes["id"] != null)
                {
                    if (instrumentInfoNode.Attributes["id"] != null)
                    {
                        instrumentInfoIDRef_ = instrumentInfoNode.Attributes["id"].Value;
                        InstrumentInfo ob = new InstrumentInfo(instrumentInfoNode);
                        IDManager.SetID(instrumentInfoIDRef_, ob);
                    }
                    else if (instrumentInfoNode.Attributes["href"] != null)
                    {
                        instrumentInfoIDRef_ = instrumentInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        instrumentInfo_ = new InstrumentInfo(instrumentInfoNode);
                    }
                }
                else
                {
                    instrumentInfo_ = new InstrumentInfo(instrumentInfoNode);
                }
            }
        }