Пример #1
0
        public BarrierInfo(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode typeNode = xmlNode.SelectSingleNode("type");

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


            XmlNode constDualBarrierInfoNode = xmlNode.SelectSingleNode("constDualBarrierInfo");

            if (constDualBarrierInfoNode != null)
            {
                if (constDualBarrierInfoNode.Attributes["href"] != null || constDualBarrierInfoNode.Attributes["id"] != null)
                {
                    if (constDualBarrierInfoNode.Attributes["id"] != null)
                    {
                        constDualBarrierInfoIDRef_ = constDualBarrierInfoNode.Attributes["id"].Value;
                        ConstDualBarrierInfo ob = new ConstDualBarrierInfo(constDualBarrierInfoNode);
                        IDManager.SetID(constDualBarrierInfoIDRef_, ob);
                    }
                    else if (constDualBarrierInfoNode.Attributes["href"] != null)
                    {
                        constDualBarrierInfoIDRef_ = constDualBarrierInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        constDualBarrierInfo_ = new ConstDualBarrierInfo(constDualBarrierInfoNode);
                    }
                }
                else
                {
                    constDualBarrierInfo_ = new ConstDualBarrierInfo(constDualBarrierInfoNode);
                }
            }


            XmlNode constLowerBarrierInfoNode = xmlNode.SelectSingleNode("constLowerBarrierInfo");

            if (constLowerBarrierInfoNode != null)
            {
                if (constLowerBarrierInfoNode.Attributes["href"] != null || constLowerBarrierInfoNode.Attributes["id"] != null)
                {
                    if (constLowerBarrierInfoNode.Attributes["id"] != null)
                    {
                        constLowerBarrierInfoIDRef_ = constLowerBarrierInfoNode.Attributes["id"].Value;
                        ConstLowerBarrierInfo ob = new ConstLowerBarrierInfo(constLowerBarrierInfoNode);
                        IDManager.SetID(constLowerBarrierInfoIDRef_, ob);
                    }
                    else if (constLowerBarrierInfoNode.Attributes["href"] != null)
                    {
                        constLowerBarrierInfoIDRef_ = constLowerBarrierInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        constLowerBarrierInfo_ = new ConstLowerBarrierInfo(constLowerBarrierInfoNode);
                    }
                }
                else
                {
                    constLowerBarrierInfo_ = new ConstLowerBarrierInfo(constLowerBarrierInfoNode);
                }
            }


            XmlNode constUpperBarrierInfoNode = xmlNode.SelectSingleNode("constUpperBarrierInfo");

            if (constUpperBarrierInfoNode != null)
            {
                if (constUpperBarrierInfoNode.Attributes["href"] != null || constUpperBarrierInfoNode.Attributes["id"] != null)
                {
                    if (constUpperBarrierInfoNode.Attributes["id"] != null)
                    {
                        constUpperBarrierInfoIDRef_ = constUpperBarrierInfoNode.Attributes["id"].Value;
                        ConstUpperBarrierInfo ob = new ConstUpperBarrierInfo(constUpperBarrierInfoNode);
                        IDManager.SetID(constUpperBarrierInfoIDRef_, ob);
                    }
                    else if (constUpperBarrierInfoNode.Attributes["href"] != null)
                    {
                        constUpperBarrierInfoIDRef_ = constUpperBarrierInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        constUpperBarrierInfo_ = new ConstUpperBarrierInfo(constUpperBarrierInfoNode);
                    }
                }
                else
                {
                    constUpperBarrierInfo_ = new ConstUpperBarrierInfo(constUpperBarrierInfoNode);
                }
            }
        }
 public BarrierInfo(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode typeNode = xmlNode.SelectSingleNode("type");
     
     if (typeNode != null)
     {
         if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null) 
         {
             if (typeNode.Attributes["id"] != null) 
             {
                 typeIDRef_ = typeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(typeNode);
                 IDManager.SetID(typeIDRef_, ob);
             }
             else if (typeNode.Attributes["href"] != null)
             {
                 typeIDRef_ = typeNode.Attributes["href"].Value;
             }
             else
             {
                 type_ = new XsdTypeToken(typeNode);
             }
         }
         else
         {
             type_ = new XsdTypeToken(typeNode);
         }
     }
     
 
     XmlNode constDualBarrierInfoNode = xmlNode.SelectSingleNode("constDualBarrierInfo");
     
     if (constDualBarrierInfoNode != null)
     {
         if (constDualBarrierInfoNode.Attributes["href"] != null || constDualBarrierInfoNode.Attributes["id"] != null) 
         {
             if (constDualBarrierInfoNode.Attributes["id"] != null) 
             {
                 constDualBarrierInfoIDRef_ = constDualBarrierInfoNode.Attributes["id"].Value;
                 ConstDualBarrierInfo ob = new ConstDualBarrierInfo(constDualBarrierInfoNode);
                 IDManager.SetID(constDualBarrierInfoIDRef_, ob);
             }
             else if (constDualBarrierInfoNode.Attributes["href"] != null)
             {
                 constDualBarrierInfoIDRef_ = constDualBarrierInfoNode.Attributes["href"].Value;
             }
             else
             {
                 constDualBarrierInfo_ = new ConstDualBarrierInfo(constDualBarrierInfoNode);
             }
         }
         else
         {
             constDualBarrierInfo_ = new ConstDualBarrierInfo(constDualBarrierInfoNode);
         }
     }
     
 
     XmlNode constLowerBarrierInfoNode = xmlNode.SelectSingleNode("constLowerBarrierInfo");
     
     if (constLowerBarrierInfoNode != null)
     {
         if (constLowerBarrierInfoNode.Attributes["href"] != null || constLowerBarrierInfoNode.Attributes["id"] != null) 
         {
             if (constLowerBarrierInfoNode.Attributes["id"] != null) 
             {
                 constLowerBarrierInfoIDRef_ = constLowerBarrierInfoNode.Attributes["id"].Value;
                 ConstLowerBarrierInfo ob = new ConstLowerBarrierInfo(constLowerBarrierInfoNode);
                 IDManager.SetID(constLowerBarrierInfoIDRef_, ob);
             }
             else if (constLowerBarrierInfoNode.Attributes["href"] != null)
             {
                 constLowerBarrierInfoIDRef_ = constLowerBarrierInfoNode.Attributes["href"].Value;
             }
             else
             {
                 constLowerBarrierInfo_ = new ConstLowerBarrierInfo(constLowerBarrierInfoNode);
             }
         }
         else
         {
             constLowerBarrierInfo_ = new ConstLowerBarrierInfo(constLowerBarrierInfoNode);
         }
     }
     
 
     XmlNode constUpperBarrierInfoNode = xmlNode.SelectSingleNode("constUpperBarrierInfo");
     
     if (constUpperBarrierInfoNode != null)
     {
         if (constUpperBarrierInfoNode.Attributes["href"] != null || constUpperBarrierInfoNode.Attributes["id"] != null) 
         {
             if (constUpperBarrierInfoNode.Attributes["id"] != null) 
             {
                 constUpperBarrierInfoIDRef_ = constUpperBarrierInfoNode.Attributes["id"].Value;
                 ConstUpperBarrierInfo ob = new ConstUpperBarrierInfo(constUpperBarrierInfoNode);
                 IDManager.SetID(constUpperBarrierInfoIDRef_, ob);
             }
             else if (constUpperBarrierInfoNode.Attributes["href"] != null)
             {
                 constUpperBarrierInfoIDRef_ = constUpperBarrierInfoNode.Attributes["href"].Value;
             }
             else
             {
                 constUpperBarrierInfo_ = new ConstUpperBarrierInfo(constUpperBarrierInfoNode);
             }
         }
         else
         {
             constUpperBarrierInfo_ = new ConstUpperBarrierInfo(constUpperBarrierInfoNode);
         }
     }
     
 
 }