コード例 #1
0
        public FxOptionPremium(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList settlementInformationNodeList = xmlNode.SelectNodes("settlementInformation");

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

            foreach (XmlNode item in settlementInformationNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        settlementInformationIDRef = item.Attributes["id"].Name;
                        SettlementInformation ob = SettlementInformation();
                        IDManager.SetID(settlementInformationIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        settlementInformationIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        settlementInformation = new SettlementInformation(item);
                    }
                }
            }


            XmlNodeList quoteNodeList = xmlNode.SelectNodes("quote");

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

            foreach (XmlNode item in quoteNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        quoteIDRef = item.Attributes["id"].Name;
                        PremiumQuote ob = PremiumQuote();
                        IDManager.SetID(quoteIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        quoteIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        quote = new PremiumQuote(item);
                    }
                }
            }
        }
コード例 #2
0
 public FxOptionPremium(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode settlementInformationNode = xmlNode.SelectSingleNode("settlementInformation");
     
     if (settlementInformationNode != null)
     {
         if (settlementInformationNode.Attributes["href"] != null || settlementInformationNode.Attributes["id"] != null) 
         {
             if (settlementInformationNode.Attributes["id"] != null) 
             {
                 settlementInformationIDRef_ = settlementInformationNode.Attributes["id"].Value;
                 SettlementInformation ob = new SettlementInformation(settlementInformationNode);
                 IDManager.SetID(settlementInformationIDRef_, ob);
             }
             else if (settlementInformationNode.Attributes["href"] != null)
             {
                 settlementInformationIDRef_ = settlementInformationNode.Attributes["href"].Value;
             }
             else
             {
                 settlementInformation_ = new SettlementInformation(settlementInformationNode);
             }
         }
         else
         {
             settlementInformation_ = new SettlementInformation(settlementInformationNode);
         }
     }
     
 
     XmlNode quoteNode = xmlNode.SelectSingleNode("quote");
     
     if (quoteNode != null)
     {
         if (quoteNode.Attributes["href"] != null || quoteNode.Attributes["id"] != null) 
         {
             if (quoteNode.Attributes["id"] != null) 
             {
                 quoteIDRef_ = quoteNode.Attributes["id"].Value;
                 PremiumQuote ob = new PremiumQuote(quoteNode);
                 IDManager.SetID(quoteIDRef_, ob);
             }
             else if (quoteNode.Attributes["href"] != null)
             {
                 quoteIDRef_ = quoteNode.Attributes["href"].Value;
             }
             else
             {
                 quote_ = new PremiumQuote(quoteNode);
             }
         }
         else
         {
             quote_ = new PremiumQuote(quoteNode);
         }
     }
     
 
 }
コード例 #3
0
 public FxOptionPremium(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList settlementInformationNodeList = xmlNode.SelectNodes("settlementInformation");
     if (settlementInformationNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in settlementInformationNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 settlementInformationIDRef = item.Attributes["id"].Name;
                 SettlementInformation ob = SettlementInformation();
                 IDManager.SetID(settlementInformationIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 settlementInformationIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 settlementInformation = new SettlementInformation(item);
             }
         }
     }
     
 
     XmlNodeList quoteNodeList = xmlNode.SelectNodes("quote");
     if (quoteNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in quoteNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 quoteIDRef = item.Attributes["id"].Name;
                 PremiumQuote ob = PremiumQuote();
                 IDManager.SetID(quoteIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 quoteIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 quote = new PremiumQuote(item);
             }
         }
     }
     
 
 }
コード例 #4
0
        public FxOptionPremium(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode settlementInformationNode = xmlNode.SelectSingleNode("settlementInformation");

            if (settlementInformationNode != null)
            {
                if (settlementInformationNode.Attributes["href"] != null || settlementInformationNode.Attributes["id"] != null)
                {
                    if (settlementInformationNode.Attributes["id"] != null)
                    {
                        settlementInformationIDRef_ = settlementInformationNode.Attributes["id"].Value;
                        SettlementInformation ob = new SettlementInformation(settlementInformationNode);
                        IDManager.SetID(settlementInformationIDRef_, ob);
                    }
                    else if (settlementInformationNode.Attributes["href"] != null)
                    {
                        settlementInformationIDRef_ = settlementInformationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        settlementInformation_ = new SettlementInformation(settlementInformationNode);
                    }
                }
                else
                {
                    settlementInformation_ = new SettlementInformation(settlementInformationNode);
                }
            }


            XmlNode quoteNode = xmlNode.SelectSingleNode("quote");

            if (quoteNode != null)
            {
                if (quoteNode.Attributes["href"] != null || quoteNode.Attributes["id"] != null)
                {
                    if (quoteNode.Attributes["id"] != null)
                    {
                        quoteIDRef_ = quoteNode.Attributes["id"].Value;
                        PremiumQuote ob = new PremiumQuote(quoteNode);
                        IDManager.SetID(quoteIDRef_, ob);
                    }
                    else if (quoteNode.Attributes["href"] != null)
                    {
                        quoteIDRef_ = quoteNode.Attributes["href"].Value;
                    }
                    else
                    {
                        quote_ = new PremiumQuote(quoteNode);
                    }
                }
                else
                {
                    quote_ = new PremiumQuote(quoteNode);
                }
            }
        }