public GeneralTerminationEvent(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode detailTerminationTypeNode = xmlNode.SelectSingleNode("detailTerminationType");
     
     if (detailTerminationTypeNode != null)
     {
         if (detailTerminationTypeNode.Attributes["href"] != null || detailTerminationTypeNode.Attributes["id"] != null) 
         {
             if (detailTerminationTypeNode.Attributes["id"] != null) 
             {
                 detailTerminationTypeIDRef_ = detailTerminationTypeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(detailTerminationTypeNode);
                 IDManager.SetID(detailTerminationTypeIDRef_, ob);
             }
             else if (detailTerminationTypeNode.Attributes["href"] != null)
             {
                 detailTerminationTypeIDRef_ = detailTerminationTypeNode.Attributes["href"].Value;
             }
             else
             {
                 detailTerminationType_ = new XsdTypeToken(detailTerminationTypeNode);
             }
         }
         else
         {
             detailTerminationType_ = new XsdTypeToken(detailTerminationTypeNode);
         }
     }
     
 
     XmlNode eventDateNode = xmlNode.SelectSingleNode("eventDate");
     
     if (eventDateNode != null)
     {
         if (eventDateNode.Attributes["href"] != null || eventDateNode.Attributes["id"] != null) 
         {
             if (eventDateNode.Attributes["id"] != null) 
             {
                 eventDateIDRef_ = eventDateNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(eventDateNode);
                 IDManager.SetID(eventDateIDRef_, ob);
             }
             else if (eventDateNode.Attributes["href"] != null)
             {
                 eventDateIDRef_ = eventDateNode.Attributes["href"].Value;
             }
             else
             {
                 eventDate_ = new XsdTypeToken(eventDateNode);
             }
         }
         else
         {
             eventDate_ = new XsdTypeToken(eventDateNode);
         }
     }
     
 
     XmlNode generalTerminationEventDetailNode = xmlNode.SelectSingleNode("generalTerminationEventDetail");
     
     if (generalTerminationEventDetailNode != null)
     {
         if (generalTerminationEventDetailNode.Attributes["href"] != null || generalTerminationEventDetailNode.Attributes["id"] != null) 
         {
             if (generalTerminationEventDetailNode.Attributes["id"] != null) 
             {
                 generalTerminationEventDetailIDRef_ = generalTerminationEventDetailNode.Attributes["id"].Value;
                 GeneralTerminationEventDetail ob = new GeneralTerminationEventDetail(generalTerminationEventDetailNode);
                 IDManager.SetID(generalTerminationEventDetailIDRef_, ob);
             }
             else if (generalTerminationEventDetailNode.Attributes["href"] != null)
             {
                 generalTerminationEventDetailIDRef_ = generalTerminationEventDetailNode.Attributes["href"].Value;
             }
             else
             {
                 generalTerminationEventDetail_ = new GeneralTerminationEventDetail(generalTerminationEventDetailNode);
             }
         }
         else
         {
             generalTerminationEventDetail_ = new GeneralTerminationEventDetail(generalTerminationEventDetailNode);
         }
     }
     
 
 }
Ejemplo n.º 2
0
        public GeneralTerminationEvent(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode detailTerminationTypeNode = xmlNode.SelectSingleNode("detailTerminationType");

            if (detailTerminationTypeNode != null)
            {
                if (detailTerminationTypeNode.Attributes["href"] != null || detailTerminationTypeNode.Attributes["id"] != null)
                {
                    if (detailTerminationTypeNode.Attributes["id"] != null)
                    {
                        detailTerminationTypeIDRef_ = detailTerminationTypeNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(detailTerminationTypeNode);
                        IDManager.SetID(detailTerminationTypeIDRef_, ob);
                    }
                    else if (detailTerminationTypeNode.Attributes["href"] != null)
                    {
                        detailTerminationTypeIDRef_ = detailTerminationTypeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        detailTerminationType_ = new XsdTypeToken(detailTerminationTypeNode);
                    }
                }
                else
                {
                    detailTerminationType_ = new XsdTypeToken(detailTerminationTypeNode);
                }
            }


            XmlNode eventDateNode = xmlNode.SelectSingleNode("eventDate");

            if (eventDateNode != null)
            {
                if (eventDateNode.Attributes["href"] != null || eventDateNode.Attributes["id"] != null)
                {
                    if (eventDateNode.Attributes["id"] != null)
                    {
                        eventDateIDRef_ = eventDateNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(eventDateNode);
                        IDManager.SetID(eventDateIDRef_, ob);
                    }
                    else if (eventDateNode.Attributes["href"] != null)
                    {
                        eventDateIDRef_ = eventDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        eventDate_ = new XsdTypeToken(eventDateNode);
                    }
                }
                else
                {
                    eventDate_ = new XsdTypeToken(eventDateNode);
                }
            }


            XmlNode generalTerminationEventDetailNode = xmlNode.SelectSingleNode("generalTerminationEventDetail");

            if (generalTerminationEventDetailNode != null)
            {
                if (generalTerminationEventDetailNode.Attributes["href"] != null || generalTerminationEventDetailNode.Attributes["id"] != null)
                {
                    if (generalTerminationEventDetailNode.Attributes["id"] != null)
                    {
                        generalTerminationEventDetailIDRef_ = generalTerminationEventDetailNode.Attributes["id"].Value;
                        GeneralTerminationEventDetail ob = new GeneralTerminationEventDetail(generalTerminationEventDetailNode);
                        IDManager.SetID(generalTerminationEventDetailIDRef_, ob);
                    }
                    else if (generalTerminationEventDetailNode.Attributes["href"] != null)
                    {
                        generalTerminationEventDetailIDRef_ = generalTerminationEventDetailNode.Attributes["href"].Value;
                    }
                    else
                    {
                        generalTerminationEventDetail_ = new GeneralTerminationEventDetail(generalTerminationEventDetailNode);
                    }
                }
                else
                {
                    generalTerminationEventDetail_ = new GeneralTerminationEventDetail(generalTerminationEventDetailNode);
                }
            }
        }