public PricingResult(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 commonResultNode = xmlNode.SelectSingleNode("commonResult");
     
     if (commonResultNode != null)
     {
         if (commonResultNode.Attributes["href"] != null || commonResultNode.Attributes["id"] != null) 
         {
             if (commonResultNode.Attributes["id"] != null) 
             {
                 commonResultIDRef_ = commonResultNode.Attributes["id"].Value;
                 CommonResult ob = new CommonResult(commonResultNode);
                 IDManager.SetID(commonResultIDRef_, ob);
             }
             else if (commonResultNode.Attributes["href"] != null)
             {
                 commonResultIDRef_ = commonResultNode.Attributes["href"].Value;
             }
             else
             {
                 commonResult_ = new CommonResult(commonResultNode);
             }
         }
         else
         {
             commonResult_ = new CommonResult(commonResultNode);
         }
     }
     
 
     XmlNode stepDownKIResultNode = xmlNode.SelectSingleNode("stepDownKIResult");
     
     if (stepDownKIResultNode != null)
     {
         if (stepDownKIResultNode.Attributes["href"] != null || stepDownKIResultNode.Attributes["id"] != null) 
         {
             if (stepDownKIResultNode.Attributes["id"] != null) 
             {
                 stepDownKIResultIDRef_ = stepDownKIResultNode.Attributes["id"].Value;
                 StepDownKIResult ob = new StepDownKIResult(stepDownKIResultNode);
                 IDManager.SetID(stepDownKIResultIDRef_, ob);
             }
             else if (stepDownKIResultNode.Attributes["href"] != null)
             {
                 stepDownKIResultIDRef_ = stepDownKIResultNode.Attributes["href"].Value;
             }
             else
             {
                 stepDownKIResult_ = new StepDownKIResult(stepDownKIResultNode);
             }
         }
         else
         {
             stepDownKIResult_ = new StepDownKIResult(stepDownKIResultNode);
         }
     }
     
 
     XmlNode nullResultNode = xmlNode.SelectSingleNode("nullResult");
     
     if (nullResultNode != null)
     {
         if (nullResultNode.Attributes["href"] != null || nullResultNode.Attributes["id"] != null) 
         {
             if (nullResultNode.Attributes["id"] != null) 
             {
                 nullResultIDRef_ = nullResultNode.Attributes["id"].Value;
                 NullResult ob = new NullResult(nullResultNode);
                 IDManager.SetID(nullResultIDRef_, ob);
             }
             else if (nullResultNode.Attributes["href"] != null)
             {
                 nullResultIDRef_ = nullResultNode.Attributes["href"].Value;
             }
             else
             {
                 nullResult_ = new NullResult(nullResultNode);
             }
         }
         else
         {
             nullResult_ = new NullResult(nullResultNode);
         }
     }
     
 
 }
예제 #2
0
        public PricingResult(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 commonResultNode = xmlNode.SelectSingleNode("commonResult");

            if (commonResultNode != null)
            {
                if (commonResultNode.Attributes["href"] != null || commonResultNode.Attributes["id"] != null)
                {
                    if (commonResultNode.Attributes["id"] != null)
                    {
                        commonResultIDRef_ = commonResultNode.Attributes["id"].Value;
                        CommonResult ob = new CommonResult(commonResultNode);
                        IDManager.SetID(commonResultIDRef_, ob);
                    }
                    else if (commonResultNode.Attributes["href"] != null)
                    {
                        commonResultIDRef_ = commonResultNode.Attributes["href"].Value;
                    }
                    else
                    {
                        commonResult_ = new CommonResult(commonResultNode);
                    }
                }
                else
                {
                    commonResult_ = new CommonResult(commonResultNode);
                }
            }


            XmlNode stepDownKIResultNode = xmlNode.SelectSingleNode("stepDownKIResult");

            if (stepDownKIResultNode != null)
            {
                if (stepDownKIResultNode.Attributes["href"] != null || stepDownKIResultNode.Attributes["id"] != null)
                {
                    if (stepDownKIResultNode.Attributes["id"] != null)
                    {
                        stepDownKIResultIDRef_ = stepDownKIResultNode.Attributes["id"].Value;
                        StepDownKIResult ob = new StepDownKIResult(stepDownKIResultNode);
                        IDManager.SetID(stepDownKIResultIDRef_, ob);
                    }
                    else if (stepDownKIResultNode.Attributes["href"] != null)
                    {
                        stepDownKIResultIDRef_ = stepDownKIResultNode.Attributes["href"].Value;
                    }
                    else
                    {
                        stepDownKIResult_ = new StepDownKIResult(stepDownKIResultNode);
                    }
                }
                else
                {
                    stepDownKIResult_ = new StepDownKIResult(stepDownKIResultNode);
                }
            }


            XmlNode nullResultNode = xmlNode.SelectSingleNode("nullResult");

            if (nullResultNode != null)
            {
                if (nullResultNode.Attributes["href"] != null || nullResultNode.Attributes["id"] != null)
                {
                    if (nullResultNode.Attributes["id"] != null)
                    {
                        nullResultIDRef_ = nullResultNode.Attributes["id"].Value;
                        NullResult ob = new NullResult(nullResultNode);
                        IDManager.SetID(nullResultIDRef_, ob);
                    }
                    else if (nullResultNode.Attributes["href"] != null)
                    {
                        nullResultIDRef_ = nullResultNode.Attributes["href"].Value;
                    }
                    else
                    {
                        nullResult_ = new NullResult(nullResultNode);
                    }
                }
                else
                {
                    nullResult_ = new NullResult(nullResultNode);
                }
            }
        }