public VariableEventInfo(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 nullVariableEventInfoNode = xmlNode.SelectSingleNode("nullVariableEventInfo");
     
     if (nullVariableEventInfoNode != null)
     {
         if (nullVariableEventInfoNode.Attributes["href"] != null || nullVariableEventInfoNode.Attributes["id"] != null) 
         {
             if (nullVariableEventInfoNode.Attributes["id"] != null) 
             {
                 nullVariableEventInfoIDRef_ = nullVariableEventInfoNode.Attributes["id"].Value;
                 NullVariableEventInfo ob = new NullVariableEventInfo(nullVariableEventInfoNode);
                 IDManager.SetID(nullVariableEventInfoIDRef_, ob);
             }
             else if (nullVariableEventInfoNode.Attributes["href"] != null)
             {
                 nullVariableEventInfoIDRef_ = nullVariableEventInfoNode.Attributes["href"].Value;
             }
             else
             {
                 nullVariableEventInfo_ = new NullVariableEventInfo(nullVariableEventInfoNode);
             }
         }
         else
         {
             nullVariableEventInfo_ = new NullVariableEventInfo(nullVariableEventInfoNode);
         }
     }
     
 
     XmlNode overWriteVariableEventInfoNode = xmlNode.SelectSingleNode("overWriteVariableEventInfo");
     
     if (overWriteVariableEventInfoNode != null)
     {
         if (overWriteVariableEventInfoNode.Attributes["href"] != null || overWriteVariableEventInfoNode.Attributes["id"] != null) 
         {
             if (overWriteVariableEventInfoNode.Attributes["id"] != null) 
             {
                 overWriteVariableEventInfoIDRef_ = overWriteVariableEventInfoNode.Attributes["id"].Value;
                 OverWriteVariableEventInfo ob = new OverWriteVariableEventInfo(overWriteVariableEventInfoNode);
                 IDManager.SetID(overWriteVariableEventInfoIDRef_, ob);
             }
             else if (overWriteVariableEventInfoNode.Attributes["href"] != null)
             {
                 overWriteVariableEventInfoIDRef_ = overWriteVariableEventInfoNode.Attributes["href"].Value;
             }
             else
             {
                 overWriteVariableEventInfo_ = new OverWriteVariableEventInfo(overWriteVariableEventInfoNode);
             }
         }
         else
         {
             overWriteVariableEventInfo_ = new OverWriteVariableEventInfo(overWriteVariableEventInfoNode);
         }
     }
     
 
 }
Exemple #2
0
        public VariableEventInfo(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 nullVariableEventInfoNode = xmlNode.SelectSingleNode("nullVariableEventInfo");

            if (nullVariableEventInfoNode != null)
            {
                if (nullVariableEventInfoNode.Attributes["href"] != null || nullVariableEventInfoNode.Attributes["id"] != null)
                {
                    if (nullVariableEventInfoNode.Attributes["id"] != null)
                    {
                        nullVariableEventInfoIDRef_ = nullVariableEventInfoNode.Attributes["id"].Value;
                        NullVariableEventInfo ob = new NullVariableEventInfo(nullVariableEventInfoNode);
                        IDManager.SetID(nullVariableEventInfoIDRef_, ob);
                    }
                    else if (nullVariableEventInfoNode.Attributes["href"] != null)
                    {
                        nullVariableEventInfoIDRef_ = nullVariableEventInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        nullVariableEventInfo_ = new NullVariableEventInfo(nullVariableEventInfoNode);
                    }
                }
                else
                {
                    nullVariableEventInfo_ = new NullVariableEventInfo(nullVariableEventInfoNode);
                }
            }


            XmlNode overWriteVariableEventInfoNode = xmlNode.SelectSingleNode("overWriteVariableEventInfo");

            if (overWriteVariableEventInfoNode != null)
            {
                if (overWriteVariableEventInfoNode.Attributes["href"] != null || overWriteVariableEventInfoNode.Attributes["id"] != null)
                {
                    if (overWriteVariableEventInfoNode.Attributes["id"] != null)
                    {
                        overWriteVariableEventInfoIDRef_ = overWriteVariableEventInfoNode.Attributes["id"].Value;
                        OverWriteVariableEventInfo ob = new OverWriteVariableEventInfo(overWriteVariableEventInfoNode);
                        IDManager.SetID(overWriteVariableEventInfoIDRef_, ob);
                    }
                    else if (overWriteVariableEventInfoNode.Attributes["href"] != null)
                    {
                        overWriteVariableEventInfoIDRef_ = overWriteVariableEventInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        overWriteVariableEventInfo_ = new OverWriteVariableEventInfo(overWriteVariableEventInfoNode);
                    }
                }
                else
                {
                    overWriteVariableEventInfo_ = new OverWriteVariableEventInfo(overWriteVariableEventInfoNode);
                }
            }
        }