public JointEventCalculation(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 andEventCalNode = xmlNode.SelectSingleNode("andEventCal");
     
     if (andEventCalNode != null)
     {
         if (andEventCalNode.Attributes["href"] != null || andEventCalNode.Attributes["id"] != null) 
         {
             if (andEventCalNode.Attributes["id"] != null) 
             {
                 andEventCalIDRef_ = andEventCalNode.Attributes["id"].Value;
                 AndEventCal ob = new AndEventCal(andEventCalNode);
                 IDManager.SetID(andEventCalIDRef_, ob);
             }
             else if (andEventCalNode.Attributes["href"] != null)
             {
                 andEventCalIDRef_ = andEventCalNode.Attributes["href"].Value;
             }
             else
             {
                 andEventCal_ = new AndEventCal(andEventCalNode);
             }
         }
         else
         {
             andEventCal_ = new AndEventCal(andEventCalNode);
         }
     }
     
 
     XmlNode orEventCalNode = xmlNode.SelectSingleNode("orEventCal");
     
     if (orEventCalNode != null)
     {
         if (orEventCalNode.Attributes["href"] != null || orEventCalNode.Attributes["id"] != null) 
         {
             if (orEventCalNode.Attributes["id"] != null) 
             {
                 orEventCalIDRef_ = orEventCalNode.Attributes["id"].Value;
                 OrEventCal ob = new OrEventCal(orEventCalNode);
                 IDManager.SetID(orEventCalIDRef_, ob);
             }
             else if (orEventCalNode.Attributes["href"] != null)
             {
                 orEventCalIDRef_ = orEventCalNode.Attributes["href"].Value;
             }
             else
             {
                 orEventCal_ = new OrEventCal(orEventCalNode);
             }
         }
         else
         {
             orEventCal_ = new OrEventCal(orEventCalNode);
         }
     }
     
 
     XmlNode atLeastEventCalNode = xmlNode.SelectSingleNode("atLeastEventCal");
     
     if (atLeastEventCalNode != null)
     {
         if (atLeastEventCalNode.Attributes["href"] != null || atLeastEventCalNode.Attributes["id"] != null) 
         {
             if (atLeastEventCalNode.Attributes["id"] != null) 
             {
                 atLeastEventCalIDRef_ = atLeastEventCalNode.Attributes["id"].Value;
                 AtLeastEventCal ob = new AtLeastEventCal(atLeastEventCalNode);
                 IDManager.SetID(atLeastEventCalIDRef_, ob);
             }
             else if (atLeastEventCalNode.Attributes["href"] != null)
             {
                 atLeastEventCalIDRef_ = atLeastEventCalNode.Attributes["href"].Value;
             }
             else
             {
                 atLeastEventCal_ = new AtLeastEventCal(atLeastEventCalNode);
             }
         }
         else
         {
             atLeastEventCal_ = new AtLeastEventCal(atLeastEventCalNode);
         }
     }
     
 
     XmlNode atMostEventCalNode = xmlNode.SelectSingleNode("atMostEventCal");
     
     if (atMostEventCalNode != null)
     {
         if (atMostEventCalNode.Attributes["href"] != null || atMostEventCalNode.Attributes["id"] != null) 
         {
             if (atMostEventCalNode.Attributes["id"] != null) 
             {
                 atMostEventCalIDRef_ = atMostEventCalNode.Attributes["id"].Value;
                 AtMostEventCal ob = new AtMostEventCal(atMostEventCalNode);
                 IDManager.SetID(atMostEventCalIDRef_, ob);
             }
             else if (atMostEventCalNode.Attributes["href"] != null)
             {
                 atMostEventCalIDRef_ = atMostEventCalNode.Attributes["href"].Value;
             }
             else
             {
                 atMostEventCal_ = new AtMostEventCal(atMostEventCalNode);
             }
         }
         else
         {
             atMostEventCal_ = new AtMostEventCal(atMostEventCalNode);
         }
     }
     
 
     XmlNode countEventCalNode = xmlNode.SelectSingleNode("countEventCal");
     
     if (countEventCalNode != null)
     {
         if (countEventCalNode.Attributes["href"] != null || countEventCalNode.Attributes["id"] != null) 
         {
             if (countEventCalNode.Attributes["id"] != null) 
             {
                 countEventCalIDRef_ = countEventCalNode.Attributes["id"].Value;
                 CountEventCal ob = new CountEventCal(countEventCalNode);
                 IDManager.SetID(countEventCalIDRef_, ob);
             }
             else if (countEventCalNode.Attributes["href"] != null)
             {
                 countEventCalIDRef_ = countEventCalNode.Attributes["href"].Value;
             }
             else
             {
                 countEventCal_ = new CountEventCal(countEventCalNode);
             }
         }
         else
         {
             countEventCal_ = new CountEventCal(countEventCalNode);
         }
     }
     
 
 }
Пример #2
0
        public JointEventCalculation(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 andEventCalNode = xmlNode.SelectSingleNode("andEventCal");

            if (andEventCalNode != null)
            {
                if (andEventCalNode.Attributes["href"] != null || andEventCalNode.Attributes["id"] != null)
                {
                    if (andEventCalNode.Attributes["id"] != null)
                    {
                        andEventCalIDRef_ = andEventCalNode.Attributes["id"].Value;
                        AndEventCal ob = new AndEventCal(andEventCalNode);
                        IDManager.SetID(andEventCalIDRef_, ob);
                    }
                    else if (andEventCalNode.Attributes["href"] != null)
                    {
                        andEventCalIDRef_ = andEventCalNode.Attributes["href"].Value;
                    }
                    else
                    {
                        andEventCal_ = new AndEventCal(andEventCalNode);
                    }
                }
                else
                {
                    andEventCal_ = new AndEventCal(andEventCalNode);
                }
            }


            XmlNode orEventCalNode = xmlNode.SelectSingleNode("orEventCal");

            if (orEventCalNode != null)
            {
                if (orEventCalNode.Attributes["href"] != null || orEventCalNode.Attributes["id"] != null)
                {
                    if (orEventCalNode.Attributes["id"] != null)
                    {
                        orEventCalIDRef_ = orEventCalNode.Attributes["id"].Value;
                        OrEventCal ob = new OrEventCal(orEventCalNode);
                        IDManager.SetID(orEventCalIDRef_, ob);
                    }
                    else if (orEventCalNode.Attributes["href"] != null)
                    {
                        orEventCalIDRef_ = orEventCalNode.Attributes["href"].Value;
                    }
                    else
                    {
                        orEventCal_ = new OrEventCal(orEventCalNode);
                    }
                }
                else
                {
                    orEventCal_ = new OrEventCal(orEventCalNode);
                }
            }


            XmlNode atLeastEventCalNode = xmlNode.SelectSingleNode("atLeastEventCal");

            if (atLeastEventCalNode != null)
            {
                if (atLeastEventCalNode.Attributes["href"] != null || atLeastEventCalNode.Attributes["id"] != null)
                {
                    if (atLeastEventCalNode.Attributes["id"] != null)
                    {
                        atLeastEventCalIDRef_ = atLeastEventCalNode.Attributes["id"].Value;
                        AtLeastEventCal ob = new AtLeastEventCal(atLeastEventCalNode);
                        IDManager.SetID(atLeastEventCalIDRef_, ob);
                    }
                    else if (atLeastEventCalNode.Attributes["href"] != null)
                    {
                        atLeastEventCalIDRef_ = atLeastEventCalNode.Attributes["href"].Value;
                    }
                    else
                    {
                        atLeastEventCal_ = new AtLeastEventCal(atLeastEventCalNode);
                    }
                }
                else
                {
                    atLeastEventCal_ = new AtLeastEventCal(atLeastEventCalNode);
                }
            }


            XmlNode atMostEventCalNode = xmlNode.SelectSingleNode("atMostEventCal");

            if (atMostEventCalNode != null)
            {
                if (atMostEventCalNode.Attributes["href"] != null || atMostEventCalNode.Attributes["id"] != null)
                {
                    if (atMostEventCalNode.Attributes["id"] != null)
                    {
                        atMostEventCalIDRef_ = atMostEventCalNode.Attributes["id"].Value;
                        AtMostEventCal ob = new AtMostEventCal(atMostEventCalNode);
                        IDManager.SetID(atMostEventCalIDRef_, ob);
                    }
                    else if (atMostEventCalNode.Attributes["href"] != null)
                    {
                        atMostEventCalIDRef_ = atMostEventCalNode.Attributes["href"].Value;
                    }
                    else
                    {
                        atMostEventCal_ = new AtMostEventCal(atMostEventCalNode);
                    }
                }
                else
                {
                    atMostEventCal_ = new AtMostEventCal(atMostEventCalNode);
                }
            }


            XmlNode countEventCalNode = xmlNode.SelectSingleNode("countEventCal");

            if (countEventCalNode != null)
            {
                if (countEventCalNode.Attributes["href"] != null || countEventCalNode.Attributes["id"] != null)
                {
                    if (countEventCalNode.Attributes["id"] != null)
                    {
                        countEventCalIDRef_ = countEventCalNode.Attributes["id"].Value;
                        CountEventCal ob = new CountEventCal(countEventCalNode);
                        IDManager.SetID(countEventCalIDRef_, ob);
                    }
                    else if (countEventCalNode.Attributes["href"] != null)
                    {
                        countEventCalIDRef_ = countEventCalNode.Attributes["href"].Value;
                    }
                    else
                    {
                        countEventCal_ = new CountEventCal(countEventCalNode);
                    }
                }
                else
                {
                    countEventCal_ = new CountEventCal(countEventCalNode);
                }
            }
        }