public ProposedCollateralAllocation(XmlNode xmlNode)
 {
     XmlNode allocationPartyReferenceNode = xmlNode.SelectSingleNode("allocationPartyReference");
     
     if (allocationPartyReferenceNode != null)
     {
         if (allocationPartyReferenceNode.Attributes["href"] != null || allocationPartyReferenceNode.Attributes["id"] != null) 
         {
             if (allocationPartyReferenceNode.Attributes["id"] != null) 
             {
                 allocationPartyReferenceIDRef_ = allocationPartyReferenceNode.Attributes["id"].Value;
                 PartyReference ob = new PartyReference(allocationPartyReferenceNode);
                 IDManager.SetID(allocationPartyReferenceIDRef_, ob);
             }
             else if (allocationPartyReferenceNode.Attributes["href"] != null)
             {
                 allocationPartyReferenceIDRef_ = allocationPartyReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 allocationPartyReference_ = new PartyReference(allocationPartyReferenceNode);
             }
         }
         else
         {
             allocationPartyReference_ = new PartyReference(allocationPartyReferenceNode);
         }
     }
     
 
     XmlNode allocationAccountReferenceNode = xmlNode.SelectSingleNode("allocationAccountReference");
     
     if (allocationAccountReferenceNode != null)
     {
         if (allocationAccountReferenceNode.Attributes["href"] != null || allocationAccountReferenceNode.Attributes["id"] != null) 
         {
             if (allocationAccountReferenceNode.Attributes["id"] != null) 
             {
                 allocationAccountReferenceIDRef_ = allocationAccountReferenceNode.Attributes["id"].Value;
                 AccountReference ob = new AccountReference(allocationAccountReferenceNode);
                 IDManager.SetID(allocationAccountReferenceIDRef_, ob);
             }
             else if (allocationAccountReferenceNode.Attributes["href"] != null)
             {
                 allocationAccountReferenceIDRef_ = allocationAccountReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 allocationAccountReference_ = new AccountReference(allocationAccountReferenceNode);
             }
         }
         else
         {
             allocationAccountReference_ = new AccountReference(allocationAccountReferenceNode);
         }
     }
     
 
     XmlNode collateralValueAllocationNode = xmlNode.SelectSingleNode("collateralValueAllocation");
     
     if (collateralValueAllocationNode != null)
     {
         if (collateralValueAllocationNode.Attributes["href"] != null || collateralValueAllocationNode.Attributes["id"] != null) 
         {
             if (collateralValueAllocationNode.Attributes["id"] != null) 
             {
                 collateralValueAllocationIDRef_ = collateralValueAllocationNode.Attributes["id"].Value;
                 CollateralValueAllocation ob = new CollateralValueAllocation(collateralValueAllocationNode);
                 IDManager.SetID(collateralValueAllocationIDRef_, ob);
             }
             else if (collateralValueAllocationNode.Attributes["href"] != null)
             {
                 collateralValueAllocationIDRef_ = collateralValueAllocationNode.Attributes["href"].Value;
             }
             else
             {
                 collateralValueAllocation_ = new CollateralValueAllocation(collateralValueAllocationNode);
             }
         }
         else
         {
             collateralValueAllocation_ = new CollateralValueAllocation(collateralValueAllocationNode);
         }
     }
     
 
 }
 public ProposedCollateralAllocation(XmlNode xmlNode)
 {
     XmlNodeList allocationPartyReferenceNodeList = xmlNode.SelectNodes("allocationPartyReference");
     if (allocationPartyReferenceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in allocationPartyReferenceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 allocationPartyReferenceIDRef = item.Attributes["id"].Name;
                 PartyReference ob = PartyReference();
                 IDManager.SetID(allocationPartyReferenceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 allocationPartyReferenceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 allocationPartyReference = new PartyReference(item);
             }
         }
     }
     
 
     XmlNodeList allocationAccountReferenceNodeList = xmlNode.SelectNodes("allocationAccountReference");
     if (allocationAccountReferenceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in allocationAccountReferenceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 allocationAccountReferenceIDRef = item.Attributes["id"].Name;
                 AccountReference ob = AccountReference();
                 IDManager.SetID(allocationAccountReferenceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 allocationAccountReferenceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 allocationAccountReference = new AccountReference(item);
             }
         }
     }
     
 
     XmlNodeList collateralValueAllocationNodeList = xmlNode.SelectNodes("collateralValueAllocation");
     if (collateralValueAllocationNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in collateralValueAllocationNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 collateralValueAllocationIDRef = item.Attributes["id"].Name;
                 CollateralValueAllocation ob = CollateralValueAllocation();
                 IDManager.SetID(collateralValueAllocationIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 collateralValueAllocationIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 collateralValueAllocation = new CollateralValueAllocation(item);
             }
         }
     }
     
 
 }
示例#3
0
        public ProposedCollateralAllocation(XmlNode xmlNode)
        {
            XmlNode allocationPartyReferenceNode = xmlNode.SelectSingleNode("allocationPartyReference");

            if (allocationPartyReferenceNode != null)
            {
                if (allocationPartyReferenceNode.Attributes["href"] != null || allocationPartyReferenceNode.Attributes["id"] != null)
                {
                    if (allocationPartyReferenceNode.Attributes["id"] != null)
                    {
                        allocationPartyReferenceIDRef_ = allocationPartyReferenceNode.Attributes["id"].Value;
                        PartyReference ob = new PartyReference(allocationPartyReferenceNode);
                        IDManager.SetID(allocationPartyReferenceIDRef_, ob);
                    }
                    else if (allocationPartyReferenceNode.Attributes["href"] != null)
                    {
                        allocationPartyReferenceIDRef_ = allocationPartyReferenceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        allocationPartyReference_ = new PartyReference(allocationPartyReferenceNode);
                    }
                }
                else
                {
                    allocationPartyReference_ = new PartyReference(allocationPartyReferenceNode);
                }
            }


            XmlNode allocationAccountReferenceNode = xmlNode.SelectSingleNode("allocationAccountReference");

            if (allocationAccountReferenceNode != null)
            {
                if (allocationAccountReferenceNode.Attributes["href"] != null || allocationAccountReferenceNode.Attributes["id"] != null)
                {
                    if (allocationAccountReferenceNode.Attributes["id"] != null)
                    {
                        allocationAccountReferenceIDRef_ = allocationAccountReferenceNode.Attributes["id"].Value;
                        AccountReference ob = new AccountReference(allocationAccountReferenceNode);
                        IDManager.SetID(allocationAccountReferenceIDRef_, ob);
                    }
                    else if (allocationAccountReferenceNode.Attributes["href"] != null)
                    {
                        allocationAccountReferenceIDRef_ = allocationAccountReferenceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        allocationAccountReference_ = new AccountReference(allocationAccountReferenceNode);
                    }
                }
                else
                {
                    allocationAccountReference_ = new AccountReference(allocationAccountReferenceNode);
                }
            }


            XmlNode collateralValueAllocationNode = xmlNode.SelectSingleNode("collateralValueAllocation");

            if (collateralValueAllocationNode != null)
            {
                if (collateralValueAllocationNode.Attributes["href"] != null || collateralValueAllocationNode.Attributes["id"] != null)
                {
                    if (collateralValueAllocationNode.Attributes["id"] != null)
                    {
                        collateralValueAllocationIDRef_ = collateralValueAllocationNode.Attributes["id"].Value;
                        CollateralValueAllocation ob = new CollateralValueAllocation(collateralValueAllocationNode);
                        IDManager.SetID(collateralValueAllocationIDRef_, ob);
                    }
                    else if (collateralValueAllocationNode.Attributes["href"] != null)
                    {
                        collateralValueAllocationIDRef_ = collateralValueAllocationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        collateralValueAllocation_ = new CollateralValueAllocation(collateralValueAllocationNode);
                    }
                }
                else
                {
                    collateralValueAllocation_ = new CollateralValueAllocation(collateralValueAllocationNode);
                }
            }
        }
        public ProposedCollateralAllocation(XmlNode xmlNode)
        {
            XmlNodeList allocationPartyReferenceNodeList = xmlNode.SelectNodes("allocationPartyReference");

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

            foreach (XmlNode item in allocationPartyReferenceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        allocationPartyReferenceIDRef = item.Attributes["id"].Name;
                        PartyReference ob = PartyReference();
                        IDManager.SetID(allocationPartyReferenceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        allocationPartyReferenceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        allocationPartyReference = new PartyReference(item);
                    }
                }
            }


            XmlNodeList allocationAccountReferenceNodeList = xmlNode.SelectNodes("allocationAccountReference");

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

            foreach (XmlNode item in allocationAccountReferenceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        allocationAccountReferenceIDRef = item.Attributes["id"].Name;
                        AccountReference ob = AccountReference();
                        IDManager.SetID(allocationAccountReferenceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        allocationAccountReferenceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        allocationAccountReference = new AccountReference(item);
                    }
                }
            }


            XmlNodeList collateralValueAllocationNodeList = xmlNode.SelectNodes("collateralValueAllocation");

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

            foreach (XmlNode item in collateralValueAllocationNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        collateralValueAllocationIDRef = item.Attributes["id"].Name;
                        CollateralValueAllocation ob = CollateralValueAllocation();
                        IDManager.SetID(collateralValueAllocationIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        collateralValueAllocationIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        collateralValueAllocation = new CollateralValueAllocation(item);
                    }
                }
            }
        }