Beispiel #1
0
        public JointSimpleCalculation(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 andSimpleCalNode = xmlNode.SelectSingleNode("andSimpleCal");

            if (andSimpleCalNode != null)
            {
                if (andSimpleCalNode.Attributes["href"] != null || andSimpleCalNode.Attributes["id"] != null)
                {
                    if (andSimpleCalNode.Attributes["id"] != null)
                    {
                        andSimpleCalIDRef_ = andSimpleCalNode.Attributes["id"].Value;
                        AndSimpleCal ob = new AndSimpleCal(andSimpleCalNode);
                        IDManager.SetID(andSimpleCalIDRef_, ob);
                    }
                    else if (andSimpleCalNode.Attributes["href"] != null)
                    {
                        andSimpleCalIDRef_ = andSimpleCalNode.Attributes["href"].Value;
                    }
                    else
                    {
                        andSimpleCal_ = new AndSimpleCal(andSimpleCalNode);
                    }
                }
                else
                {
                    andSimpleCal_ = new AndSimpleCal(andSimpleCalNode);
                }
            }


            XmlNode singeSimpleCalNode = xmlNode.SelectSingleNode("singeSimpleCal");

            if (singeSimpleCalNode != null)
            {
                if (singeSimpleCalNode.Attributes["href"] != null || singeSimpleCalNode.Attributes["id"] != null)
                {
                    if (singeSimpleCalNode.Attributes["id"] != null)
                    {
                        singeSimpleCalIDRef_ = singeSimpleCalNode.Attributes["id"].Value;
                        SingeSimpleCal ob = new SingeSimpleCal(singeSimpleCalNode);
                        IDManager.SetID(singeSimpleCalIDRef_, ob);
                    }
                    else if (singeSimpleCalNode.Attributes["href"] != null)
                    {
                        singeSimpleCalIDRef_ = singeSimpleCalNode.Attributes["href"].Value;
                    }
                    else
                    {
                        singeSimpleCal_ = new SingeSimpleCal(singeSimpleCalNode);
                    }
                }
                else
                {
                    singeSimpleCal_ = new SingeSimpleCal(singeSimpleCalNode);
                }
            }
        }
 public JointSimpleCalculation(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 andSimpleCalNode = xmlNode.SelectSingleNode("andSimpleCal");
     
     if (andSimpleCalNode != null)
     {
         if (andSimpleCalNode.Attributes["href"] != null || andSimpleCalNode.Attributes["id"] != null) 
         {
             if (andSimpleCalNode.Attributes["id"] != null) 
             {
                 andSimpleCalIDRef_ = andSimpleCalNode.Attributes["id"].Value;
                 AndSimpleCal ob = new AndSimpleCal(andSimpleCalNode);
                 IDManager.SetID(andSimpleCalIDRef_, ob);
             }
             else if (andSimpleCalNode.Attributes["href"] != null)
             {
                 andSimpleCalIDRef_ = andSimpleCalNode.Attributes["href"].Value;
             }
             else
             {
                 andSimpleCal_ = new AndSimpleCal(andSimpleCalNode);
             }
         }
         else
         {
             andSimpleCal_ = new AndSimpleCal(andSimpleCalNode);
         }
     }
     
 
     XmlNode singeSimpleCalNode = xmlNode.SelectSingleNode("singeSimpleCal");
     
     if (singeSimpleCalNode != null)
     {
         if (singeSimpleCalNode.Attributes["href"] != null || singeSimpleCalNode.Attributes["id"] != null) 
         {
             if (singeSimpleCalNode.Attributes["id"] != null) 
             {
                 singeSimpleCalIDRef_ = singeSimpleCalNode.Attributes["id"].Value;
                 SingeSimpleCal ob = new SingeSimpleCal(singeSimpleCalNode);
                 IDManager.SetID(singeSimpleCalIDRef_, ob);
             }
             else if (singeSimpleCalNode.Attributes["href"] != null)
             {
                 singeSimpleCalIDRef_ = singeSimpleCalNode.Attributes["href"].Value;
             }
             else
             {
                 singeSimpleCal_ = new SingeSimpleCal(singeSimpleCalNode);
             }
         }
         else
         {
             singeSimpleCal_ = new SingeSimpleCal(singeSimpleCalNode);
         }
     }
     
 
 }