コード例 #1
0
        public FxRateAsset(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList quotedCurrencyPairNodeList = xmlNode.SelectNodes("quotedCurrencyPair");

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

            foreach (XmlNode item in quotedCurrencyPairNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        quotedCurrencyPairIDRef = item.Attributes["id"].Name;
                        QuotedCurrencyPair ob = QuotedCurrencyPair();
                        IDManager.SetID(quotedCurrencyPairIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        quotedCurrencyPairIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        quotedCurrencyPair = new QuotedCurrencyPair(item);
                    }
                }
            }


            XmlNodeList rateSourceNodeList = xmlNode.SelectNodes("rateSource");

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

            foreach (XmlNode item in rateSourceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        rateSourceIDRef = item.Attributes["id"].Name;
                        FxSpotRateSource ob = FxSpotRateSource();
                        IDManager.SetID(rateSourceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        rateSourceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        rateSource = new FxSpotRateSource(item);
                    }
                }
            }
        }
コード例 #2
0
 public FxRateAsset(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode quotedCurrencyPairNode = xmlNode.SelectSingleNode("quotedCurrencyPair");
     
     if (quotedCurrencyPairNode != null)
     {
         if (quotedCurrencyPairNode.Attributes["href"] != null || quotedCurrencyPairNode.Attributes["id"] != null) 
         {
             if (quotedCurrencyPairNode.Attributes["id"] != null) 
             {
                 quotedCurrencyPairIDRef_ = quotedCurrencyPairNode.Attributes["id"].Value;
                 QuotedCurrencyPair ob = new QuotedCurrencyPair(quotedCurrencyPairNode);
                 IDManager.SetID(quotedCurrencyPairIDRef_, ob);
             }
             else if (quotedCurrencyPairNode.Attributes["href"] != null)
             {
                 quotedCurrencyPairIDRef_ = quotedCurrencyPairNode.Attributes["href"].Value;
             }
             else
             {
                 quotedCurrencyPair_ = new QuotedCurrencyPair(quotedCurrencyPairNode);
             }
         }
         else
         {
             quotedCurrencyPair_ = new QuotedCurrencyPair(quotedCurrencyPairNode);
         }
     }
     
 
     XmlNode rateSourceNode = xmlNode.SelectSingleNode("rateSource");
     
     if (rateSourceNode != null)
     {
         if (rateSourceNode.Attributes["href"] != null || rateSourceNode.Attributes["id"] != null) 
         {
             if (rateSourceNode.Attributes["id"] != null) 
             {
                 rateSourceIDRef_ = rateSourceNode.Attributes["id"].Value;
                 FxSpotRateSource ob = new FxSpotRateSource(rateSourceNode);
                 IDManager.SetID(rateSourceIDRef_, ob);
             }
             else if (rateSourceNode.Attributes["href"] != null)
             {
                 rateSourceIDRef_ = rateSourceNode.Attributes["href"].Value;
             }
             else
             {
                 rateSource_ = new FxSpotRateSource(rateSourceNode);
             }
         }
         else
         {
             rateSource_ = new FxSpotRateSource(rateSourceNode);
         }
     }
     
 
 }
コード例 #3
0
 public FxRateAsset(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList quotedCurrencyPairNodeList = xmlNode.SelectNodes("quotedCurrencyPair");
     if (quotedCurrencyPairNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in quotedCurrencyPairNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 quotedCurrencyPairIDRef = item.Attributes["id"].Name;
                 QuotedCurrencyPair ob = QuotedCurrencyPair();
                 IDManager.SetID(quotedCurrencyPairIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 quotedCurrencyPairIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 quotedCurrencyPair = new QuotedCurrencyPair(item);
             }
         }
     }
     
 
     XmlNodeList rateSourceNodeList = xmlNode.SelectNodes("rateSource");
     if (rateSourceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in rateSourceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 rateSourceIDRef = item.Attributes["id"].Name;
                 FxSpotRateSource ob = FxSpotRateSource();
                 IDManager.SetID(rateSourceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 rateSourceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 rateSource = new FxSpotRateSource(item);
             }
         }
     }
     
 
 }
コード例 #4
0
        public FxRateAsset(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode quotedCurrencyPairNode = xmlNode.SelectSingleNode("quotedCurrencyPair");

            if (quotedCurrencyPairNode != null)
            {
                if (quotedCurrencyPairNode.Attributes["href"] != null || quotedCurrencyPairNode.Attributes["id"] != null)
                {
                    if (quotedCurrencyPairNode.Attributes["id"] != null)
                    {
                        quotedCurrencyPairIDRef_ = quotedCurrencyPairNode.Attributes["id"].Value;
                        QuotedCurrencyPair ob = new QuotedCurrencyPair(quotedCurrencyPairNode);
                        IDManager.SetID(quotedCurrencyPairIDRef_, ob);
                    }
                    else if (quotedCurrencyPairNode.Attributes["href"] != null)
                    {
                        quotedCurrencyPairIDRef_ = quotedCurrencyPairNode.Attributes["href"].Value;
                    }
                    else
                    {
                        quotedCurrencyPair_ = new QuotedCurrencyPair(quotedCurrencyPairNode);
                    }
                }
                else
                {
                    quotedCurrencyPair_ = new QuotedCurrencyPair(quotedCurrencyPairNode);
                }
            }


            XmlNode rateSourceNode = xmlNode.SelectSingleNode("rateSource");

            if (rateSourceNode != null)
            {
                if (rateSourceNode.Attributes["href"] != null || rateSourceNode.Attributes["id"] != null)
                {
                    if (rateSourceNode.Attributes["id"] != null)
                    {
                        rateSourceIDRef_ = rateSourceNode.Attributes["id"].Value;
                        FxSpotRateSource ob = new FxSpotRateSource(rateSourceNode);
                        IDManager.SetID(rateSourceIDRef_, ob);
                    }
                    else if (rateSourceNode.Attributes["href"] != null)
                    {
                        rateSourceIDRef_ = rateSourceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        rateSource_ = new FxSpotRateSource(rateSourceNode);
                    }
                }
                else
                {
                    rateSource_ = new FxSpotRateSource(rateSourceNode);
                }
            }
        }
コード例 #5
0
 public Quanto(XmlNode xmlNode)
 {
     XmlNodeList fxRateNodeList = xmlNode.SelectNodes("fxRate");
     
     foreach (XmlNode item in fxRateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 fxRateIDRef = item.Attributes["id"].Name;
                 List<FxRate> ob = new List<FxRate>();
                 ob.Add(new FxRate(item));
                 IDManager.SetID(fxRateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 fxRateIDRef = item.Attributes["href"].Name;
             }
             else
             {
             fxRate.Add(new FxRate(item));
             }
         }
     }
     
 
     XmlNodeList fxSpotRateSourceNodeList = xmlNode.SelectNodes("fxSpotRateSource");
     if (fxSpotRateSourceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in fxSpotRateSourceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 fxSpotRateSourceIDRef = item.Attributes["id"].Name;
                 FxSpotRateSource ob = FxSpotRateSource();
                 IDManager.SetID(fxSpotRateSourceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 fxSpotRateSourceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 fxSpotRateSource = new FxSpotRateSource(item);
             }
         }
     }
     
 
 }
コード例 #6
0
        public Quanto(XmlNode xmlNode)
        {
            XmlNodeList fxRateNodeList = xmlNode.SelectNodes("fxRate");

            foreach (XmlNode item in fxRateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        fxRateIDRef = item.Attributes["id"].Name;
                        List <FxRate> ob = new List <FxRate>();
                        ob.Add(new FxRate(item));
                        IDManager.SetID(fxRateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        fxRateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        fxRate.Add(new FxRate(item));
                    }
                }
            }


            XmlNodeList fxSpotRateSourceNodeList = xmlNode.SelectNodes("fxSpotRateSource");

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

            foreach (XmlNode item in fxSpotRateSourceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        fxSpotRateSourceIDRef = item.Attributes["id"].Name;
                        FxSpotRateSource ob = FxSpotRateSource();
                        IDManager.SetID(fxSpotRateSourceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        fxSpotRateSourceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        fxSpotRateSource = new FxSpotRateSource(item);
                    }
                }
            }
        }
コード例 #7
0
 public Composite(XmlNode xmlNode)
 {
     XmlNode determinationMethodNode = xmlNode.SelectSingleNode("determinationMethod");
     
     if (determinationMethodNode != null)
     {
         if (determinationMethodNode.Attributes["href"] != null || determinationMethodNode.Attributes["id"] != null) 
         {
             if (determinationMethodNode.Attributes["id"] != null) 
             {
                 determinationMethodIDRef_ = determinationMethodNode.Attributes["id"].Value;
                 DeterminationMethod ob = new DeterminationMethod(determinationMethodNode);
                 IDManager.SetID(determinationMethodIDRef_, ob);
             }
             else if (determinationMethodNode.Attributes["href"] != null)
             {
                 determinationMethodIDRef_ = determinationMethodNode.Attributes["href"].Value;
             }
             else
             {
                 determinationMethod_ = new DeterminationMethod(determinationMethodNode);
             }
         }
         else
         {
             determinationMethod_ = new DeterminationMethod(determinationMethodNode);
         }
     }
     
 
     XmlNode relativeDateNode = xmlNode.SelectSingleNode("relativeDate");
     
     if (relativeDateNode != null)
     {
         if (relativeDateNode.Attributes["href"] != null || relativeDateNode.Attributes["id"] != null) 
         {
             if (relativeDateNode.Attributes["id"] != null) 
             {
                 relativeDateIDRef_ = relativeDateNode.Attributes["id"].Value;
                 RelativeDateOffset ob = new RelativeDateOffset(relativeDateNode);
                 IDManager.SetID(relativeDateIDRef_, ob);
             }
             else if (relativeDateNode.Attributes["href"] != null)
             {
                 relativeDateIDRef_ = relativeDateNode.Attributes["href"].Value;
             }
             else
             {
                 relativeDate_ = new RelativeDateOffset(relativeDateNode);
             }
         }
         else
         {
             relativeDate_ = new RelativeDateOffset(relativeDateNode);
         }
     }
     
 
     XmlNode fxSpotRateSourceNode = xmlNode.SelectSingleNode("fxSpotRateSource");
     
     if (fxSpotRateSourceNode != null)
     {
         if (fxSpotRateSourceNode.Attributes["href"] != null || fxSpotRateSourceNode.Attributes["id"] != null) 
         {
             if (fxSpotRateSourceNode.Attributes["id"] != null) 
             {
                 fxSpotRateSourceIDRef_ = fxSpotRateSourceNode.Attributes["id"].Value;
                 FxSpotRateSource ob = new FxSpotRateSource(fxSpotRateSourceNode);
                 IDManager.SetID(fxSpotRateSourceIDRef_, ob);
             }
             else if (fxSpotRateSourceNode.Attributes["href"] != null)
             {
                 fxSpotRateSourceIDRef_ = fxSpotRateSourceNode.Attributes["href"].Value;
             }
             else
             {
                 fxSpotRateSource_ = new FxSpotRateSource(fxSpotRateSourceNode);
             }
         }
         else
         {
             fxSpotRateSource_ = new FxSpotRateSource(fxSpotRateSourceNode);
         }
     }
     
 
 }
        public FxLinkedNotionalSchedule(XmlNode xmlNode)
        {
            XmlNodeList constantNotionalScheduleReferenceNodeList = xmlNode.SelectNodes("constantNotionalScheduleReference");

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

            foreach (XmlNode item in constantNotionalScheduleReferenceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        constantNotionalScheduleReferenceIDRef = item.Attributes["id"].Name;
                        NotionalReference ob = NotionalReference();
                        IDManager.SetID(constantNotionalScheduleReferenceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        constantNotionalScheduleReferenceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        constantNotionalScheduleReference = new NotionalReference(item);
                    }
                }
            }


            XmlNodeList initialValueNodeList = xmlNode.SelectNodes("initialValue");

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

            foreach (XmlNode item in initialValueNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        initialValueIDRef = item.Attributes["id"].Name;
                        XsdTypeDecimal ob = XsdTypeDecimal();
                        IDManager.SetID(initialValueIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        initialValueIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        initialValue = new XsdTypeDecimal(item);
                    }
                }
            }


            XmlNodeList varyingNotionalCurrencyNodeList = xmlNode.SelectNodes("varyingNotionalCurrency");

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

            foreach (XmlNode item in varyingNotionalCurrencyNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        varyingNotionalCurrencyIDRef = item.Attributes["id"].Name;
                        Currency ob = Currency();
                        IDManager.SetID(varyingNotionalCurrencyIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        varyingNotionalCurrencyIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        varyingNotionalCurrency = new Currency(item);
                    }
                }
            }


            XmlNodeList varyingNotionalFixingDatesNodeList = xmlNode.SelectNodes("varyingNotionalFixingDates");

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

            foreach (XmlNode item in varyingNotionalFixingDatesNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        varyingNotionalFixingDatesIDRef = item.Attributes["id"].Name;
                        RelativeDateOffset ob = RelativeDateOffset();
                        IDManager.SetID(varyingNotionalFixingDatesIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        varyingNotionalFixingDatesIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        varyingNotionalFixingDates = new RelativeDateOffset(item);
                    }
                }
            }


            XmlNodeList fxSpotRateSourceNodeList = xmlNode.SelectNodes("fxSpotRateSource");

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

            foreach (XmlNode item in fxSpotRateSourceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        fxSpotRateSourceIDRef = item.Attributes["id"].Name;
                        FxSpotRateSource ob = FxSpotRateSource();
                        IDManager.SetID(fxSpotRateSourceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        fxSpotRateSourceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        fxSpotRateSource = new FxSpotRateSource(item);
                    }
                }
            }


            XmlNodeList varyingNotionalInterimExchangePaymentDatesNodeList = xmlNode.SelectNodes("varyingNotionalInterimExchangePaymentDates");

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

            foreach (XmlNode item in varyingNotionalInterimExchangePaymentDatesNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        varyingNotionalInterimExchangePaymentDatesIDRef = item.Attributes["id"].Name;
                        RelativeDateOffset ob = RelativeDateOffset();
                        IDManager.SetID(varyingNotionalInterimExchangePaymentDatesIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        varyingNotionalInterimExchangePaymentDatesIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        varyingNotionalInterimExchangePaymentDates = new RelativeDateOffset(item);
                    }
                }
            }
        }
コード例 #9
0
 public Composite(XmlNode xmlNode)
 {
     XmlNodeList determinationMethodNodeList = xmlNode.SelectNodes("determinationMethod");
     if (determinationMethodNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in determinationMethodNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 determinationMethodIDRef = item.Attributes["id"].Name;
                 DeterminationMethod ob = DeterminationMethod();
                 IDManager.SetID(determinationMethodIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 determinationMethodIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 determinationMethod = new DeterminationMethod(item);
             }
         }
     }
     
 
     XmlNodeList relativeDateNodeList = xmlNode.SelectNodes("relativeDate");
     if (relativeDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in relativeDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 relativeDateIDRef = item.Attributes["id"].Name;
                 RelativeDateOffset ob = RelativeDateOffset();
                 IDManager.SetID(relativeDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 relativeDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 relativeDate = new RelativeDateOffset(item);
             }
         }
     }
     
 
     XmlNodeList fxSpotRateSourceNodeList = xmlNode.SelectNodes("fxSpotRateSource");
     if (fxSpotRateSourceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in fxSpotRateSourceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 fxSpotRateSourceIDRef = item.Attributes["id"].Name;
                 FxSpotRateSource ob = FxSpotRateSource();
                 IDManager.SetID(fxSpotRateSourceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 fxSpotRateSourceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 fxSpotRateSource = new FxSpotRateSource(item);
             }
         }
     }
     
 
 }
 public FxLinkedNotionalSchedule(XmlNode xmlNode)
 {
     XmlNode constantNotionalScheduleReferenceNode = xmlNode.SelectSingleNode("constantNotionalScheduleReference");
     
     if (constantNotionalScheduleReferenceNode != null)
     {
         if (constantNotionalScheduleReferenceNode.Attributes["href"] != null || constantNotionalScheduleReferenceNode.Attributes["id"] != null) 
         {
             if (constantNotionalScheduleReferenceNode.Attributes["id"] != null) 
             {
                 constantNotionalScheduleReferenceIDRef_ = constantNotionalScheduleReferenceNode.Attributes["id"].Value;
                 NotionalReference ob = new NotionalReference(constantNotionalScheduleReferenceNode);
                 IDManager.SetID(constantNotionalScheduleReferenceIDRef_, ob);
             }
             else if (constantNotionalScheduleReferenceNode.Attributes["href"] != null)
             {
                 constantNotionalScheduleReferenceIDRef_ = constantNotionalScheduleReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 constantNotionalScheduleReference_ = new NotionalReference(constantNotionalScheduleReferenceNode);
             }
         }
         else
         {
             constantNotionalScheduleReference_ = new NotionalReference(constantNotionalScheduleReferenceNode);
         }
     }
     
 
     XmlNode initialValueNode = xmlNode.SelectSingleNode("initialValue");
     
     if (initialValueNode != null)
     {
         if (initialValueNode.Attributes["href"] != null || initialValueNode.Attributes["id"] != null) 
         {
             if (initialValueNode.Attributes["id"] != null) 
             {
                 initialValueIDRef_ = initialValueNode.Attributes["id"].Value;
                 XsdTypeDecimal ob = new XsdTypeDecimal(initialValueNode);
                 IDManager.SetID(initialValueIDRef_, ob);
             }
             else if (initialValueNode.Attributes["href"] != null)
             {
                 initialValueIDRef_ = initialValueNode.Attributes["href"].Value;
             }
             else
             {
                 initialValue_ = new XsdTypeDecimal(initialValueNode);
             }
         }
         else
         {
             initialValue_ = new XsdTypeDecimal(initialValueNode);
         }
     }
     
 
     XmlNode varyingNotionalCurrencyNode = xmlNode.SelectSingleNode("varyingNotionalCurrency");
     
     if (varyingNotionalCurrencyNode != null)
     {
         if (varyingNotionalCurrencyNode.Attributes["href"] != null || varyingNotionalCurrencyNode.Attributes["id"] != null) 
         {
             if (varyingNotionalCurrencyNode.Attributes["id"] != null) 
             {
                 varyingNotionalCurrencyIDRef_ = varyingNotionalCurrencyNode.Attributes["id"].Value;
                 Currency ob = new Currency(varyingNotionalCurrencyNode);
                 IDManager.SetID(varyingNotionalCurrencyIDRef_, ob);
             }
             else if (varyingNotionalCurrencyNode.Attributes["href"] != null)
             {
                 varyingNotionalCurrencyIDRef_ = varyingNotionalCurrencyNode.Attributes["href"].Value;
             }
             else
             {
                 varyingNotionalCurrency_ = new Currency(varyingNotionalCurrencyNode);
             }
         }
         else
         {
             varyingNotionalCurrency_ = new Currency(varyingNotionalCurrencyNode);
         }
     }
     
 
     XmlNode varyingNotionalFixingDatesNode = xmlNode.SelectSingleNode("varyingNotionalFixingDates");
     
     if (varyingNotionalFixingDatesNode != null)
     {
         if (varyingNotionalFixingDatesNode.Attributes["href"] != null || varyingNotionalFixingDatesNode.Attributes["id"] != null) 
         {
             if (varyingNotionalFixingDatesNode.Attributes["id"] != null) 
             {
                 varyingNotionalFixingDatesIDRef_ = varyingNotionalFixingDatesNode.Attributes["id"].Value;
                 RelativeDateOffset ob = new RelativeDateOffset(varyingNotionalFixingDatesNode);
                 IDManager.SetID(varyingNotionalFixingDatesIDRef_, ob);
             }
             else if (varyingNotionalFixingDatesNode.Attributes["href"] != null)
             {
                 varyingNotionalFixingDatesIDRef_ = varyingNotionalFixingDatesNode.Attributes["href"].Value;
             }
             else
             {
                 varyingNotionalFixingDates_ = new RelativeDateOffset(varyingNotionalFixingDatesNode);
             }
         }
         else
         {
             varyingNotionalFixingDates_ = new RelativeDateOffset(varyingNotionalFixingDatesNode);
         }
     }
     
 
     XmlNode fxSpotRateSourceNode = xmlNode.SelectSingleNode("fxSpotRateSource");
     
     if (fxSpotRateSourceNode != null)
     {
         if (fxSpotRateSourceNode.Attributes["href"] != null || fxSpotRateSourceNode.Attributes["id"] != null) 
         {
             if (fxSpotRateSourceNode.Attributes["id"] != null) 
             {
                 fxSpotRateSourceIDRef_ = fxSpotRateSourceNode.Attributes["id"].Value;
                 FxSpotRateSource ob = new FxSpotRateSource(fxSpotRateSourceNode);
                 IDManager.SetID(fxSpotRateSourceIDRef_, ob);
             }
             else if (fxSpotRateSourceNode.Attributes["href"] != null)
             {
                 fxSpotRateSourceIDRef_ = fxSpotRateSourceNode.Attributes["href"].Value;
             }
             else
             {
                 fxSpotRateSource_ = new FxSpotRateSource(fxSpotRateSourceNode);
             }
         }
         else
         {
             fxSpotRateSource_ = new FxSpotRateSource(fxSpotRateSourceNode);
         }
     }
     
 
     XmlNode varyingNotionalInterimExchangePaymentDatesNode = xmlNode.SelectSingleNode("varyingNotionalInterimExchangePaymentDates");
     
     if (varyingNotionalInterimExchangePaymentDatesNode != null)
     {
         if (varyingNotionalInterimExchangePaymentDatesNode.Attributes["href"] != null || varyingNotionalInterimExchangePaymentDatesNode.Attributes["id"] != null) 
         {
             if (varyingNotionalInterimExchangePaymentDatesNode.Attributes["id"] != null) 
             {
                 varyingNotionalInterimExchangePaymentDatesIDRef_ = varyingNotionalInterimExchangePaymentDatesNode.Attributes["id"].Value;
                 RelativeDateOffset ob = new RelativeDateOffset(varyingNotionalInterimExchangePaymentDatesNode);
                 IDManager.SetID(varyingNotionalInterimExchangePaymentDatesIDRef_, ob);
             }
             else if (varyingNotionalInterimExchangePaymentDatesNode.Attributes["href"] != null)
             {
                 varyingNotionalInterimExchangePaymentDatesIDRef_ = varyingNotionalInterimExchangePaymentDatesNode.Attributes["href"].Value;
             }
             else
             {
                 varyingNotionalInterimExchangePaymentDates_ = new RelativeDateOffset(varyingNotionalInterimExchangePaymentDatesNode);
             }
         }
         else
         {
             varyingNotionalInterimExchangePaymentDates_ = new RelativeDateOffset(varyingNotionalInterimExchangePaymentDatesNode);
         }
     }
     
 
 }
 public FxLinkedNotionalSchedule(XmlNode xmlNode)
 {
     XmlNodeList constantNotionalScheduleReferenceNodeList = xmlNode.SelectNodes("constantNotionalScheduleReference");
     if (constantNotionalScheduleReferenceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in constantNotionalScheduleReferenceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 constantNotionalScheduleReferenceIDRef = item.Attributes["id"].Name;
                 NotionalReference ob = NotionalReference();
                 IDManager.SetID(constantNotionalScheduleReferenceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 constantNotionalScheduleReferenceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 constantNotionalScheduleReference = new NotionalReference(item);
             }
         }
     }
     
 
     XmlNodeList initialValueNodeList = xmlNode.SelectNodes("initialValue");
     if (initialValueNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in initialValueNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 initialValueIDRef = item.Attributes["id"].Name;
                 XsdTypeDecimal ob = XsdTypeDecimal();
                 IDManager.SetID(initialValueIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 initialValueIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 initialValue = new XsdTypeDecimal(item);
             }
         }
     }
     
 
     XmlNodeList varyingNotionalCurrencyNodeList = xmlNode.SelectNodes("varyingNotionalCurrency");
     if (varyingNotionalCurrencyNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in varyingNotionalCurrencyNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 varyingNotionalCurrencyIDRef = item.Attributes["id"].Name;
                 Currency ob = Currency();
                 IDManager.SetID(varyingNotionalCurrencyIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 varyingNotionalCurrencyIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 varyingNotionalCurrency = new Currency(item);
             }
         }
     }
     
 
     XmlNodeList varyingNotionalFixingDatesNodeList = xmlNode.SelectNodes("varyingNotionalFixingDates");
     if (varyingNotionalFixingDatesNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in varyingNotionalFixingDatesNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 varyingNotionalFixingDatesIDRef = item.Attributes["id"].Name;
                 RelativeDateOffset ob = RelativeDateOffset();
                 IDManager.SetID(varyingNotionalFixingDatesIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 varyingNotionalFixingDatesIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 varyingNotionalFixingDates = new RelativeDateOffset(item);
             }
         }
     }
     
 
     XmlNodeList fxSpotRateSourceNodeList = xmlNode.SelectNodes("fxSpotRateSource");
     if (fxSpotRateSourceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in fxSpotRateSourceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 fxSpotRateSourceIDRef = item.Attributes["id"].Name;
                 FxSpotRateSource ob = FxSpotRateSource();
                 IDManager.SetID(fxSpotRateSourceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 fxSpotRateSourceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 fxSpotRateSource = new FxSpotRateSource(item);
             }
         }
     }
     
 
     XmlNodeList varyingNotionalInterimExchangePaymentDatesNodeList = xmlNode.SelectNodes("varyingNotionalInterimExchangePaymentDates");
     if (varyingNotionalInterimExchangePaymentDatesNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in varyingNotionalInterimExchangePaymentDatesNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 varyingNotionalInterimExchangePaymentDatesIDRef = item.Attributes["id"].Name;
                 RelativeDateOffset ob = RelativeDateOffset();
                 IDManager.SetID(varyingNotionalInterimExchangePaymentDatesIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 varyingNotionalInterimExchangePaymentDatesIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 varyingNotionalInterimExchangePaymentDates = new RelativeDateOffset(item);
             }
         }
     }
     
 
 }
コード例 #12
0
        public Composite(XmlNode xmlNode)
        {
            XmlNode determinationMethodNode = xmlNode.SelectSingleNode("determinationMethod");

            if (determinationMethodNode != null)
            {
                if (determinationMethodNode.Attributes["href"] != null || determinationMethodNode.Attributes["id"] != null)
                {
                    if (determinationMethodNode.Attributes["id"] != null)
                    {
                        determinationMethodIDRef_ = determinationMethodNode.Attributes["id"].Value;
                        DeterminationMethod ob = new DeterminationMethod(determinationMethodNode);
                        IDManager.SetID(determinationMethodIDRef_, ob);
                    }
                    else if (determinationMethodNode.Attributes["href"] != null)
                    {
                        determinationMethodIDRef_ = determinationMethodNode.Attributes["href"].Value;
                    }
                    else
                    {
                        determinationMethod_ = new DeterminationMethod(determinationMethodNode);
                    }
                }
                else
                {
                    determinationMethod_ = new DeterminationMethod(determinationMethodNode);
                }
            }


            XmlNode relativeDateNode = xmlNode.SelectSingleNode("relativeDate");

            if (relativeDateNode != null)
            {
                if (relativeDateNode.Attributes["href"] != null || relativeDateNode.Attributes["id"] != null)
                {
                    if (relativeDateNode.Attributes["id"] != null)
                    {
                        relativeDateIDRef_ = relativeDateNode.Attributes["id"].Value;
                        RelativeDateOffset ob = new RelativeDateOffset(relativeDateNode);
                        IDManager.SetID(relativeDateIDRef_, ob);
                    }
                    else if (relativeDateNode.Attributes["href"] != null)
                    {
                        relativeDateIDRef_ = relativeDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        relativeDate_ = new RelativeDateOffset(relativeDateNode);
                    }
                }
                else
                {
                    relativeDate_ = new RelativeDateOffset(relativeDateNode);
                }
            }


            XmlNode fxSpotRateSourceNode = xmlNode.SelectSingleNode("fxSpotRateSource");

            if (fxSpotRateSourceNode != null)
            {
                if (fxSpotRateSourceNode.Attributes["href"] != null || fxSpotRateSourceNode.Attributes["id"] != null)
                {
                    if (fxSpotRateSourceNode.Attributes["id"] != null)
                    {
                        fxSpotRateSourceIDRef_ = fxSpotRateSourceNode.Attributes["id"].Value;
                        FxSpotRateSource ob = new FxSpotRateSource(fxSpotRateSourceNode);
                        IDManager.SetID(fxSpotRateSourceIDRef_, ob);
                    }
                    else if (fxSpotRateSourceNode.Attributes["href"] != null)
                    {
                        fxSpotRateSourceIDRef_ = fxSpotRateSourceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fxSpotRateSource_ = new FxSpotRateSource(fxSpotRateSourceNode);
                    }
                }
                else
                {
                    fxSpotRateSource_ = new FxSpotRateSource(fxSpotRateSourceNode);
                }
            }
        }
コード例 #13
0
        public FxFixing(XmlNode xmlNode)
        {
            XmlNodeList quotedCurrencyPairNodeList = xmlNode.SelectNodes("quotedCurrencyPair");

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

            foreach (XmlNode item in quotedCurrencyPairNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        quotedCurrencyPairIDRef = item.Attributes["id"].Name;
                        QuotedCurrencyPair ob = QuotedCurrencyPair();
                        IDManager.SetID(quotedCurrencyPairIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        quotedCurrencyPairIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        quotedCurrencyPair = new QuotedCurrencyPair(item);
                    }
                }
            }


            XmlNodeList fixingDateNodeList = xmlNode.SelectNodes("fixingDate");

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

            foreach (XmlNode item in fixingDateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        fixingDateIDRef = item.Attributes["id"].Name;
                        XsdTypeDate ob = XsdTypeDate();
                        IDManager.SetID(fixingDateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        fixingDateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        fixingDate = new XsdTypeDate(item);
                    }
                }
            }


            XmlNodeList fxSpotRateSourceNodeList = xmlNode.SelectNodes("fxSpotRateSource");

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

            foreach (XmlNode item in fxSpotRateSourceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        fxSpotRateSourceIDRef = item.Attributes["id"].Name;
                        FxSpotRateSource ob = FxSpotRateSource();
                        IDManager.SetID(fxSpotRateSourceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        fxSpotRateSourceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        fxSpotRateSource = new FxSpotRateSource(item);
                    }
                }
            }
        }
コード例 #14
0
        public Quanto(XmlNode xmlNode)
        {
            XmlNodeList fxRateNodeList = xmlNode.SelectNodes("fxRate");

            if (fxRateNodeList != null)
            {
                this.fxRate_ = new List <FxRate>();
                foreach (XmlNode item in fxRateNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            fxRateIDRef_ = item.Attributes["id"].Value;
                            fxRate_.Add(new FxRate(item));
                            IDManager.SetID(fxRateIDRef_, fxRate_[fxRate_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            fxRateIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            fxRate_.Add(new FxRate(item));
                        }
                    }
                    else
                    {
                        fxRate_.Add(new FxRate(item));
                    }
                }
            }


            XmlNode fxSpotRateSourceNode = xmlNode.SelectSingleNode("fxSpotRateSource");

            if (fxSpotRateSourceNode != null)
            {
                if (fxSpotRateSourceNode.Attributes["href"] != null || fxSpotRateSourceNode.Attributes["id"] != null)
                {
                    if (fxSpotRateSourceNode.Attributes["id"] != null)
                    {
                        fxSpotRateSourceIDRef_ = fxSpotRateSourceNode.Attributes["id"].Value;
                        FxSpotRateSource ob = new FxSpotRateSource(fxSpotRateSourceNode);
                        IDManager.SetID(fxSpotRateSourceIDRef_, ob);
                    }
                    else if (fxSpotRateSourceNode.Attributes["href"] != null)
                    {
                        fxSpotRateSourceIDRef_ = fxSpotRateSourceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fxSpotRateSource_ = new FxSpotRateSource(fxSpotRateSourceNode);
                    }
                }
                else
                {
                    fxSpotRateSource_ = new FxSpotRateSource(fxSpotRateSourceNode);
                }
            }
        }
コード例 #15
0
 public FxFixing(XmlNode xmlNode)
 {
     XmlNode quotedCurrencyPairNode = xmlNode.SelectSingleNode("quotedCurrencyPair");
     
     if (quotedCurrencyPairNode != null)
     {
         if (quotedCurrencyPairNode.Attributes["href"] != null || quotedCurrencyPairNode.Attributes["id"] != null) 
         {
             if (quotedCurrencyPairNode.Attributes["id"] != null) 
             {
                 quotedCurrencyPairIDRef_ = quotedCurrencyPairNode.Attributes["id"].Value;
                 QuotedCurrencyPair ob = new QuotedCurrencyPair(quotedCurrencyPairNode);
                 IDManager.SetID(quotedCurrencyPairIDRef_, ob);
             }
             else if (quotedCurrencyPairNode.Attributes["href"] != null)
             {
                 quotedCurrencyPairIDRef_ = quotedCurrencyPairNode.Attributes["href"].Value;
             }
             else
             {
                 quotedCurrencyPair_ = new QuotedCurrencyPair(quotedCurrencyPairNode);
             }
         }
         else
         {
             quotedCurrencyPair_ = new QuotedCurrencyPair(quotedCurrencyPairNode);
         }
     }
     
 
     XmlNode fixingDateNode = xmlNode.SelectSingleNode("fixingDate");
     
     if (fixingDateNode != null)
     {
         if (fixingDateNode.Attributes["href"] != null || fixingDateNode.Attributes["id"] != null) 
         {
             if (fixingDateNode.Attributes["id"] != null) 
             {
                 fixingDateIDRef_ = fixingDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(fixingDateNode);
                 IDManager.SetID(fixingDateIDRef_, ob);
             }
             else if (fixingDateNode.Attributes["href"] != null)
             {
                 fixingDateIDRef_ = fixingDateNode.Attributes["href"].Value;
             }
             else
             {
                 fixingDate_ = new XsdTypeDate(fixingDateNode);
             }
         }
         else
         {
             fixingDate_ = new XsdTypeDate(fixingDateNode);
         }
     }
     
 
     XmlNode fxSpotRateSourceNode = xmlNode.SelectSingleNode("fxSpotRateSource");
     
     if (fxSpotRateSourceNode != null)
     {
         if (fxSpotRateSourceNode.Attributes["href"] != null || fxSpotRateSourceNode.Attributes["id"] != null) 
         {
             if (fxSpotRateSourceNode.Attributes["id"] != null) 
             {
                 fxSpotRateSourceIDRef_ = fxSpotRateSourceNode.Attributes["id"].Value;
                 FxSpotRateSource ob = new FxSpotRateSource(fxSpotRateSourceNode);
                 IDManager.SetID(fxSpotRateSourceIDRef_, ob);
             }
             else if (fxSpotRateSourceNode.Attributes["href"] != null)
             {
                 fxSpotRateSourceIDRef_ = fxSpotRateSourceNode.Attributes["href"].Value;
             }
             else
             {
                 fxSpotRateSource_ = new FxSpotRateSource(fxSpotRateSourceNode);
             }
         }
         else
         {
             fxSpotRateSource_ = new FxSpotRateSource(fxSpotRateSourceNode);
         }
     }
     
 
 }
コード例 #16
0
        public Composite(XmlNode xmlNode)
        {
            XmlNodeList determinationMethodNodeList = xmlNode.SelectNodes("determinationMethod");

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

            foreach (XmlNode item in determinationMethodNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        determinationMethodIDRef = item.Attributes["id"].Name;
                        DeterminationMethod ob = DeterminationMethod();
                        IDManager.SetID(determinationMethodIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        determinationMethodIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        determinationMethod = new DeterminationMethod(item);
                    }
                }
            }


            XmlNodeList relativeDateNodeList = xmlNode.SelectNodes("relativeDate");

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

            foreach (XmlNode item in relativeDateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        relativeDateIDRef = item.Attributes["id"].Name;
                        RelativeDateOffset ob = RelativeDateOffset();
                        IDManager.SetID(relativeDateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        relativeDateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        relativeDate = new RelativeDateOffset(item);
                    }
                }
            }


            XmlNodeList fxSpotRateSourceNodeList = xmlNode.SelectNodes("fxSpotRateSource");

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

            foreach (XmlNode item in fxSpotRateSourceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        fxSpotRateSourceIDRef = item.Attributes["id"].Name;
                        FxSpotRateSource ob = FxSpotRateSource();
                        IDManager.SetID(fxSpotRateSourceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        fxSpotRateSourceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        fxSpotRateSource = new FxSpotRateSource(item);
                    }
                }
            }
        }
コード例 #17
0
 public Quanto(XmlNode xmlNode)
 {
     XmlNodeList fxRateNodeList = xmlNode.SelectNodes("fxRate");
     
     if (fxRateNodeList != null)
     {
         this.fxRate_ = new List<FxRate>();
         foreach (XmlNode item in fxRateNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     fxRateIDRef_ = item.Attributes["id"].Value;
                     fxRate_.Add(new FxRate(item));
                     IDManager.SetID(fxRateIDRef_, fxRate_[fxRate_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     fxRateIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 fxRate_.Add(new FxRate(item));
                 }
             }
             else
             {
                 fxRate_.Add(new FxRate(item));
             }
         }
     }
     
 
     XmlNode fxSpotRateSourceNode = xmlNode.SelectSingleNode("fxSpotRateSource");
     
     if (fxSpotRateSourceNode != null)
     {
         if (fxSpotRateSourceNode.Attributes["href"] != null || fxSpotRateSourceNode.Attributes["id"] != null) 
         {
             if (fxSpotRateSourceNode.Attributes["id"] != null) 
             {
                 fxSpotRateSourceIDRef_ = fxSpotRateSourceNode.Attributes["id"].Value;
                 FxSpotRateSource ob = new FxSpotRateSource(fxSpotRateSourceNode);
                 IDManager.SetID(fxSpotRateSourceIDRef_, ob);
             }
             else if (fxSpotRateSourceNode.Attributes["href"] != null)
             {
                 fxSpotRateSourceIDRef_ = fxSpotRateSourceNode.Attributes["href"].Value;
             }
             else
             {
                 fxSpotRateSource_ = new FxSpotRateSource(fxSpotRateSourceNode);
             }
         }
         else
         {
             fxSpotRateSource_ = new FxSpotRateSource(fxSpotRateSourceNode);
         }
     }
     
 
 }
コード例 #18
0
        public FxFixing(XmlNode xmlNode)
        {
            XmlNode quotedCurrencyPairNode = xmlNode.SelectSingleNode("quotedCurrencyPair");

            if (quotedCurrencyPairNode != null)
            {
                if (quotedCurrencyPairNode.Attributes["href"] != null || quotedCurrencyPairNode.Attributes["id"] != null)
                {
                    if (quotedCurrencyPairNode.Attributes["id"] != null)
                    {
                        quotedCurrencyPairIDRef_ = quotedCurrencyPairNode.Attributes["id"].Value;
                        QuotedCurrencyPair ob = new QuotedCurrencyPair(quotedCurrencyPairNode);
                        IDManager.SetID(quotedCurrencyPairIDRef_, ob);
                    }
                    else if (quotedCurrencyPairNode.Attributes["href"] != null)
                    {
                        quotedCurrencyPairIDRef_ = quotedCurrencyPairNode.Attributes["href"].Value;
                    }
                    else
                    {
                        quotedCurrencyPair_ = new QuotedCurrencyPair(quotedCurrencyPairNode);
                    }
                }
                else
                {
                    quotedCurrencyPair_ = new QuotedCurrencyPair(quotedCurrencyPairNode);
                }
            }


            XmlNode fixingDateNode = xmlNode.SelectSingleNode("fixingDate");

            if (fixingDateNode != null)
            {
                if (fixingDateNode.Attributes["href"] != null || fixingDateNode.Attributes["id"] != null)
                {
                    if (fixingDateNode.Attributes["id"] != null)
                    {
                        fixingDateIDRef_ = fixingDateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(fixingDateNode);
                        IDManager.SetID(fixingDateIDRef_, ob);
                    }
                    else if (fixingDateNode.Attributes["href"] != null)
                    {
                        fixingDateIDRef_ = fixingDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fixingDate_ = new XsdTypeDate(fixingDateNode);
                    }
                }
                else
                {
                    fixingDate_ = new XsdTypeDate(fixingDateNode);
                }
            }


            XmlNode fxSpotRateSourceNode = xmlNode.SelectSingleNode("fxSpotRateSource");

            if (fxSpotRateSourceNode != null)
            {
                if (fxSpotRateSourceNode.Attributes["href"] != null || fxSpotRateSourceNode.Attributes["id"] != null)
                {
                    if (fxSpotRateSourceNode.Attributes["id"] != null)
                    {
                        fxSpotRateSourceIDRef_ = fxSpotRateSourceNode.Attributes["id"].Value;
                        FxSpotRateSource ob = new FxSpotRateSource(fxSpotRateSourceNode);
                        IDManager.SetID(fxSpotRateSourceIDRef_, ob);
                    }
                    else if (fxSpotRateSourceNode.Attributes["href"] != null)
                    {
                        fxSpotRateSourceIDRef_ = fxSpotRateSourceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fxSpotRateSource_ = new FxSpotRateSource(fxSpotRateSourceNode);
                    }
                }
                else
                {
                    fxSpotRateSource_ = new FxSpotRateSource(fxSpotRateSourceNode);
                }
            }
        }
        public FxLinkedNotionalSchedule(XmlNode xmlNode)
        {
            XmlNode constantNotionalScheduleReferenceNode = xmlNode.SelectSingleNode("constantNotionalScheduleReference");

            if (constantNotionalScheduleReferenceNode != null)
            {
                if (constantNotionalScheduleReferenceNode.Attributes["href"] != null || constantNotionalScheduleReferenceNode.Attributes["id"] != null)
                {
                    if (constantNotionalScheduleReferenceNode.Attributes["id"] != null)
                    {
                        constantNotionalScheduleReferenceIDRef_ = constantNotionalScheduleReferenceNode.Attributes["id"].Value;
                        NotionalReference ob = new NotionalReference(constantNotionalScheduleReferenceNode);
                        IDManager.SetID(constantNotionalScheduleReferenceIDRef_, ob);
                    }
                    else if (constantNotionalScheduleReferenceNode.Attributes["href"] != null)
                    {
                        constantNotionalScheduleReferenceIDRef_ = constantNotionalScheduleReferenceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        constantNotionalScheduleReference_ = new NotionalReference(constantNotionalScheduleReferenceNode);
                    }
                }
                else
                {
                    constantNotionalScheduleReference_ = new NotionalReference(constantNotionalScheduleReferenceNode);
                }
            }


            XmlNode initialValueNode = xmlNode.SelectSingleNode("initialValue");

            if (initialValueNode != null)
            {
                if (initialValueNode.Attributes["href"] != null || initialValueNode.Attributes["id"] != null)
                {
                    if (initialValueNode.Attributes["id"] != null)
                    {
                        initialValueIDRef_ = initialValueNode.Attributes["id"].Value;
                        XsdTypeDecimal ob = new XsdTypeDecimal(initialValueNode);
                        IDManager.SetID(initialValueIDRef_, ob);
                    }
                    else if (initialValueNode.Attributes["href"] != null)
                    {
                        initialValueIDRef_ = initialValueNode.Attributes["href"].Value;
                    }
                    else
                    {
                        initialValue_ = new XsdTypeDecimal(initialValueNode);
                    }
                }
                else
                {
                    initialValue_ = new XsdTypeDecimal(initialValueNode);
                }
            }


            XmlNode varyingNotionalCurrencyNode = xmlNode.SelectSingleNode("varyingNotionalCurrency");

            if (varyingNotionalCurrencyNode != null)
            {
                if (varyingNotionalCurrencyNode.Attributes["href"] != null || varyingNotionalCurrencyNode.Attributes["id"] != null)
                {
                    if (varyingNotionalCurrencyNode.Attributes["id"] != null)
                    {
                        varyingNotionalCurrencyIDRef_ = varyingNotionalCurrencyNode.Attributes["id"].Value;
                        Currency ob = new Currency(varyingNotionalCurrencyNode);
                        IDManager.SetID(varyingNotionalCurrencyIDRef_, ob);
                    }
                    else if (varyingNotionalCurrencyNode.Attributes["href"] != null)
                    {
                        varyingNotionalCurrencyIDRef_ = varyingNotionalCurrencyNode.Attributes["href"].Value;
                    }
                    else
                    {
                        varyingNotionalCurrency_ = new Currency(varyingNotionalCurrencyNode);
                    }
                }
                else
                {
                    varyingNotionalCurrency_ = new Currency(varyingNotionalCurrencyNode);
                }
            }


            XmlNode varyingNotionalFixingDatesNode = xmlNode.SelectSingleNode("varyingNotionalFixingDates");

            if (varyingNotionalFixingDatesNode != null)
            {
                if (varyingNotionalFixingDatesNode.Attributes["href"] != null || varyingNotionalFixingDatesNode.Attributes["id"] != null)
                {
                    if (varyingNotionalFixingDatesNode.Attributes["id"] != null)
                    {
                        varyingNotionalFixingDatesIDRef_ = varyingNotionalFixingDatesNode.Attributes["id"].Value;
                        RelativeDateOffset ob = new RelativeDateOffset(varyingNotionalFixingDatesNode);
                        IDManager.SetID(varyingNotionalFixingDatesIDRef_, ob);
                    }
                    else if (varyingNotionalFixingDatesNode.Attributes["href"] != null)
                    {
                        varyingNotionalFixingDatesIDRef_ = varyingNotionalFixingDatesNode.Attributes["href"].Value;
                    }
                    else
                    {
                        varyingNotionalFixingDates_ = new RelativeDateOffset(varyingNotionalFixingDatesNode);
                    }
                }
                else
                {
                    varyingNotionalFixingDates_ = new RelativeDateOffset(varyingNotionalFixingDatesNode);
                }
            }


            XmlNode fxSpotRateSourceNode = xmlNode.SelectSingleNode("fxSpotRateSource");

            if (fxSpotRateSourceNode != null)
            {
                if (fxSpotRateSourceNode.Attributes["href"] != null || fxSpotRateSourceNode.Attributes["id"] != null)
                {
                    if (fxSpotRateSourceNode.Attributes["id"] != null)
                    {
                        fxSpotRateSourceIDRef_ = fxSpotRateSourceNode.Attributes["id"].Value;
                        FxSpotRateSource ob = new FxSpotRateSource(fxSpotRateSourceNode);
                        IDManager.SetID(fxSpotRateSourceIDRef_, ob);
                    }
                    else if (fxSpotRateSourceNode.Attributes["href"] != null)
                    {
                        fxSpotRateSourceIDRef_ = fxSpotRateSourceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fxSpotRateSource_ = new FxSpotRateSource(fxSpotRateSourceNode);
                    }
                }
                else
                {
                    fxSpotRateSource_ = new FxSpotRateSource(fxSpotRateSourceNode);
                }
            }


            XmlNode varyingNotionalInterimExchangePaymentDatesNode = xmlNode.SelectSingleNode("varyingNotionalInterimExchangePaymentDates");

            if (varyingNotionalInterimExchangePaymentDatesNode != null)
            {
                if (varyingNotionalInterimExchangePaymentDatesNode.Attributes["href"] != null || varyingNotionalInterimExchangePaymentDatesNode.Attributes["id"] != null)
                {
                    if (varyingNotionalInterimExchangePaymentDatesNode.Attributes["id"] != null)
                    {
                        varyingNotionalInterimExchangePaymentDatesIDRef_ = varyingNotionalInterimExchangePaymentDatesNode.Attributes["id"].Value;
                        RelativeDateOffset ob = new RelativeDateOffset(varyingNotionalInterimExchangePaymentDatesNode);
                        IDManager.SetID(varyingNotionalInterimExchangePaymentDatesIDRef_, ob);
                    }
                    else if (varyingNotionalInterimExchangePaymentDatesNode.Attributes["href"] != null)
                    {
                        varyingNotionalInterimExchangePaymentDatesIDRef_ = varyingNotionalInterimExchangePaymentDatesNode.Attributes["href"].Value;
                    }
                    else
                    {
                        varyingNotionalInterimExchangePaymentDates_ = new RelativeDateOffset(varyingNotionalInterimExchangePaymentDatesNode);
                    }
                }
                else
                {
                    varyingNotionalInterimExchangePaymentDates_ = new RelativeDateOffset(varyingNotionalInterimExchangePaymentDatesNode);
                }
            }
        }
コード例 #20
0
 public FxFixing(XmlNode xmlNode)
 {
     XmlNodeList quotedCurrencyPairNodeList = xmlNode.SelectNodes("quotedCurrencyPair");
     if (quotedCurrencyPairNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in quotedCurrencyPairNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 quotedCurrencyPairIDRef = item.Attributes["id"].Name;
                 QuotedCurrencyPair ob = QuotedCurrencyPair();
                 IDManager.SetID(quotedCurrencyPairIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 quotedCurrencyPairIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 quotedCurrencyPair = new QuotedCurrencyPair(item);
             }
         }
     }
     
 
     XmlNodeList fixingDateNodeList = xmlNode.SelectNodes("fixingDate");
     if (fixingDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in fixingDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 fixingDateIDRef = item.Attributes["id"].Name;
                 XsdTypeDate ob = XsdTypeDate();
                 IDManager.SetID(fixingDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 fixingDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 fixingDate = new XsdTypeDate(item);
             }
         }
     }
     
 
     XmlNodeList fxSpotRateSourceNodeList = xmlNode.SelectNodes("fxSpotRateSource");
     if (fxSpotRateSourceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in fxSpotRateSourceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 fxSpotRateSourceIDRef = item.Attributes["id"].Name;
                 FxSpotRateSource ob = FxSpotRateSource();
                 IDManager.SetID(fxSpotRateSourceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 fxSpotRateSourceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 fxSpotRateSource = new FxSpotRateSource(item);
             }
         }
     }
     
 
 }