Beispiel #1
0
        public ConfirmationStatus(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode statusNode = xmlNode.SelectSingleNode("status");

            if (statusNode != null)
            {
                if (statusNode.Attributes["href"] != null || statusNode.Attributes["id"] != null)
                {
                    if (statusNode.Attributes["id"] != null)
                    {
                        statusIDRef_ = statusNode.Attributes["id"].Value;
                        EventStatus ob = new EventStatus(statusNode);
                        IDManager.SetID(statusIDRef_, ob);
                    }
                    else if (statusNode.Attributes["href"] != null)
                    {
                        statusIDRef_ = statusNode.Attributes["href"].Value;
                    }
                    else
                    {
                        status_ = new EventStatus(statusNode);
                    }
                }
                else
                {
                    status_ = new EventStatus(statusNode);
                }
            }


            XmlNode assertedEventNode = xmlNode.SelectSingleNode("assertedEvent");

            if (assertedEventNode != null)
            {
                if (assertedEventNode.Attributes["href"] != null || assertedEventNode.Attributes["id"] != null)
                {
                    if (assertedEventNode.Attributes["id"] != null)
                    {
                        assertedEventIDRef_ = assertedEventNode.Attributes["id"].Value;
                        EventsChoice ob = new EventsChoice(assertedEventNode);
                        IDManager.SetID(assertedEventIDRef_, ob);
                    }
                    else if (assertedEventNode.Attributes["href"] != null)
                    {
                        assertedEventIDRef_ = assertedEventNode.Attributes["href"].Value;
                    }
                    else
                    {
                        assertedEvent_ = new EventsChoice(assertedEventNode);
                    }
                }
                else
                {
                    assertedEvent_ = new EventsChoice(assertedEventNode);
                }
            }


            XmlNodeList proposedMatchNodeList = xmlNode.SelectNodes("proposedMatch");

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


            XmlNode allegedEventNode = xmlNode.SelectSingleNode("allegedEvent");

            if (allegedEventNode != null)
            {
                if (allegedEventNode.Attributes["href"] != null || allegedEventNode.Attributes["id"] != null)
                {
                    if (allegedEventNode.Attributes["id"] != null)
                    {
                        allegedEventIDRef_ = allegedEventNode.Attributes["id"].Value;
                        EventsChoice ob = new EventsChoice(allegedEventNode);
                        IDManager.SetID(allegedEventIDRef_, ob);
                    }
                    else if (allegedEventNode.Attributes["href"] != null)
                    {
                        allegedEventIDRef_ = allegedEventNode.Attributes["href"].Value;
                    }
                    else
                    {
                        allegedEvent_ = new EventsChoice(allegedEventNode);
                    }
                }
                else
                {
                    allegedEvent_ = new EventsChoice(allegedEventNode);
                }
            }


            XmlNodeList partyNodeList = xmlNode.SelectNodes("party");

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


            XmlNodeList accountNodeList = xmlNode.SelectNodes("account");

            if (accountNodeList != null)
            {
                this.account_ = new List <Account>();
                foreach (XmlNode item in accountNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            accountIDRef_ = item.Attributes["id"].Value;
                            account_.Add(new Account(item));
                            IDManager.SetID(accountIDRef_, account_[account_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            accountIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            account_.Add(new Account(item));
                        }
                    }
                    else
                    {
                        account_.Add(new Account(item));
                    }
                }
            }
        }
 public ConfirmationStatus(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList statusNodeList = xmlNode.SelectNodes("status");
     if (statusNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in statusNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 statusIDRef = item.Attributes["id"].Name;
                 EventStatus ob = EventStatus();
                 IDManager.SetID(statusIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 statusIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 status = new EventStatus(item);
             }
         }
     }
     
 
     XmlNodeList assertedEventNodeList = xmlNode.SelectNodes("assertedEvent");
     if (assertedEventNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in assertedEventNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 assertedEventIDRef = item.Attributes["id"].Name;
                 EventsChoice ob = EventsChoice();
                 IDManager.SetID(assertedEventIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 assertedEventIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 assertedEvent = new EventsChoice(item);
             }
         }
     }
     
 
     XmlNodeList proposedMatchNodeList = xmlNode.SelectNodes("proposedMatch");
     
     foreach (XmlNode item in proposedMatchNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 proposedMatchIDRef = item.Attributes["id"].Name;
                 List<EventProposedMatch> ob = new List<EventProposedMatch>();
                 ob.Add(new EventProposedMatch(item));
                 IDManager.SetID(proposedMatchIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 proposedMatchIDRef = item.Attributes["href"].Name;
             }
             else
             {
             proposedMatch.Add(new EventProposedMatch(item));
             }
         }
     }
     
 
     XmlNodeList allegedEventNodeList = xmlNode.SelectNodes("allegedEvent");
     if (allegedEventNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in allegedEventNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 allegedEventIDRef = item.Attributes["id"].Name;
                 EventsChoice ob = EventsChoice();
                 IDManager.SetID(allegedEventIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 allegedEventIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 allegedEvent = new EventsChoice(item);
             }
         }
     }
     
 
     XmlNodeList partyNodeList = xmlNode.SelectNodes("party");
     
     foreach (XmlNode item in partyNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 partyIDRef = item.Attributes["id"].Name;
                 List<Party> ob = new List<Party>();
                 ob.Add(new Party(item));
                 IDManager.SetID(partyIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 partyIDRef = item.Attributes["href"].Name;
             }
             else
             {
             party.Add(new Party(item));
             }
         }
     }
     
 
     XmlNodeList accountNodeList = xmlNode.SelectNodes("account");
     
     foreach (XmlNode item in accountNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 accountIDRef = item.Attributes["id"].Name;
                 List<Account> ob = new List<Account>();
                 ob.Add(new Account(item));
                 IDManager.SetID(accountIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 accountIDRef = item.Attributes["href"].Name;
             }
             else
             {
             account.Add(new Account(item));
             }
         }
     }
     
 
 }
Beispiel #3
0
        public ConfirmationStatus(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList statusNodeList = xmlNode.SelectNodes("status");

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

            foreach (XmlNode item in statusNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        statusIDRef = item.Attributes["id"].Name;
                        EventStatus ob = EventStatus();
                        IDManager.SetID(statusIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        statusIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        status = new EventStatus(item);
                    }
                }
            }


            XmlNodeList assertedEventNodeList = xmlNode.SelectNodes("assertedEvent");

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

            foreach (XmlNode item in assertedEventNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        assertedEventIDRef = item.Attributes["id"].Name;
                        EventsChoice ob = EventsChoice();
                        IDManager.SetID(assertedEventIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        assertedEventIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        assertedEvent = new EventsChoice(item);
                    }
                }
            }


            XmlNodeList proposedMatchNodeList = xmlNode.SelectNodes("proposedMatch");

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


            XmlNodeList allegedEventNodeList = xmlNode.SelectNodes("allegedEvent");

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

            foreach (XmlNode item in allegedEventNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        allegedEventIDRef = item.Attributes["id"].Name;
                        EventsChoice ob = EventsChoice();
                        IDManager.SetID(allegedEventIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        allegedEventIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        allegedEvent = new EventsChoice(item);
                    }
                }
            }


            XmlNodeList partyNodeList = xmlNode.SelectNodes("party");

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


            XmlNodeList accountNodeList = xmlNode.SelectNodes("account");

            foreach (XmlNode item in accountNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        accountIDRef = item.Attributes["id"].Name;
                        List <Account> ob = new List <Account>();
                        ob.Add(new Account(item));
                        IDManager.SetID(accountIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        accountIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        account.Add(new Account(item));
                    }
                }
            }
        }
 public ConfirmationStatus(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode statusNode = xmlNode.SelectSingleNode("status");
     
     if (statusNode != null)
     {
         if (statusNode.Attributes["href"] != null || statusNode.Attributes["id"] != null) 
         {
             if (statusNode.Attributes["id"] != null) 
             {
                 statusIDRef_ = statusNode.Attributes["id"].Value;
                 EventStatus ob = new EventStatus(statusNode);
                 IDManager.SetID(statusIDRef_, ob);
             }
             else if (statusNode.Attributes["href"] != null)
             {
                 statusIDRef_ = statusNode.Attributes["href"].Value;
             }
             else
             {
                 status_ = new EventStatus(statusNode);
             }
         }
         else
         {
             status_ = new EventStatus(statusNode);
         }
     }
     
 
     XmlNode assertedEventNode = xmlNode.SelectSingleNode("assertedEvent");
     
     if (assertedEventNode != null)
     {
         if (assertedEventNode.Attributes["href"] != null || assertedEventNode.Attributes["id"] != null) 
         {
             if (assertedEventNode.Attributes["id"] != null) 
             {
                 assertedEventIDRef_ = assertedEventNode.Attributes["id"].Value;
                 EventsChoice ob = new EventsChoice(assertedEventNode);
                 IDManager.SetID(assertedEventIDRef_, ob);
             }
             else if (assertedEventNode.Attributes["href"] != null)
             {
                 assertedEventIDRef_ = assertedEventNode.Attributes["href"].Value;
             }
             else
             {
                 assertedEvent_ = new EventsChoice(assertedEventNode);
             }
         }
         else
         {
             assertedEvent_ = new EventsChoice(assertedEventNode);
         }
     }
     
 
     XmlNodeList proposedMatchNodeList = xmlNode.SelectNodes("proposedMatch");
     
     if (proposedMatchNodeList != null)
     {
         this.proposedMatch_ = new List<EventProposedMatch>();
         foreach (XmlNode item in proposedMatchNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     proposedMatchIDRef_ = item.Attributes["id"].Value;
                     proposedMatch_.Add(new EventProposedMatch(item));
                     IDManager.SetID(proposedMatchIDRef_, proposedMatch_[proposedMatch_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     proposedMatchIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 proposedMatch_.Add(new EventProposedMatch(item));
                 }
             }
             else
             {
                 proposedMatch_.Add(new EventProposedMatch(item));
             }
         }
     }
     
 
     XmlNode allegedEventNode = xmlNode.SelectSingleNode("allegedEvent");
     
     if (allegedEventNode != null)
     {
         if (allegedEventNode.Attributes["href"] != null || allegedEventNode.Attributes["id"] != null) 
         {
             if (allegedEventNode.Attributes["id"] != null) 
             {
                 allegedEventIDRef_ = allegedEventNode.Attributes["id"].Value;
                 EventsChoice ob = new EventsChoice(allegedEventNode);
                 IDManager.SetID(allegedEventIDRef_, ob);
             }
             else if (allegedEventNode.Attributes["href"] != null)
             {
                 allegedEventIDRef_ = allegedEventNode.Attributes["href"].Value;
             }
             else
             {
                 allegedEvent_ = new EventsChoice(allegedEventNode);
             }
         }
         else
         {
             allegedEvent_ = new EventsChoice(allegedEventNode);
         }
     }
     
 
     XmlNodeList partyNodeList = xmlNode.SelectNodes("party");
     
     if (partyNodeList != null)
     {
         this.party_ = new List<Party>();
         foreach (XmlNode item in partyNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     partyIDRef_ = item.Attributes["id"].Value;
                     party_.Add(new Party(item));
                     IDManager.SetID(partyIDRef_, party_[party_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     partyIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 party_.Add(new Party(item));
                 }
             }
             else
             {
                 party_.Add(new Party(item));
             }
         }
     }
     
 
     XmlNodeList accountNodeList = xmlNode.SelectNodes("account");
     
     if (accountNodeList != null)
     {
         this.account_ = new List<Account>();
         foreach (XmlNode item in accountNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     accountIDRef_ = item.Attributes["id"].Value;
                     account_.Add(new Account(item));
                     IDManager.SetID(accountIDRef_, account_[account_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     accountIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 account_.Add(new Account(item));
                 }
             }
             else
             {
                 account_.Add(new Account(item));
             }
         }
     }
     
 
 }