public Operator1D(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 additionOper1DNode = xmlNode.SelectSingleNode("additionOper1D");
     
     if (additionOper1DNode != null)
     {
         if (additionOper1DNode.Attributes["href"] != null || additionOper1DNode.Attributes["id"] != null) 
         {
             if (additionOper1DNode.Attributes["id"] != null) 
             {
                 additionOper1DIDRef_ = additionOper1DNode.Attributes["id"].Value;
                 AdditionOper1D ob = new AdditionOper1D(additionOper1DNode);
                 IDManager.SetID(additionOper1DIDRef_, ob);
             }
             else if (additionOper1DNode.Attributes["href"] != null)
             {
                 additionOper1DIDRef_ = additionOper1DNode.Attributes["href"].Value;
             }
             else
             {
                 additionOper1D_ = new AdditionOper1D(additionOper1DNode);
             }
         }
         else
         {
             additionOper1D_ = new AdditionOper1D(additionOper1DNode);
         }
     }
     
 
     XmlNode multipleOper1DNode = xmlNode.SelectSingleNode("multipleOper1D");
     
     if (multipleOper1DNode != null)
     {
         if (multipleOper1DNode.Attributes["href"] != null || multipleOper1DNode.Attributes["id"] != null) 
         {
             if (multipleOper1DNode.Attributes["id"] != null) 
             {
                 multipleOper1DIDRef_ = multipleOper1DNode.Attributes["id"].Value;
                 MultipleOper1D ob = new MultipleOper1D(multipleOper1DNode);
                 IDManager.SetID(multipleOper1DIDRef_, ob);
             }
             else if (multipleOper1DNode.Attributes["href"] != null)
             {
                 multipleOper1DIDRef_ = multipleOper1DNode.Attributes["href"].Value;
             }
             else
             {
                 multipleOper1D_ = new MultipleOper1D(multipleOper1DNode);
             }
         }
         else
         {
             multipleOper1D_ = new MultipleOper1D(multipleOper1DNode);
         }
     }
     
 
     XmlNode maximumOper1DNode = xmlNode.SelectSingleNode("maximumOper1D");
     
     if (maximumOper1DNode != null)
     {
         if (maximumOper1DNode.Attributes["href"] != null || maximumOper1DNode.Attributes["id"] != null) 
         {
             if (maximumOper1DNode.Attributes["id"] != null) 
             {
                 maximumOper1DIDRef_ = maximumOper1DNode.Attributes["id"].Value;
                 MaximumOper1D ob = new MaximumOper1D(maximumOper1DNode);
                 IDManager.SetID(maximumOper1DIDRef_, ob);
             }
             else if (maximumOper1DNode.Attributes["href"] != null)
             {
                 maximumOper1DIDRef_ = maximumOper1DNode.Attributes["href"].Value;
             }
             else
             {
                 maximumOper1D_ = new MaximumOper1D(maximumOper1DNode);
             }
         }
         else
         {
             maximumOper1D_ = new MaximumOper1D(maximumOper1DNode);
         }
     }
     
 
 }
예제 #2
0
        public Operator1D(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 additionOper1DNode = xmlNode.SelectSingleNode("additionOper1D");

            if (additionOper1DNode != null)
            {
                if (additionOper1DNode.Attributes["href"] != null || additionOper1DNode.Attributes["id"] != null)
                {
                    if (additionOper1DNode.Attributes["id"] != null)
                    {
                        additionOper1DIDRef_ = additionOper1DNode.Attributes["id"].Value;
                        AdditionOper1D ob = new AdditionOper1D(additionOper1DNode);
                        IDManager.SetID(additionOper1DIDRef_, ob);
                    }
                    else if (additionOper1DNode.Attributes["href"] != null)
                    {
                        additionOper1DIDRef_ = additionOper1DNode.Attributes["href"].Value;
                    }
                    else
                    {
                        additionOper1D_ = new AdditionOper1D(additionOper1DNode);
                    }
                }
                else
                {
                    additionOper1D_ = new AdditionOper1D(additionOper1DNode);
                }
            }


            XmlNode multipleOper1DNode = xmlNode.SelectSingleNode("multipleOper1D");

            if (multipleOper1DNode != null)
            {
                if (multipleOper1DNode.Attributes["href"] != null || multipleOper1DNode.Attributes["id"] != null)
                {
                    if (multipleOper1DNode.Attributes["id"] != null)
                    {
                        multipleOper1DIDRef_ = multipleOper1DNode.Attributes["id"].Value;
                        MultipleOper1D ob = new MultipleOper1D(multipleOper1DNode);
                        IDManager.SetID(multipleOper1DIDRef_, ob);
                    }
                    else if (multipleOper1DNode.Attributes["href"] != null)
                    {
                        multipleOper1DIDRef_ = multipleOper1DNode.Attributes["href"].Value;
                    }
                    else
                    {
                        multipleOper1D_ = new MultipleOper1D(multipleOper1DNode);
                    }
                }
                else
                {
                    multipleOper1D_ = new MultipleOper1D(multipleOper1DNode);
                }
            }


            XmlNode maximumOper1DNode = xmlNode.SelectSingleNode("maximumOper1D");

            if (maximumOper1DNode != null)
            {
                if (maximumOper1DNode.Attributes["href"] != null || maximumOper1DNode.Attributes["id"] != null)
                {
                    if (maximumOper1DNode.Attributes["id"] != null)
                    {
                        maximumOper1DIDRef_ = maximumOper1DNode.Attributes["id"].Value;
                        MaximumOper1D ob = new MaximumOper1D(maximumOper1DNode);
                        IDManager.SetID(maximumOper1DIDRef_, ob);
                    }
                    else if (maximumOper1DNode.Attributes["href"] != null)
                    {
                        maximumOper1DIDRef_ = maximumOper1DNode.Attributes["href"].Value;
                    }
                    else
                    {
                        maximumOper1D_ = new MaximumOper1D(maximumOper1DNode);
                    }
                }
                else
                {
                    maximumOper1D_ = new MaximumOper1D(maximumOper1DNode);
                }
            }
        }