public CalculationPeriodFrequency(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode periodMultiplierNode = xmlNode.SelectSingleNode("periodMultiplier");
     
     if (periodMultiplierNode != null)
     {
         if (periodMultiplierNode.Attributes["href"] != null || periodMultiplierNode.Attributes["id"] != null) 
         {
             if (periodMultiplierNode.Attributes["id"] != null) 
             {
                 periodMultiplierIDRef_ = periodMultiplierNode.Attributes["id"].Value;
                 XsdTypeInteger ob = new XsdTypeInteger(periodMultiplierNode);
                 IDManager.SetID(periodMultiplierIDRef_, ob);
             }
             else if (periodMultiplierNode.Attributes["href"] != null)
             {
                 periodMultiplierIDRef_ = periodMultiplierNode.Attributes["href"].Value;
             }
             else
             {
                 periodMultiplier_ = new XsdTypeInteger(periodMultiplierNode);
             }
         }
         else
         {
             periodMultiplier_ = new XsdTypeInteger(periodMultiplierNode);
         }
     }
     
 
     XmlNode periodNode = xmlNode.SelectSingleNode("period");
     
     if (periodNode != null)
     {
         if (periodNode.Attributes["href"] != null || periodNode.Attributes["id"] != null) 
         {
             if (periodNode.Attributes["id"] != null) 
             {
                 periodIDRef_ = periodNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(periodNode);
                 IDManager.SetID(periodIDRef_, ob);
             }
             else if (periodNode.Attributes["href"] != null)
             {
                 periodIDRef_ = periodNode.Attributes["href"].Value;
             }
             else
             {
                 period_ = new XsdTypeToken(periodNode);
             }
         }
         else
         {
             period_ = new XsdTypeToken(periodNode);
         }
     }
     
 
     XmlNode rollConventionNode = xmlNode.SelectSingleNode("rollConvention");
     
     if (rollConventionNode != null)
     {
         if (rollConventionNode.Attributes["href"] != null || rollConventionNode.Attributes["id"] != null) 
         {
             if (rollConventionNode.Attributes["id"] != null) 
             {
                 rollConventionIDRef_ = rollConventionNode.Attributes["id"].Value;
                 XsdTypeInteger ob = new XsdTypeInteger(rollConventionNode);
                 IDManager.SetID(rollConventionIDRef_, ob);
             }
             else if (rollConventionNode.Attributes["href"] != null)
             {
                 rollConventionIDRef_ = rollConventionNode.Attributes["href"].Value;
             }
             else
             {
                 rollConvention_ = new XsdTypeInteger(rollConventionNode);
             }
         }
         else
         {
             rollConvention_ = new XsdTypeInteger(rollConventionNode);
         }
     }
     
 
 }
Esempio n. 2
0
        public CalculationPeriodFrequency(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode periodMultiplierNode = xmlNode.SelectSingleNode("periodMultiplier");

            if (periodMultiplierNode != null)
            {
                if (periodMultiplierNode.Attributes["href"] != null || periodMultiplierNode.Attributes["id"] != null)
                {
                    if (periodMultiplierNode.Attributes["id"] != null)
                    {
                        periodMultiplierIDRef_ = periodMultiplierNode.Attributes["id"].Value;
                        XsdTypeInteger ob = new XsdTypeInteger(periodMultiplierNode);
                        IDManager.SetID(periodMultiplierIDRef_, ob);
                    }
                    else if (periodMultiplierNode.Attributes["href"] != null)
                    {
                        periodMultiplierIDRef_ = periodMultiplierNode.Attributes["href"].Value;
                    }
                    else
                    {
                        periodMultiplier_ = new XsdTypeInteger(periodMultiplierNode);
                    }
                }
                else
                {
                    periodMultiplier_ = new XsdTypeInteger(periodMultiplierNode);
                }
            }


            XmlNode periodNode = xmlNode.SelectSingleNode("period");

            if (periodNode != null)
            {
                if (periodNode.Attributes["href"] != null || periodNode.Attributes["id"] != null)
                {
                    if (periodNode.Attributes["id"] != null)
                    {
                        periodIDRef_ = periodNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(periodNode);
                        IDManager.SetID(periodIDRef_, ob);
                    }
                    else if (periodNode.Attributes["href"] != null)
                    {
                        periodIDRef_ = periodNode.Attributes["href"].Value;
                    }
                    else
                    {
                        period_ = new XsdTypeToken(periodNode);
                    }
                }
                else
                {
                    period_ = new XsdTypeToken(periodNode);
                }
            }


            XmlNode rollConventionNode = xmlNode.SelectSingleNode("rollConvention");

            if (rollConventionNode != null)
            {
                if (rollConventionNode.Attributes["href"] != null || rollConventionNode.Attributes["id"] != null)
                {
                    if (rollConventionNode.Attributes["id"] != null)
                    {
                        rollConventionIDRef_ = rollConventionNode.Attributes["id"].Value;
                        XsdTypeInteger ob = new XsdTypeInteger(rollConventionNode);
                        IDManager.SetID(rollConventionIDRef_, ob);
                    }
                    else if (rollConventionNode.Attributes["href"] != null)
                    {
                        rollConventionIDRef_ = rollConventionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        rollConvention_ = new XsdTypeInteger(rollConventionNode);
                    }
                }
                else
                {
                    rollConvention_ = new XsdTypeInteger(rollConventionNode);
                }
            }
        }
 public RateData(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode periodMultiplierNode = xmlNode.SelectSingleNode("periodMultiplier");
     
     if (periodMultiplierNode != null)
     {
         if (periodMultiplierNode.Attributes["href"] != null || periodMultiplierNode.Attributes["id"] != null) 
         {
             if (periodMultiplierNode.Attributes["id"] != null) 
             {
                 periodMultiplierIDRef_ = periodMultiplierNode.Attributes["id"].Value;
                 XsdTypeInteger ob = new XsdTypeInteger(periodMultiplierNode);
                 IDManager.SetID(periodMultiplierIDRef_, ob);
             }
             else if (periodMultiplierNode.Attributes["href"] != null)
             {
                 periodMultiplierIDRef_ = periodMultiplierNode.Attributes["href"].Value;
             }
             else
             {
                 periodMultiplier_ = new XsdTypeInteger(periodMultiplierNode);
             }
         }
         else
         {
             periodMultiplier_ = new XsdTypeInteger(periodMultiplierNode);
         }
     }
     
 
     XmlNode periodNode = xmlNode.SelectSingleNode("period");
     
     if (periodNode != null)
     {
         if (periodNode.Attributes["href"] != null || periodNode.Attributes["id"] != null) 
         {
             if (periodNode.Attributes["id"] != null) 
             {
                 periodIDRef_ = periodNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(periodNode);
                 IDManager.SetID(periodIDRef_, ob);
             }
             else if (periodNode.Attributes["href"] != null)
             {
                 periodIDRef_ = periodNode.Attributes["href"].Value;
             }
             else
             {
                 period_ = new XsdTypeToken(periodNode);
             }
         }
         else
         {
             period_ = new XsdTypeToken(periodNode);
         }
     }
     
 
     XmlNode dataNode = xmlNode.SelectSingleNode("data");
     
     if (dataNode != null)
     {
         if (dataNode.Attributes["href"] != null || dataNode.Attributes["id"] != null) 
         {
             if (dataNode.Attributes["id"] != null) 
             {
                 dataIDRef_ = dataNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(dataNode);
                 IDManager.SetID(dataIDRef_, ob);
             }
             else if (dataNode.Attributes["href"] != null)
             {
                 dataIDRef_ = dataNode.Attributes["href"].Value;
             }
             else
             {
                 data_ = new XsdTypeDouble(dataNode);
             }
         }
         else
         {
             data_ = new XsdTypeDouble(dataNode);
         }
     }
     
 
 }
        public RateData(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode periodMultiplierNode = xmlNode.SelectSingleNode("periodMultiplier");

            if (periodMultiplierNode != null)
            {
                if (periodMultiplierNode.Attributes["href"] != null || periodMultiplierNode.Attributes["id"] != null)
                {
                    if (periodMultiplierNode.Attributes["id"] != null)
                    {
                        periodMultiplierIDRef_ = periodMultiplierNode.Attributes["id"].Value;
                        XsdTypeInteger ob = new XsdTypeInteger(periodMultiplierNode);
                        IDManager.SetID(periodMultiplierIDRef_, ob);
                    }
                    else if (periodMultiplierNode.Attributes["href"] != null)
                    {
                        periodMultiplierIDRef_ = periodMultiplierNode.Attributes["href"].Value;
                    }
                    else
                    {
                        periodMultiplier_ = new XsdTypeInteger(periodMultiplierNode);
                    }
                }
                else
                {
                    periodMultiplier_ = new XsdTypeInteger(periodMultiplierNode);
                }
            }


            XmlNode periodNode = xmlNode.SelectSingleNode("period");

            if (periodNode != null)
            {
                if (periodNode.Attributes["href"] != null || periodNode.Attributes["id"] != null)
                {
                    if (periodNode.Attributes["id"] != null)
                    {
                        periodIDRef_ = periodNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(periodNode);
                        IDManager.SetID(periodIDRef_, ob);
                    }
                    else if (periodNode.Attributes["href"] != null)
                    {
                        periodIDRef_ = periodNode.Attributes["href"].Value;
                    }
                    else
                    {
                        period_ = new XsdTypeToken(periodNode);
                    }
                }
                else
                {
                    period_ = new XsdTypeToken(periodNode);
                }
            }


            XmlNode dataNode = xmlNode.SelectSingleNode("data");

            if (dataNode != null)
            {
                if (dataNode.Attributes["href"] != null || dataNode.Attributes["id"] != null)
                {
                    if (dataNode.Attributes["id"] != null)
                    {
                        dataIDRef_ = dataNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(dataNode);
                        IDManager.SetID(dataIDRef_, ob);
                    }
                    else if (dataNode.Attributes["href"] != null)
                    {
                        dataIDRef_ = dataNode.Attributes["href"].Value;
                    }
                    else
                    {
                        data_ = new XsdTypeDouble(dataNode);
                    }
                }
                else
                {
                    data_ = new XsdTypeDouble(dataNode);
                }
            }
        }