コード例 #1
0
 public ReportingRegime(XmlNode xmlNode)
 {
     XmlNodeList nameNodeList = xmlNode.SelectNodes("name");
     if (nameNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in nameNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 nameIDRef = item.Attributes["id"].Name;
                 ReportingRegimeName ob = ReportingRegimeName();
                 IDManager.SetID(nameIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 nameIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 name = new ReportingRegimeName(item);
             }
         }
     }
     
 
     XmlNodeList supervisorRegistrationNodeList = xmlNode.SelectNodes("supervisorRegistration");
     
     foreach (XmlNode item in supervisorRegistrationNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 supervisorRegistrationIDRef = item.Attributes["id"].Name;
                 List<SupervisorRegistration> ob = new List<SupervisorRegistration>();
                 ob.Add(new SupervisorRegistration(item));
                 IDManager.SetID(supervisorRegistrationIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 supervisorRegistrationIDRef = item.Attributes["href"].Name;
             }
             else
             {
             supervisorRegistration.Add(new SupervisorRegistration(item));
             }
         }
     }
     
 
     XmlNodeList reportingRoleNodeList = xmlNode.SelectNodes("reportingRole");
     if (reportingRoleNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in reportingRoleNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 reportingRoleIDRef = item.Attributes["id"].Name;
                 ReportingRole ob = ReportingRole();
                 IDManager.SetID(reportingRoleIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 reportingRoleIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 reportingRole = new ReportingRole(item);
             }
         }
     }
     
 
     XmlNodeList reportingPurposeNodeList = xmlNode.SelectNodes("reportingPurpose");
     
     foreach (XmlNode item in reportingPurposeNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 reportingPurposeIDRef = item.Attributes["id"].Name;
                 List<ReportingPurpose> ob = new List<ReportingPurpose>();
                 ob.Add(new ReportingPurpose(item));
                 IDManager.SetID(reportingPurposeIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 reportingPurposeIDRef = item.Attributes["href"].Name;
             }
             else
             {
             reportingPurpose.Add(new ReportingPurpose(item));
             }
         }
     }
     
 
     XmlNodeList mandatorilyClearableNodeList = xmlNode.SelectNodes("mandatorilyClearable");
     if (mandatorilyClearableNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in mandatorilyClearableNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 mandatorilyClearableIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(mandatorilyClearableIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 mandatorilyClearableIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 mandatorilyClearable = new XsdTypeBoolean(item);
             }
         }
     }
     
 
 }
コード例 #2
0
 public ReportingRegime(XmlNode xmlNode)
 {
     XmlNode nameNode = xmlNode.SelectSingleNode("name");
     
     if (nameNode != null)
     {
         if (nameNode.Attributes["href"] != null || nameNode.Attributes["id"] != null) 
         {
             if (nameNode.Attributes["id"] != null) 
             {
                 nameIDRef_ = nameNode.Attributes["id"].Value;
                 ReportingRegimeName ob = new ReportingRegimeName(nameNode);
                 IDManager.SetID(nameIDRef_, ob);
             }
             else if (nameNode.Attributes["href"] != null)
             {
                 nameIDRef_ = nameNode.Attributes["href"].Value;
             }
             else
             {
                 name_ = new ReportingRegimeName(nameNode);
             }
         }
         else
         {
             name_ = new ReportingRegimeName(nameNode);
         }
     }
     
 
     XmlNodeList supervisorRegistrationNodeList = xmlNode.SelectNodes("supervisorRegistration");
     
     if (supervisorRegistrationNodeList != null)
     {
         this.supervisorRegistration_ = new List<SupervisorRegistration>();
         foreach (XmlNode item in supervisorRegistrationNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     supervisorRegistrationIDRef_ = item.Attributes["id"].Value;
                     supervisorRegistration_.Add(new SupervisorRegistration(item));
                     IDManager.SetID(supervisorRegistrationIDRef_, supervisorRegistration_[supervisorRegistration_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     supervisorRegistrationIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 supervisorRegistration_.Add(new SupervisorRegistration(item));
                 }
             }
             else
             {
                 supervisorRegistration_.Add(new SupervisorRegistration(item));
             }
         }
     }
     
 
     XmlNode reportingRoleNode = xmlNode.SelectSingleNode("reportingRole");
     
     if (reportingRoleNode != null)
     {
         if (reportingRoleNode.Attributes["href"] != null || reportingRoleNode.Attributes["id"] != null) 
         {
             if (reportingRoleNode.Attributes["id"] != null) 
             {
                 reportingRoleIDRef_ = reportingRoleNode.Attributes["id"].Value;
                 ReportingRole ob = new ReportingRole(reportingRoleNode);
                 IDManager.SetID(reportingRoleIDRef_, ob);
             }
             else if (reportingRoleNode.Attributes["href"] != null)
             {
                 reportingRoleIDRef_ = reportingRoleNode.Attributes["href"].Value;
             }
             else
             {
                 reportingRole_ = new ReportingRole(reportingRoleNode);
             }
         }
         else
         {
             reportingRole_ = new ReportingRole(reportingRoleNode);
         }
     }
     
 
     XmlNodeList reportingPurposeNodeList = xmlNode.SelectNodes("reportingPurpose");
     
     if (reportingPurposeNodeList != null)
     {
         this.reportingPurpose_ = new List<ReportingPurpose>();
         foreach (XmlNode item in reportingPurposeNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     reportingPurposeIDRef_ = item.Attributes["id"].Value;
                     reportingPurpose_.Add(new ReportingPurpose(item));
                     IDManager.SetID(reportingPurposeIDRef_, reportingPurpose_[reportingPurpose_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     reportingPurposeIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 reportingPurpose_.Add(new ReportingPurpose(item));
                 }
             }
             else
             {
                 reportingPurpose_.Add(new ReportingPurpose(item));
             }
         }
     }
     
 
     XmlNode mandatorilyClearableNode = xmlNode.SelectSingleNode("mandatorilyClearable");
     
     if (mandatorilyClearableNode != null)
     {
         if (mandatorilyClearableNode.Attributes["href"] != null || mandatorilyClearableNode.Attributes["id"] != null) 
         {
             if (mandatorilyClearableNode.Attributes["id"] != null) 
             {
                 mandatorilyClearableIDRef_ = mandatorilyClearableNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(mandatorilyClearableNode);
                 IDManager.SetID(mandatorilyClearableIDRef_, ob);
             }
             else if (mandatorilyClearableNode.Attributes["href"] != null)
             {
                 mandatorilyClearableIDRef_ = mandatorilyClearableNode.Attributes["href"].Value;
             }
             else
             {
                 mandatorilyClearable_ = new XsdTypeBoolean(mandatorilyClearableNode);
             }
         }
         else
         {
             mandatorilyClearable_ = new XsdTypeBoolean(mandatorilyClearableNode);
         }
     }
     
 
 }
コード例 #3
0
        public ReportingRegime(XmlNode xmlNode)
        {
            XmlNodeList nameNodeList = xmlNode.SelectNodes("name");

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

            foreach (XmlNode item in nameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        nameIDRef = item.Attributes["id"].Name;
                        ReportingRegimeName ob = ReportingRegimeName();
                        IDManager.SetID(nameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        nameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        name = new ReportingRegimeName(item);
                    }
                }
            }


            XmlNodeList supervisorRegistrationNodeList = xmlNode.SelectNodes("supervisorRegistration");

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


            XmlNodeList reportingRoleNodeList = xmlNode.SelectNodes("reportingRole");

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

            foreach (XmlNode item in reportingRoleNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        reportingRoleIDRef = item.Attributes["id"].Name;
                        ReportingRole ob = ReportingRole();
                        IDManager.SetID(reportingRoleIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        reportingRoleIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        reportingRole = new ReportingRole(item);
                    }
                }
            }


            XmlNodeList reportingPurposeNodeList = xmlNode.SelectNodes("reportingPurpose");

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


            XmlNodeList mandatorilyClearableNodeList = xmlNode.SelectNodes("mandatorilyClearable");

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

            foreach (XmlNode item in mandatorilyClearableNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        mandatorilyClearableIDRef = item.Attributes["id"].Name;
                        XsdTypeBoolean ob = XsdTypeBoolean();
                        IDManager.SetID(mandatorilyClearableIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        mandatorilyClearableIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        mandatorilyClearable = new XsdTypeBoolean(item);
                    }
                }
            }
        }
コード例 #4
0
        public ReportingRegime(XmlNode xmlNode)
        {
            XmlNode nameNode = xmlNode.SelectSingleNode("name");

            if (nameNode != null)
            {
                if (nameNode.Attributes["href"] != null || nameNode.Attributes["id"] != null)
                {
                    if (nameNode.Attributes["id"] != null)
                    {
                        nameIDRef_ = nameNode.Attributes["id"].Value;
                        ReportingRegimeName ob = new ReportingRegimeName(nameNode);
                        IDManager.SetID(nameIDRef_, ob);
                    }
                    else if (nameNode.Attributes["href"] != null)
                    {
                        nameIDRef_ = nameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        name_ = new ReportingRegimeName(nameNode);
                    }
                }
                else
                {
                    name_ = new ReportingRegimeName(nameNode);
                }
            }


            XmlNodeList supervisorRegistrationNodeList = xmlNode.SelectNodes("supervisorRegistration");

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


            XmlNode reportingRoleNode = xmlNode.SelectSingleNode("reportingRole");

            if (reportingRoleNode != null)
            {
                if (reportingRoleNode.Attributes["href"] != null || reportingRoleNode.Attributes["id"] != null)
                {
                    if (reportingRoleNode.Attributes["id"] != null)
                    {
                        reportingRoleIDRef_ = reportingRoleNode.Attributes["id"].Value;
                        ReportingRole ob = new ReportingRole(reportingRoleNode);
                        IDManager.SetID(reportingRoleIDRef_, ob);
                    }
                    else if (reportingRoleNode.Attributes["href"] != null)
                    {
                        reportingRoleIDRef_ = reportingRoleNode.Attributes["href"].Value;
                    }
                    else
                    {
                        reportingRole_ = new ReportingRole(reportingRoleNode);
                    }
                }
                else
                {
                    reportingRole_ = new ReportingRole(reportingRoleNode);
                }
            }


            XmlNodeList reportingPurposeNodeList = xmlNode.SelectNodes("reportingPurpose");

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


            XmlNode mandatorilyClearableNode = xmlNode.SelectSingleNode("mandatorilyClearable");

            if (mandatorilyClearableNode != null)
            {
                if (mandatorilyClearableNode.Attributes["href"] != null || mandatorilyClearableNode.Attributes["id"] != null)
                {
                    if (mandatorilyClearableNode.Attributes["id"] != null)
                    {
                        mandatorilyClearableIDRef_ = mandatorilyClearableNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(mandatorilyClearableNode);
                        IDManager.SetID(mandatorilyClearableIDRef_, ob);
                    }
                    else if (mandatorilyClearableNode.Attributes["href"] != null)
                    {
                        mandatorilyClearableIDRef_ = mandatorilyClearableNode.Attributes["href"].Value;
                    }
                    else
                    {
                        mandatorilyClearable_ = new XsdTypeBoolean(mandatorilyClearableNode);
                    }
                }
                else
                {
                    mandatorilyClearable_ = new XsdTypeBoolean(mandatorilyClearableNode);
                }
            }
        }