예제 #1
0
        public LegIdentifier(XmlNode xmlNode)
        {
            XmlNode legIdNode = xmlNode.SelectSingleNode("legId");

            if (legIdNode != null)
            {
                if (legIdNode.Attributes["href"] != null || legIdNode.Attributes["id"] != null)
                {
                    if (legIdNode.Attributes["id"] != null)
                    {
                        legIdIDRef_ = legIdNode.Attributes["id"].Value;
                        LegId ob = new LegId(legIdNode);
                        IDManager.SetID(legIdIDRef_, ob);
                    }
                    else if (legIdNode.Attributes["href"] != null)
                    {
                        legIdIDRef_ = legIdNode.Attributes["href"].Value;
                    }
                    else
                    {
                        legId_ = new LegId(legIdNode);
                    }
                }
                else
                {
                    legId_ = new LegId(legIdNode);
                }
            }


            XmlNode versionNode = xmlNode.SelectSingleNode("version");

            if (versionNode != null)
            {
                if (versionNode.Attributes["href"] != null || versionNode.Attributes["id"] != null)
                {
                    if (versionNode.Attributes["id"] != null)
                    {
                        versionIDRef_ = versionNode.Attributes["id"].Value;
                        XsdTypeNonNegativeInteger ob = new XsdTypeNonNegativeInteger(versionNode);
                        IDManager.SetID(versionIDRef_, ob);
                    }
                    else if (versionNode.Attributes["href"] != null)
                    {
                        versionIDRef_ = versionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        version_ = new XsdTypeNonNegativeInteger(versionNode);
                    }
                }
                else
                {
                    version_ = new XsdTypeNonNegativeInteger(versionNode);
                }
            }


            XmlNode effectiveDateNode = xmlNode.SelectSingleNode("effectiveDate");

            if (effectiveDateNode != null)
            {
                if (effectiveDateNode.Attributes["href"] != null || effectiveDateNode.Attributes["id"] != null)
                {
                    if (effectiveDateNode.Attributes["id"] != null)
                    {
                        effectiveDateIDRef_ = effectiveDateNode.Attributes["id"].Value;
                        IdentifiedDate ob = new IdentifiedDate(effectiveDateNode);
                        IDManager.SetID(effectiveDateIDRef_, ob);
                    }
                    else if (effectiveDateNode.Attributes["href"] != null)
                    {
                        effectiveDateIDRef_ = effectiveDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        effectiveDate_ = new IdentifiedDate(effectiveDateNode);
                    }
                }
                else
                {
                    effectiveDate_ = new IdentifiedDate(effectiveDateNode);
                }
            }
        }
 public LegIdentifier(XmlNode xmlNode)
 {
     XmlNode legIdNode = xmlNode.SelectSingleNode("legId");
     
     if (legIdNode != null)
     {
         if (legIdNode.Attributes["href"] != null || legIdNode.Attributes["id"] != null) 
         {
             if (legIdNode.Attributes["id"] != null) 
             {
                 legIdIDRef_ = legIdNode.Attributes["id"].Value;
                 LegId ob = new LegId(legIdNode);
                 IDManager.SetID(legIdIDRef_, ob);
             }
             else if (legIdNode.Attributes["href"] != null)
             {
                 legIdIDRef_ = legIdNode.Attributes["href"].Value;
             }
             else
             {
                 legId_ = new LegId(legIdNode);
             }
         }
         else
         {
             legId_ = new LegId(legIdNode);
         }
     }
     
 
     XmlNode versionNode = xmlNode.SelectSingleNode("version");
     
     if (versionNode != null)
     {
         if (versionNode.Attributes["href"] != null || versionNode.Attributes["id"] != null) 
         {
             if (versionNode.Attributes["id"] != null) 
             {
                 versionIDRef_ = versionNode.Attributes["id"].Value;
                 XsdTypeNonNegativeInteger ob = new XsdTypeNonNegativeInteger(versionNode);
                 IDManager.SetID(versionIDRef_, ob);
             }
             else if (versionNode.Attributes["href"] != null)
             {
                 versionIDRef_ = versionNode.Attributes["href"].Value;
             }
             else
             {
                 version_ = new XsdTypeNonNegativeInteger(versionNode);
             }
         }
         else
         {
             version_ = new XsdTypeNonNegativeInteger(versionNode);
         }
     }
     
 
     XmlNode effectiveDateNode = xmlNode.SelectSingleNode("effectiveDate");
     
     if (effectiveDateNode != null)
     {
         if (effectiveDateNode.Attributes["href"] != null || effectiveDateNode.Attributes["id"] != null) 
         {
             if (effectiveDateNode.Attributes["id"] != null) 
             {
                 effectiveDateIDRef_ = effectiveDateNode.Attributes["id"].Value;
                 IdentifiedDate ob = new IdentifiedDate(effectiveDateNode);
                 IDManager.SetID(effectiveDateIDRef_, ob);
             }
             else if (effectiveDateNode.Attributes["href"] != null)
             {
                 effectiveDateIDRef_ = effectiveDateNode.Attributes["href"].Value;
             }
             else
             {
                 effectiveDate_ = new IdentifiedDate(effectiveDateNode);
             }
         }
         else
         {
             effectiveDate_ = new IdentifiedDate(effectiveDateNode);
         }
     }
     
 
 }
        public LegIdentifier(XmlNode xmlNode)
        {
            XmlNodeList legIdNodeList = xmlNode.SelectNodes("legId");

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

            foreach (XmlNode item in legIdNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        legIdIDRef = item.Attributes["id"].Name;
                        LegId ob = LegId();
                        IDManager.SetID(legIdIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        legIdIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        legId = new LegId(item);
                    }
                }
            }


            XmlNodeList versionNodeList = xmlNode.SelectNodes("version");

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

            foreach (XmlNode item in versionNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        versionIDRef = item.Attributes["id"].Name;
                        XsdTypeNonNegativeInteger ob = XsdTypeNonNegativeInteger();
                        IDManager.SetID(versionIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        versionIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        version = new XsdTypeNonNegativeInteger(item);
                    }
                }
            }


            XmlNodeList effectiveDateNodeList = xmlNode.SelectNodes("effectiveDate");

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

            foreach (XmlNode item in effectiveDateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        effectiveDateIDRef = item.Attributes["id"].Name;
                        IdentifiedDate ob = IdentifiedDate();
                        IDManager.SetID(effectiveDateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        effectiveDateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        effectiveDate = new IdentifiedDate(item);
                    }
                }
            }
        }
 public LegIdentifier(XmlNode xmlNode)
 {
     XmlNodeList legIdNodeList = xmlNode.SelectNodes("legId");
     if (legIdNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in legIdNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 legIdIDRef = item.Attributes["id"].Name;
                 LegId ob = LegId();
                 IDManager.SetID(legIdIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 legIdIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 legId = new LegId(item);
             }
         }
     }
     
 
     XmlNodeList versionNodeList = xmlNode.SelectNodes("version");
     if (versionNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in versionNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 versionIDRef = item.Attributes["id"].Name;
                 XsdTypeNonNegativeInteger ob = XsdTypeNonNegativeInteger();
                 IDManager.SetID(versionIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 versionIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 version = new XsdTypeNonNegativeInteger(item);
             }
         }
     }
     
 
     XmlNodeList effectiveDateNodeList = xmlNode.SelectNodes("effectiveDate");
     if (effectiveDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in effectiveDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 effectiveDateIDRef = item.Attributes["id"].Name;
                 IdentifiedDate ob = IdentifiedDate();
                 IDManager.SetID(effectiveDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 effectiveDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 effectiveDate = new IdentifiedDate(item);
             }
         }
     }
     
 
 }