Exemplo n.º 1
0
        public SwapAdditionalTerms(XmlNode xmlNode)
        {
            XmlNodeList bondReferenceNodeList = xmlNode.SelectNodes("bondReference");

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

            foreach (XmlNode item in bondReferenceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        bondReferenceIDRef = item.Attributes["id"].Name;
                        BondReference ob = BondReference();
                        IDManager.SetID(bondReferenceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        bondReferenceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        bondReference = new BondReference(item);
                    }
                }
            }
        }
 public SwapAdditionalTerms(XmlNode xmlNode)
 {
     XmlNode bondReferenceNode = xmlNode.SelectSingleNode("bondReference");
     
     if (bondReferenceNode != null)
     {
         if (bondReferenceNode.Attributes["href"] != null || bondReferenceNode.Attributes["id"] != null) 
         {
             if (bondReferenceNode.Attributes["id"] != null) 
             {
                 bondReferenceIDRef_ = bondReferenceNode.Attributes["id"].Value;
                 BondReference ob = new BondReference(bondReferenceNode);
                 IDManager.SetID(bondReferenceIDRef_, ob);
             }
             else if (bondReferenceNode.Attributes["href"] != null)
             {
                 bondReferenceIDRef_ = bondReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 bondReference_ = new BondReference(bondReferenceNode);
             }
         }
         else
         {
             bondReference_ = new BondReference(bondReferenceNode);
         }
     }
     
 
 }
        public SwapAdditionalTerms(XmlNode xmlNode)
        {
            XmlNode bondReferenceNode = xmlNode.SelectSingleNode("bondReference");

            if (bondReferenceNode != null)
            {
                if (bondReferenceNode.Attributes["href"] != null || bondReferenceNode.Attributes["id"] != null)
                {
                    if (bondReferenceNode.Attributes["id"] != null)
                    {
                        bondReferenceIDRef_ = bondReferenceNode.Attributes["id"].Value;
                        BondReference ob = new BondReference(bondReferenceNode);
                        IDManager.SetID(bondReferenceIDRef_, ob);
                    }
                    else if (bondReferenceNode.Attributes["href"] != null)
                    {
                        bondReferenceIDRef_ = bondReferenceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        bondReference_ = new BondReference(bondReferenceNode);
                    }
                }
                else
                {
                    bondReference_ = new BondReference(bondReferenceNode);
                }
            }
        }
 public SwapAdditionalTerms(XmlNode xmlNode)
 {
     XmlNodeList bondReferenceNodeList = xmlNode.SelectNodes("bondReference");
     if (bondReferenceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in bondReferenceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 bondReferenceIDRef = item.Attributes["id"].Name;
                 BondReference ob = BondReference();
                 IDManager.SetID(bondReferenceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 bondReferenceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 bondReference = new BondReference(item);
             }
         }
     }
     
 
 }