コード例 #1
0
 public ReferencePoolItem(XmlNode xmlNode)
 {
     XmlNode constituentWeightNode = xmlNode.SelectSingleNode("constituentWeight");
     
     if (constituentWeightNode != null)
     {
         if (constituentWeightNode.Attributes["href"] != null || constituentWeightNode.Attributes["id"] != null) 
         {
             if (constituentWeightNode.Attributes["id"] != null) 
             {
                 constituentWeightIDRef_ = constituentWeightNode.Attributes["id"].Value;
                 ConstituentWeight ob = new ConstituentWeight(constituentWeightNode);
                 IDManager.SetID(constituentWeightIDRef_, ob);
             }
             else if (constituentWeightNode.Attributes["href"] != null)
             {
                 constituentWeightIDRef_ = constituentWeightNode.Attributes["href"].Value;
             }
             else
             {
                 constituentWeight_ = new ConstituentWeight(constituentWeightNode);
             }
         }
         else
         {
             constituentWeight_ = new ConstituentWeight(constituentWeightNode);
         }
     }
     
 
     XmlNode referencePairNode = xmlNode.SelectSingleNode("referencePair");
     
     if (referencePairNode != null)
     {
         if (referencePairNode.Attributes["href"] != null || referencePairNode.Attributes["id"] != null) 
         {
             if (referencePairNode.Attributes["id"] != null) 
             {
                 referencePairIDRef_ = referencePairNode.Attributes["id"].Value;
                 ReferencePair ob = new ReferencePair(referencePairNode);
                 IDManager.SetID(referencePairIDRef_, ob);
             }
             else if (referencePairNode.Attributes["href"] != null)
             {
                 referencePairIDRef_ = referencePairNode.Attributes["href"].Value;
             }
             else
             {
                 referencePair_ = new ReferencePair(referencePairNode);
             }
         }
         else
         {
             referencePair_ = new ReferencePair(referencePairNode);
         }
     }
     
 
     XmlNode protectionTermsReferenceNode = xmlNode.SelectSingleNode("protectionTermsReference");
     
     if (protectionTermsReferenceNode != null)
     {
         if (protectionTermsReferenceNode.Attributes["href"] != null || protectionTermsReferenceNode.Attributes["id"] != null) 
         {
             if (protectionTermsReferenceNode.Attributes["id"] != null) 
             {
                 protectionTermsReferenceIDRef_ = protectionTermsReferenceNode.Attributes["id"].Value;
                 ProtectionTermsReference ob = new ProtectionTermsReference(protectionTermsReferenceNode);
                 IDManager.SetID(protectionTermsReferenceIDRef_, ob);
             }
             else if (protectionTermsReferenceNode.Attributes["href"] != null)
             {
                 protectionTermsReferenceIDRef_ = protectionTermsReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 protectionTermsReference_ = new ProtectionTermsReference(protectionTermsReferenceNode);
             }
         }
         else
         {
             protectionTermsReference_ = new ProtectionTermsReference(protectionTermsReferenceNode);
         }
     }
     
 
     XmlNode settlementTermsReferenceNode = xmlNode.SelectSingleNode("settlementTermsReference");
     
     if (settlementTermsReferenceNode != null)
     {
         if (settlementTermsReferenceNode.Attributes["href"] != null || settlementTermsReferenceNode.Attributes["id"] != null) 
         {
             if (settlementTermsReferenceNode.Attributes["id"] != null) 
             {
                 settlementTermsReferenceIDRef_ = settlementTermsReferenceNode.Attributes["id"].Value;
                 SettlementTermsReference ob = new SettlementTermsReference(settlementTermsReferenceNode);
                 IDManager.SetID(settlementTermsReferenceIDRef_, ob);
             }
             else if (settlementTermsReferenceNode.Attributes["href"] != null)
             {
                 settlementTermsReferenceIDRef_ = settlementTermsReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 settlementTermsReference_ = new SettlementTermsReference(settlementTermsReferenceNode);
             }
         }
         else
         {
             settlementTermsReference_ = new SettlementTermsReference(settlementTermsReferenceNode);
         }
     }
     
 
 }
コード例 #2
0
 public ReferencePoolItem(XmlNode xmlNode)
 {
     XmlNodeList constituentWeightNodeList = xmlNode.SelectNodes("constituentWeight");
     if (constituentWeightNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in constituentWeightNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 constituentWeightIDRef = item.Attributes["id"].Name;
                 ConstituentWeight ob = ConstituentWeight();
                 IDManager.SetID(constituentWeightIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 constituentWeightIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 constituentWeight = new ConstituentWeight(item);
             }
         }
     }
     
 
     XmlNodeList referencePairNodeList = xmlNode.SelectNodes("referencePair");
     if (referencePairNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in referencePairNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 referencePairIDRef = item.Attributes["id"].Name;
                 ReferencePair ob = ReferencePair();
                 IDManager.SetID(referencePairIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 referencePairIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 referencePair = new ReferencePair(item);
             }
         }
     }
     
 
     XmlNodeList protectionTermsReferenceNodeList = xmlNode.SelectNodes("protectionTermsReference");
     if (protectionTermsReferenceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in protectionTermsReferenceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 protectionTermsReferenceIDRef = item.Attributes["id"].Name;
                 ProtectionTermsReference ob = ProtectionTermsReference();
                 IDManager.SetID(protectionTermsReferenceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 protectionTermsReferenceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 protectionTermsReference = new ProtectionTermsReference(item);
             }
         }
     }
     
 
     XmlNodeList settlementTermsReferenceNodeList = xmlNode.SelectNodes("settlementTermsReference");
     if (settlementTermsReferenceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in settlementTermsReferenceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 settlementTermsReferenceIDRef = item.Attributes["id"].Name;
                 SettlementTermsReference ob = SettlementTermsReference();
                 IDManager.SetID(settlementTermsReferenceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 settlementTermsReferenceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 settlementTermsReference = new SettlementTermsReference(item);
             }
         }
     }
     
 
 }
コード例 #3
0
        public ReferencePoolItem(XmlNode xmlNode)
        {
            XmlNodeList constituentWeightNodeList = xmlNode.SelectNodes("constituentWeight");

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

            foreach (XmlNode item in constituentWeightNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        constituentWeightIDRef = item.Attributes["id"].Name;
                        ConstituentWeight ob = ConstituentWeight();
                        IDManager.SetID(constituentWeightIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        constituentWeightIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        constituentWeight = new ConstituentWeight(item);
                    }
                }
            }


            XmlNodeList referencePairNodeList = xmlNode.SelectNodes("referencePair");

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

            foreach (XmlNode item in referencePairNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        referencePairIDRef = item.Attributes["id"].Name;
                        ReferencePair ob = ReferencePair();
                        IDManager.SetID(referencePairIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        referencePairIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        referencePair = new ReferencePair(item);
                    }
                }
            }


            XmlNodeList protectionTermsReferenceNodeList = xmlNode.SelectNodes("protectionTermsReference");

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

            foreach (XmlNode item in protectionTermsReferenceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        protectionTermsReferenceIDRef = item.Attributes["id"].Name;
                        ProtectionTermsReference ob = ProtectionTermsReference();
                        IDManager.SetID(protectionTermsReferenceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        protectionTermsReferenceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        protectionTermsReference = new ProtectionTermsReference(item);
                    }
                }
            }


            XmlNodeList settlementTermsReferenceNodeList = xmlNode.SelectNodes("settlementTermsReference");

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

            foreach (XmlNode item in settlementTermsReferenceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        settlementTermsReferenceIDRef = item.Attributes["id"].Name;
                        SettlementTermsReference ob = SettlementTermsReference();
                        IDManager.SetID(settlementTermsReferenceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        settlementTermsReferenceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        settlementTermsReference = new SettlementTermsReference(item);
                    }
                }
            }
        }