public PayoffInfoAnalytic(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 standardPayoff_ANode = xmlNode.SelectSingleNode("standardPayoff_A");
     
     if (standardPayoff_ANode != null)
     {
         if (standardPayoff_ANode.Attributes["href"] != null || standardPayoff_ANode.Attributes["id"] != null) 
         {
             if (standardPayoff_ANode.Attributes["id"] != null) 
             {
                 standardPayoff_AIDRef_ = standardPayoff_ANode.Attributes["id"].Value;
                 StandardPayoff_A ob = new StandardPayoff_A(standardPayoff_ANode);
                 IDManager.SetID(standardPayoff_AIDRef_, ob);
             }
             else if (standardPayoff_ANode.Attributes["href"] != null)
             {
                 standardPayoff_AIDRef_ = standardPayoff_ANode.Attributes["href"].Value;
             }
             else
             {
                 standardPayoff_A_ = new StandardPayoff_A(standardPayoff_ANode);
             }
         }
         else
         {
             standardPayoff_A_ = new StandardPayoff_A(standardPayoff_ANode);
         }
     }
     
 
 }
예제 #2
0
        public PayoffInfoAnalytic(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 standardPayoff_ANode = xmlNode.SelectSingleNode("standardPayoff_A");

            if (standardPayoff_ANode != null)
            {
                if (standardPayoff_ANode.Attributes["href"] != null || standardPayoff_ANode.Attributes["id"] != null)
                {
                    if (standardPayoff_ANode.Attributes["id"] != null)
                    {
                        standardPayoff_AIDRef_ = standardPayoff_ANode.Attributes["id"].Value;
                        StandardPayoff_A ob = new StandardPayoff_A(standardPayoff_ANode);
                        IDManager.SetID(standardPayoff_AIDRef_, ob);
                    }
                    else if (standardPayoff_ANode.Attributes["href"] != null)
                    {
                        standardPayoff_AIDRef_ = standardPayoff_ANode.Attributes["href"].Value;
                    }
                    else
                    {
                        standardPayoff_A_ = new StandardPayoff_A(standardPayoff_ANode);
                    }
                }
                else
                {
                    standardPayoff_A_ = new StandardPayoff_A(standardPayoff_ANode);
                }
            }
        }