public SupervisorRegistration(XmlNode xmlNode)
 {
     XmlNode supervisoryBodyNode = xmlNode.SelectSingleNode("supervisoryBody");
     
     if (supervisoryBodyNode != null)
     {
         if (supervisoryBodyNode.Attributes["href"] != null || supervisoryBodyNode.Attributes["id"] != null) 
         {
             if (supervisoryBodyNode.Attributes["id"] != null) 
             {
                 supervisoryBodyIDRef_ = supervisoryBodyNode.Attributes["id"].Value;
                 SupervisoryBody ob = new SupervisoryBody(supervisoryBodyNode);
                 IDManager.SetID(supervisoryBodyIDRef_, ob);
             }
             else if (supervisoryBodyNode.Attributes["href"] != null)
             {
                 supervisoryBodyIDRef_ = supervisoryBodyNode.Attributes["href"].Value;
             }
             else
             {
                 supervisoryBody_ = new SupervisoryBody(supervisoryBodyNode);
             }
         }
         else
         {
             supervisoryBody_ = new SupervisoryBody(supervisoryBodyNode);
         }
     }
     
 
     XmlNode registrationNumberNode = xmlNode.SelectSingleNode("registrationNumber");
     
     if (registrationNumberNode != null)
     {
         if (registrationNumberNode.Attributes["href"] != null || registrationNumberNode.Attributes["id"] != null) 
         {
             if (registrationNumberNode.Attributes["id"] != null) 
             {
                 registrationNumberIDRef_ = registrationNumberNode.Attributes["id"].Value;
                 RegulatorId ob = new RegulatorId(registrationNumberNode);
                 IDManager.SetID(registrationNumberIDRef_, ob);
             }
             else if (registrationNumberNode.Attributes["href"] != null)
             {
                 registrationNumberIDRef_ = registrationNumberNode.Attributes["href"].Value;
             }
             else
             {
                 registrationNumber_ = new RegulatorId(registrationNumberNode);
             }
         }
         else
         {
             registrationNumber_ = new RegulatorId(registrationNumberNode);
         }
     }
     
 
 }
 public SupervisorRegistration(XmlNode xmlNode)
 {
     XmlNodeList supervisoryBodyNodeList = xmlNode.SelectNodes("supervisoryBody");
     if (supervisoryBodyNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in supervisoryBodyNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 supervisoryBodyIDRef = item.Attributes["id"].Name;
                 SupervisoryBody ob = SupervisoryBody();
                 IDManager.SetID(supervisoryBodyIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 supervisoryBodyIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 supervisoryBody = new SupervisoryBody(item);
             }
         }
     }
     
 
     XmlNodeList registrationNumberNodeList = xmlNode.SelectNodes("registrationNumber");
     if (registrationNumberNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in registrationNumberNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 registrationNumberIDRef = item.Attributes["id"].Name;
                 RegulatorId ob = RegulatorId();
                 IDManager.SetID(registrationNumberIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 registrationNumberIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 registrationNumber = new RegulatorId(item);
             }
         }
     }
     
 
 }
Ejemplo n.º 3
0
        public SupervisorRegistration(XmlNode xmlNode)
        {
            XmlNodeList supervisoryBodyNodeList = xmlNode.SelectNodes("supervisoryBody");

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

            foreach (XmlNode item in supervisoryBodyNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        supervisoryBodyIDRef = item.Attributes["id"].Name;
                        SupervisoryBody ob = SupervisoryBody();
                        IDManager.SetID(supervisoryBodyIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        supervisoryBodyIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        supervisoryBody = new SupervisoryBody(item);
                    }
                }
            }


            XmlNodeList registrationNumberNodeList = xmlNode.SelectNodes("registrationNumber");

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

            foreach (XmlNode item in registrationNumberNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        registrationNumberIDRef = item.Attributes["id"].Name;
                        RegulatorId ob = RegulatorId();
                        IDManager.SetID(registrationNumberIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        registrationNumberIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        registrationNumber = new RegulatorId(item);
                    }
                }
            }
        }
Ejemplo n.º 4
0
        public SupervisorRegistration(XmlNode xmlNode)
        {
            XmlNode supervisoryBodyNode = xmlNode.SelectSingleNode("supervisoryBody");

            if (supervisoryBodyNode != null)
            {
                if (supervisoryBodyNode.Attributes["href"] != null || supervisoryBodyNode.Attributes["id"] != null)
                {
                    if (supervisoryBodyNode.Attributes["id"] != null)
                    {
                        supervisoryBodyIDRef_ = supervisoryBodyNode.Attributes["id"].Value;
                        SupervisoryBody ob = new SupervisoryBody(supervisoryBodyNode);
                        IDManager.SetID(supervisoryBodyIDRef_, ob);
                    }
                    else if (supervisoryBodyNode.Attributes["href"] != null)
                    {
                        supervisoryBodyIDRef_ = supervisoryBodyNode.Attributes["href"].Value;
                    }
                    else
                    {
                        supervisoryBody_ = new SupervisoryBody(supervisoryBodyNode);
                    }
                }
                else
                {
                    supervisoryBody_ = new SupervisoryBody(supervisoryBodyNode);
                }
            }


            XmlNode registrationNumberNode = xmlNode.SelectSingleNode("registrationNumber");

            if (registrationNumberNode != null)
            {
                if (registrationNumberNode.Attributes["href"] != null || registrationNumberNode.Attributes["id"] != null)
                {
                    if (registrationNumberNode.Attributes["id"] != null)
                    {
                        registrationNumberIDRef_ = registrationNumberNode.Attributes["id"].Value;
                        RegulatorId ob = new RegulatorId(registrationNumberNode);
                        IDManager.SetID(registrationNumberIDRef_, ob);
                    }
                    else if (registrationNumberNode.Attributes["href"] != null)
                    {
                        registrationNumberIDRef_ = registrationNumberNode.Attributes["href"].Value;
                    }
                    else
                    {
                        registrationNumber_ = new RegulatorId(registrationNumberNode);
                    }
                }
                else
                {
                    registrationNumber_ = new RegulatorId(registrationNumberNode);
                }
            }
        }