public CalculationAgent(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode calculationAgentPartyNode = xmlNode.SelectSingleNode("calculationAgentParty");
     
     if (calculationAgentPartyNode != null)
     {
         if (calculationAgentPartyNode.Attributes["href"] != null || calculationAgentPartyNode.Attributes["id"] != null) 
         {
             if (calculationAgentPartyNode.Attributes["id"] != null) 
             {
                 calculationAgentPartyIDRef_ = calculationAgentPartyNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(calculationAgentPartyNode);
                 IDManager.SetID(calculationAgentPartyIDRef_, ob);
             }
             else if (calculationAgentPartyNode.Attributes["href"] != null)
             {
                 calculationAgentPartyIDRef_ = calculationAgentPartyNode.Attributes["href"].Value;
             }
             else
             {
                 calculationAgentParty_ = new XsdTypeToken(calculationAgentPartyNode);
             }
         }
         else
         {
             calculationAgentParty_ = new XsdTypeToken(calculationAgentPartyNode);
         }
     }
     
 
 }
 public CalculationAmount(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode currencyNode = xmlNode.SelectSingleNode("currency");
     
     if (currencyNode != null)
     {
         if (currencyNode.Attributes["href"] != null || currencyNode.Attributes["id"] != null) 
         {
             if (currencyNode.Attributes["id"] != null) 
             {
                 currencyIDRef_ = currencyNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(currencyNode);
                 IDManager.SetID(currencyIDRef_, ob);
             }
             else if (currencyNode.Attributes["href"] != null)
             {
                 currencyIDRef_ = currencyNode.Attributes["href"].Value;
             }
             else
             {
                 currency_ = new XsdTypeToken(currencyNode);
             }
         }
         else
         {
             currency_ = new XsdTypeToken(currencyNode);
         }
     }
     
 
     XmlNode amountNode = xmlNode.SelectSingleNode("amount");
     
     if (amountNode != null)
     {
         if (amountNode.Attributes["href"] != null || amountNode.Attributes["id"] != null) 
         {
             if (amountNode.Attributes["id"] != null) 
             {
                 amountIDRef_ = amountNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(amountNode);
                 IDManager.SetID(amountIDRef_, ob);
             }
             else if (amountNode.Attributes["href"] != null)
             {
                 amountIDRef_ = amountNode.Attributes["href"].Value;
             }
             else
             {
                 amount_ = new XsdTypeDouble(amountNode);
             }
         }
         else
         {
             amount_ = new XsdTypeDouble(amountNode);
         }
     }
     
 
 }
 public CDSSpreadTermstructure(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode dateGenerationNode = xmlNode.SelectSingleNode("dateGeneration");
     
     if (dateGenerationNode != null)
     {
         if (dateGenerationNode.Attributes["href"] != null || dateGenerationNode.Attributes["id"] != null) 
         {
             if (dateGenerationNode.Attributes["id"] != null) 
             {
                 dateGenerationIDRef_ = dateGenerationNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(dateGenerationNode);
                 IDManager.SetID(dateGenerationIDRef_, ob);
             }
             else if (dateGenerationNode.Attributes["href"] != null)
             {
                 dateGenerationIDRef_ = dateGenerationNode.Attributes["href"].Value;
             }
             else
             {
                 dateGeneration_ = new XsdTypeToken(dateGenerationNode);
             }
         }
         else
         {
             dateGeneration_ = new XsdTypeToken(dateGenerationNode);
         }
     }
     
 
     XmlNode recoveryRateNode = xmlNode.SelectSingleNode("recoveryRate");
     
     if (recoveryRateNode != null)
     {
         if (recoveryRateNode.Attributes["href"] != null || recoveryRateNode.Attributes["id"] != null) 
         {
             if (recoveryRateNode.Attributes["id"] != null) 
             {
                 recoveryRateIDRef_ = recoveryRateNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(recoveryRateNode);
                 IDManager.SetID(recoveryRateIDRef_, ob);
             }
             else if (recoveryRateNode.Attributes["href"] != null)
             {
                 recoveryRateIDRef_ = recoveryRateNode.Attributes["href"].Value;
             }
             else
             {
                 recoveryRate_ = new XsdTypeToken(recoveryRateNode);
             }
         }
         else
         {
             recoveryRate_ = new XsdTypeToken(recoveryRateNode);
         }
     }
     
 
 }
 public ReferenceEntity(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode entityNameNode = xmlNode.SelectSingleNode("entityName");
     
     if (entityNameNode != null)
     {
         if (entityNameNode.Attributes["href"] != null || entityNameNode.Attributes["id"] != null) 
         {
             if (entityNameNode.Attributes["id"] != null) 
             {
                 entityNameIDRef_ = entityNameNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(entityNameNode);
                 IDManager.SetID(entityNameIDRef_, ob);
             }
             else if (entityNameNode.Attributes["href"] != null)
             {
                 entityNameIDRef_ = entityNameNode.Attributes["href"].Value;
             }
             else
             {
                 entityName_ = new XsdTypeToken(entityNameNode);
             }
         }
         else
         {
             entityName_ = new XsdTypeToken(entityNameNode);
         }
     }
     
 
     XmlNode entityIdNode = xmlNode.SelectSingleNode("entityId");
     
     if (entityIdNode != null)
     {
         if (entityIdNode.Attributes["href"] != null || entityIdNode.Attributes["id"] != null) 
         {
             if (entityIdNode.Attributes["id"] != null) 
             {
                 entityIdIDRef_ = entityIdNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(entityIdNode);
                 IDManager.SetID(entityIdIDRef_, ob);
             }
             else if (entityIdNode.Attributes["href"] != null)
             {
                 entityIdIDRef_ = entityIdNode.Attributes["href"].Value;
             }
             else
             {
                 entityId_ = new XsdTypeToken(entityIdNode);
             }
         }
         else
         {
             entityId_ = new XsdTypeToken(entityIdNode);
         }
     }
     
 
 }
        public CalculationAgent(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode calculationAgentPartyNode = xmlNode.SelectSingleNode("calculationAgentParty");

            if (calculationAgentPartyNode != null)
            {
                if (calculationAgentPartyNode.Attributes["href"] != null || calculationAgentPartyNode.Attributes["id"] != null)
                {
                    if (calculationAgentPartyNode.Attributes["id"] != null)
                    {
                        calculationAgentPartyIDRef_ = calculationAgentPartyNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(calculationAgentPartyNode);
                        IDManager.SetID(calculationAgentPartyIDRef_, ob);
                    }
                    else if (calculationAgentPartyNode.Attributes["href"] != null)
                    {
                        calculationAgentPartyIDRef_ = calculationAgentPartyNode.Attributes["href"].Value;
                    }
                    else
                    {
                        calculationAgentParty_ = new XsdTypeToken(calculationAgentPartyNode);
                    }
                }
                else
                {
                    calculationAgentParty_ = new XsdTypeToken(calculationAgentPartyNode);
                }
            }
        }
        public ReferenceEntity(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode entityNameNode = xmlNode.SelectSingleNode("entityName");

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


            XmlNode entityIdNode = xmlNode.SelectSingleNode("entityId");

            if (entityIdNode != null)
            {
                if (entityIdNode.Attributes["href"] != null || entityIdNode.Attributes["id"] != null)
                {
                    if (entityIdNode.Attributes["id"] != null)
                    {
                        entityIdIDRef_ = entityIdNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(entityIdNode);
                        IDManager.SetID(entityIdIDRef_, ob);
                    }
                    else if (entityIdNode.Attributes["href"] != null)
                    {
                        entityIdIDRef_ = entityIdNode.Attributes["href"].Value;
                    }
                    else
                    {
                        entityId_ = new XsdTypeToken(entityIdNode);
                    }
                }
                else
                {
                    entityId_ = new XsdTypeToken(entityIdNode);
                }
            }
        }
        public CDSSpreadTermstructure(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode dateGenerationNode = xmlNode.SelectSingleNode("dateGeneration");

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


            XmlNode recoveryRateNode = xmlNode.SelectSingleNode("recoveryRate");

            if (recoveryRateNode != null)
            {
                if (recoveryRateNode.Attributes["href"] != null || recoveryRateNode.Attributes["id"] != null)
                {
                    if (recoveryRateNode.Attributes["id"] != null)
                    {
                        recoveryRateIDRef_ = recoveryRateNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(recoveryRateNode);
                        IDManager.SetID(recoveryRateIDRef_, ob);
                    }
                    else if (recoveryRateNode.Attributes["href"] != null)
                    {
                        recoveryRateIDRef_ = recoveryRateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        recoveryRate_ = new XsdTypeToken(recoveryRateNode);
                    }
                }
                else
                {
                    recoveryRate_ = new XsdTypeToken(recoveryRateNode);
                }
            }
        }
Esempio n. 8
0
        public CalculationAmount(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode currencyNode = xmlNode.SelectSingleNode("currency");

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


            XmlNode amountNode = xmlNode.SelectSingleNode("amount");

            if (amountNode != null)
            {
                if (amountNode.Attributes["href"] != null || amountNode.Attributes["id"] != null)
                {
                    if (amountNode.Attributes["id"] != null)
                    {
                        amountIDRef_ = amountNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(amountNode);
                        IDManager.SetID(amountIDRef_, ob);
                    }
                    else if (amountNode.Attributes["href"] != null)
                    {
                        amountIDRef_ = amountNode.Attributes["href"].Value;
                    }
                    else
                    {
                        amount_ = new XsdTypeDouble(amountNode);
                    }
                }
                else
                {
                    amount_ = new XsdTypeDouble(amountNode);
                }
            }
        }
 public Obligations(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode categoryNode = xmlNode.SelectSingleNode("category");
     
     if (categoryNode != null)
     {
         if (categoryNode.Attributes["href"] != null || categoryNode.Attributes["id"] != null) 
         {
             if (categoryNode.Attributes["id"] != null) 
             {
                 categoryIDRef_ = categoryNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(categoryNode);
                 IDManager.SetID(categoryIDRef_, ob);
             }
             else if (categoryNode.Attributes["href"] != null)
             {
                 categoryIDRef_ = categoryNode.Attributes["href"].Value;
             }
             else
             {
                 category_ = new XsdTypeToken(categoryNode);
             }
         }
         else
         {
             category_ = new XsdTypeToken(categoryNode);
         }
     }
     
 
     XmlNode notSubordinatedNode = xmlNode.SelectSingleNode("notSubordinated");
     
     if (notSubordinatedNode != null)
     {
         if (notSubordinatedNode.Attributes["href"] != null || notSubordinatedNode.Attributes["id"] != null) 
         {
             if (notSubordinatedNode.Attributes["id"] != null) 
             {
                 notSubordinatedIDRef_ = notSubordinatedNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(notSubordinatedNode);
                 IDManager.SetID(notSubordinatedIDRef_, ob);
             }
             else if (notSubordinatedNode.Attributes["href"] != null)
             {
                 notSubordinatedIDRef_ = notSubordinatedNode.Attributes["href"].Value;
             }
             else
             {
                 notSubordinated_ = new XsdTypeToken(notSubordinatedNode);
             }
         }
         else
         {
             notSubordinated_ = new XsdTypeToken(notSubordinatedNode);
         }
     }
     
 
     XmlNode notDomesticCurrencyNode = xmlNode.SelectSingleNode("notDomesticCurrency");
     
     if (notDomesticCurrencyNode != null)
     {
         if (notDomesticCurrencyNode.Attributes["href"] != null || notDomesticCurrencyNode.Attributes["id"] != null) 
         {
             if (notDomesticCurrencyNode.Attributes["id"] != null) 
             {
                 notDomesticCurrencyIDRef_ = notDomesticCurrencyNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(notDomesticCurrencyNode);
                 IDManager.SetID(notDomesticCurrencyIDRef_, ob);
             }
             else if (notDomesticCurrencyNode.Attributes["href"] != null)
             {
                 notDomesticCurrencyIDRef_ = notDomesticCurrencyNode.Attributes["href"].Value;
             }
             else
             {
                 notDomesticCurrency_ = new XsdTypeToken(notDomesticCurrencyNode);
             }
         }
         else
         {
             notDomesticCurrency_ = new XsdTypeToken(notDomesticCurrencyNode);
         }
     }
     
 
     XmlNode notDomesticLawNode = xmlNode.SelectSingleNode("notDomesticLaw");
     
     if (notDomesticLawNode != null)
     {
         if (notDomesticLawNode.Attributes["href"] != null || notDomesticLawNode.Attributes["id"] != null) 
         {
             if (notDomesticLawNode.Attributes["id"] != null) 
             {
                 notDomesticLawIDRef_ = notDomesticLawNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(notDomesticLawNode);
                 IDManager.SetID(notDomesticLawIDRef_, ob);
             }
             else if (notDomesticLawNode.Attributes["href"] != null)
             {
                 notDomesticLawIDRef_ = notDomesticLawNode.Attributes["href"].Value;
             }
             else
             {
                 notDomesticLaw_ = new XsdTypeToken(notDomesticLawNode);
             }
         }
         else
         {
             notDomesticLaw_ = new XsdTypeToken(notDomesticLawNode);
         }
     }
     
 
     XmlNode notDomesticIssuanceNode = xmlNode.SelectSingleNode("notDomesticIssuance");
     
     if (notDomesticIssuanceNode != null)
     {
         if (notDomesticIssuanceNode.Attributes["href"] != null || notDomesticIssuanceNode.Attributes["id"] != null) 
         {
             if (notDomesticIssuanceNode.Attributes["id"] != null) 
             {
                 notDomesticIssuanceIDRef_ = notDomesticIssuanceNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(notDomesticIssuanceNode);
                 IDManager.SetID(notDomesticIssuanceIDRef_, ob);
             }
             else if (notDomesticIssuanceNode.Attributes["href"] != null)
             {
                 notDomesticIssuanceIDRef_ = notDomesticIssuanceNode.Attributes["href"].Value;
             }
             else
             {
                 notDomesticIssuance_ = new XsdTypeToken(notDomesticIssuanceNode);
             }
         }
         else
         {
             notDomesticIssuance_ = new XsdTypeToken(notDomesticIssuanceNode);
         }
     }
     
 
 }
 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 CreditEvents(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode failureToPayNode = xmlNode.SelectSingleNode("failureToPay");
     
     if (failureToPayNode != null)
     {
         if (failureToPayNode.Attributes["href"] != null || failureToPayNode.Attributes["id"] != null) 
         {
             if (failureToPayNode.Attributes["id"] != null) 
             {
                 failureToPayIDRef_ = failureToPayNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(failureToPayNode);
                 IDManager.SetID(failureToPayIDRef_, ob);
             }
             else if (failureToPayNode.Attributes["href"] != null)
             {
                 failureToPayIDRef_ = failureToPayNode.Attributes["href"].Value;
             }
             else
             {
                 failureToPay_ = new XsdTypeToken(failureToPayNode);
             }
         }
         else
         {
             failureToPay_ = new XsdTypeToken(failureToPayNode);
         }
     }
     
 
     XmlNode obligationAccelerationNode = xmlNode.SelectSingleNode("obligationAcceleration");
     
     if (obligationAccelerationNode != null)
     {
         if (obligationAccelerationNode.Attributes["href"] != null || obligationAccelerationNode.Attributes["id"] != null) 
         {
             if (obligationAccelerationNode.Attributes["id"] != null) 
             {
                 obligationAccelerationIDRef_ = obligationAccelerationNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(obligationAccelerationNode);
                 IDManager.SetID(obligationAccelerationIDRef_, ob);
             }
             else if (obligationAccelerationNode.Attributes["href"] != null)
             {
                 obligationAccelerationIDRef_ = obligationAccelerationNode.Attributes["href"].Value;
             }
             else
             {
                 obligationAcceleration_ = new XsdTypeToken(obligationAccelerationNode);
             }
         }
         else
         {
             obligationAcceleration_ = new XsdTypeToken(obligationAccelerationNode);
         }
     }
     
 
     XmlNode repudiationMoratoriumNode = xmlNode.SelectSingleNode("repudiationMoratorium");
     
     if (repudiationMoratoriumNode != null)
     {
         if (repudiationMoratoriumNode.Attributes["href"] != null || repudiationMoratoriumNode.Attributes["id"] != null) 
         {
             if (repudiationMoratoriumNode.Attributes["id"] != null) 
             {
                 repudiationMoratoriumIDRef_ = repudiationMoratoriumNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(repudiationMoratoriumNode);
                 IDManager.SetID(repudiationMoratoriumIDRef_, ob);
             }
             else if (repudiationMoratoriumNode.Attributes["href"] != null)
             {
                 repudiationMoratoriumIDRef_ = repudiationMoratoriumNode.Attributes["href"].Value;
             }
             else
             {
                 repudiationMoratorium_ = new XsdTypeToken(repudiationMoratoriumNode);
             }
         }
         else
         {
             repudiationMoratorium_ = new XsdTypeToken(repudiationMoratoriumNode);
         }
     }
     
 
     XmlNode restructuringNode = xmlNode.SelectSingleNode("restructuring");
     
     if (restructuringNode != null)
     {
         if (restructuringNode.Attributes["href"] != null || restructuringNode.Attributes["id"] != null) 
         {
             if (restructuringNode.Attributes["id"] != null) 
             {
                 restructuringIDRef_ = restructuringNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(restructuringNode);
                 IDManager.SetID(restructuringIDRef_, ob);
             }
             else if (restructuringNode.Attributes["href"] != null)
             {
                 restructuringIDRef_ = restructuringNode.Attributes["href"].Value;
             }
             else
             {
                 restructuring_ = new XsdTypeToken(restructuringNode);
             }
         }
         else
         {
             restructuring_ = new XsdTypeToken(restructuringNode);
         }
     }
     
 
     XmlNode defaultRequirementNode = xmlNode.SelectSingleNode("defaultRequirement");
     
     if (defaultRequirementNode != null)
     {
         if (defaultRequirementNode.Attributes["href"] != null || defaultRequirementNode.Attributes["id"] != null) 
         {
             if (defaultRequirementNode.Attributes["id"] != null) 
             {
                 defaultRequirementIDRef_ = defaultRequirementNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(defaultRequirementNode);
                 IDManager.SetID(defaultRequirementIDRef_, ob);
             }
             else if (defaultRequirementNode.Attributes["href"] != null)
             {
                 defaultRequirementIDRef_ = defaultRequirementNode.Attributes["href"].Value;
             }
             else
             {
                 defaultRequirement_ = new XsdTypeToken(defaultRequirementNode);
             }
         }
         else
         {
             defaultRequirement_ = new XsdTypeToken(defaultRequirementNode);
         }
     }
     
 
 }
Esempio n. 12
0
        public NthDefault(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 nthNode = xmlNode.SelectSingleNode("nth");

            if (nthNode != null)
            {
                if (nthNode.Attributes["href"] != null || nthNode.Attributes["id"] != null)
                {
                    if (nthNode.Attributes["id"] != null)
                    {
                        nthIDRef_ = nthNode.Attributes["id"].Value;
                        XsdTypeInt ob = new XsdTypeInt(nthNode);
                        IDManager.SetID(nthIDRef_, ob);
                    }
                    else if (nthNode.Attributes["href"] != null)
                    {
                        nthIDRef_ = nthNode.Attributes["href"].Value;
                    }
                    else
                    {
                        nth_ = new XsdTypeInt(nthNode);
                    }
                }
                else
                {
                    nth_ = new XsdTypeInt(nthNode);
                }
            }


            XmlNode correlationNode = xmlNode.SelectSingleNode("correlation");

            if (correlationNode != null)
            {
                if (correlationNode.Attributes["href"] != null || correlationNode.Attributes["id"] != null)
                {
                    if (correlationNode.Attributes["id"] != null)
                    {
                        correlationIDRef_ = correlationNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(correlationNode);
                        IDManager.SetID(correlationIDRef_, ob);
                    }
                    else if (correlationNode.Attributes["href"] != null)
                    {
                        correlationIDRef_ = correlationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        correlation_ = new XsdTypeDouble(correlationNode);
                    }
                }
                else
                {
                    correlation_ = new XsdTypeDouble(correlationNode);
                }
            }
        }
 public IRCalculation(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode paymentDatesNode = xmlNode.SelectSingleNode("paymentDates");
     
     if (paymentDatesNode != null)
     {
         if (paymentDatesNode.Attributes["href"] != null || paymentDatesNode.Attributes["id"] != null) 
         {
             if (paymentDatesNode.Attributes["id"] != null) 
             {
                 paymentDatesIDRef_ = paymentDatesNode.Attributes["id"].Value;
                 SchduleGen ob = new SchduleGen(paymentDatesNode);
                 IDManager.SetID(paymentDatesIDRef_, ob);
             }
             else if (paymentDatesNode.Attributes["href"] != null)
             {
                 paymentDatesIDRef_ = paymentDatesNode.Attributes["href"].Value;
             }
             else
             {
                 paymentDates_ = new SchduleGen(paymentDatesNode);
             }
         }
         else
         {
             paymentDates_ = new SchduleGen(paymentDatesNode);
         }
     }
     
 
     XmlNode fixedRateNode = xmlNode.SelectSingleNode("fixedRate");
     
     if (fixedRateNode != null)
     {
         if (fixedRateNode.Attributes["href"] != null || fixedRateNode.Attributes["id"] != null) 
         {
             if (fixedRateNode.Attributes["id"] != null) 
             {
                 fixedRateIDRef_ = fixedRateNode.Attributes["id"].Value;
                 FixedRate ob = new FixedRate(fixedRateNode);
                 IDManager.SetID(fixedRateIDRef_, ob);
             }
             else if (fixedRateNode.Attributes["href"] != null)
             {
                 fixedRateIDRef_ = fixedRateNode.Attributes["href"].Value;
             }
             else
             {
                 fixedRate_ = new FixedRate(fixedRateNode);
             }
         }
         else
         {
             fixedRate_ = new FixedRate(fixedRateNode);
         }
     }
     
 
     XmlNode dayCountFractionNode = xmlNode.SelectSingleNode("dayCountFraction");
     
     if (dayCountFractionNode != null)
     {
         if (dayCountFractionNode.Attributes["href"] != null || dayCountFractionNode.Attributes["id"] != null) 
         {
             if (dayCountFractionNode.Attributes["id"] != null) 
             {
                 dayCountFractionIDRef_ = dayCountFractionNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(dayCountFractionNode);
                 IDManager.SetID(dayCountFractionIDRef_, ob);
             }
             else if (dayCountFractionNode.Attributes["href"] != null)
             {
                 dayCountFractionIDRef_ = dayCountFractionNode.Attributes["href"].Value;
             }
             else
             {
                 dayCountFraction_ = new XsdTypeToken(dayCountFractionNode);
             }
         }
         else
         {
             dayCountFraction_ = new XsdTypeToken(dayCountFractionNode);
         }
     }
     
 
     XmlNode inArrearNode = xmlNode.SelectSingleNode("inArrear");
     
     if (inArrearNode != null)
     {
         if (inArrearNode.Attributes["href"] != null || inArrearNode.Attributes["id"] != null) 
         {
             if (inArrearNode.Attributes["id"] != null) 
             {
                 inArrearIDRef_ = inArrearNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(inArrearNode);
                 IDManager.SetID(inArrearIDRef_, ob);
             }
             else if (inArrearNode.Attributes["href"] != null)
             {
                 inArrearIDRef_ = inArrearNode.Attributes["href"].Value;
             }
             else
             {
                 inArrear_ = new XsdTypeBoolean(inArrearNode);
             }
         }
         else
         {
             inArrear_ = new XsdTypeBoolean(inArrearNode);
         }
     }
     
 
 }
        public Obligations(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode categoryNode = xmlNode.SelectSingleNode("category");

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


            XmlNode notSubordinatedNode = xmlNode.SelectSingleNode("notSubordinated");

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


            XmlNode notDomesticCurrencyNode = xmlNode.SelectSingleNode("notDomesticCurrency");

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


            XmlNode notDomesticLawNode = xmlNode.SelectSingleNode("notDomesticLaw");

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


            XmlNode notDomesticIssuanceNode = xmlNode.SelectSingleNode("notDomesticIssuance");

            if (notDomesticIssuanceNode != null)
            {
                if (notDomesticIssuanceNode.Attributes["href"] != null || notDomesticIssuanceNode.Attributes["id"] != null)
                {
                    if (notDomesticIssuanceNode.Attributes["id"] != null)
                    {
                        notDomesticIssuanceIDRef_ = notDomesticIssuanceNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(notDomesticIssuanceNode);
                        IDManager.SetID(notDomesticIssuanceIDRef_, ob);
                    }
                    else if (notDomesticIssuanceNode.Attributes["href"] != null)
                    {
                        notDomesticIssuanceIDRef_ = notDomesticIssuanceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        notDomesticIssuance_ = new XsdTypeToken(notDomesticIssuanceNode);
                    }
                }
                else
                {
                    notDomesticIssuance_ = new XsdTypeToken(notDomesticIssuanceNode);
                }
            }
        }
 public Header(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode productNameNode = xmlNode.SelectSingleNode("productName");
     
     if (productNameNode != null)
     {
         if (productNameNode.Attributes["href"] != null || productNameNode.Attributes["id"] != null) 
         {
             if (productNameNode.Attributes["id"] != null) 
             {
                 productNameIDRef_ = productNameNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(productNameNode);
                 IDManager.SetID(productNameIDRef_, ob);
             }
             else if (productNameNode.Attributes["href"] != null)
             {
                 productNameIDRef_ = productNameNode.Attributes["href"].Value;
             }
             else
             {
                 productName_ = new XsdTypeToken(productNameNode);
             }
         }
         else
         {
             productName_ = new XsdTypeToken(productNameNode);
         }
     }
     
 
     XmlNode productTypeNode = xmlNode.SelectSingleNode("productType");
     
     if (productTypeNode != null)
     {
         if (productTypeNode.Attributes["href"] != null || productTypeNode.Attributes["id"] != null) 
         {
             if (productTypeNode.Attributes["id"] != null) 
             {
                 productTypeIDRef_ = productTypeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(productTypeNode);
                 IDManager.SetID(productTypeIDRef_, ob);
             }
             else if (productTypeNode.Attributes["href"] != null)
             {
                 productTypeIDRef_ = productTypeNode.Attributes["href"].Value;
             }
             else
             {
                 productType_ = new XsdTypeToken(productTypeNode);
             }
         }
         else
         {
             productType_ = new XsdTypeToken(productTypeNode);
         }
     }
     
 
     XmlNode krCodeNode = xmlNode.SelectSingleNode("krCode");
     
     if (krCodeNode != null)
     {
         if (krCodeNode.Attributes["href"] != null || krCodeNode.Attributes["id"] != null) 
         {
             if (krCodeNode.Attributes["id"] != null) 
             {
                 krCodeIDRef_ = krCodeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(krCodeNode);
                 IDManager.SetID(krCodeIDRef_, ob);
             }
             else if (krCodeNode.Attributes["href"] != null)
             {
                 krCodeIDRef_ = krCodeNode.Attributes["href"].Value;
             }
             else
             {
                 krCode_ = new XsdTypeToken(krCodeNode);
             }
         }
         else
         {
             krCode_ = new XsdTypeToken(krCodeNode);
         }
     }
     
 
 }
 public NthDefault(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 nthNode = xmlNode.SelectSingleNode("nth");
     
     if (nthNode != null)
     {
         if (nthNode.Attributes["href"] != null || nthNode.Attributes["id"] != null) 
         {
             if (nthNode.Attributes["id"] != null) 
             {
                 nthIDRef_ = nthNode.Attributes["id"].Value;
                 XsdTypeInt ob = new XsdTypeInt(nthNode);
                 IDManager.SetID(nthIDRef_, ob);
             }
             else if (nthNode.Attributes["href"] != null)
             {
                 nthIDRef_ = nthNode.Attributes["href"].Value;
             }
             else
             {
                 nth_ = new XsdTypeInt(nthNode);
             }
         }
         else
         {
             nth_ = new XsdTypeInt(nthNode);
         }
     }
     
 
     XmlNode correlationNode = xmlNode.SelectSingleNode("correlation");
     
     if (correlationNode != null)
     {
         if (correlationNode.Attributes["href"] != null || correlationNode.Attributes["id"] != null) 
         {
             if (correlationNode.Attributes["id"] != null) 
             {
                 correlationIDRef_ = correlationNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(correlationNode);
                 IDManager.SetID(correlationIDRef_, ob);
             }
             else if (correlationNode.Attributes["href"] != null)
             {
                 correlationIDRef_ = correlationNode.Attributes["href"].Value;
             }
             else
             {
                 correlation_ = new XsdTypeDouble(correlationNode);
             }
         }
         else
         {
             correlation_ = new XsdTypeDouble(correlationNode);
         }
     }
     
 
 }
        public SchduleGen(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode effectiveDateNode = xmlNode.SelectSingleNode("effectiveDate");

            if (effectiveDateNode != null)
            {
                if (effectiveDateNode.Attributes["href"] != null || effectiveDateNode.Attributes["id"] != null)
                {
                    if (effectiveDateNode.Attributes["id"] != null)
                    {
                        effectiveDateIDRef_ = effectiveDateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(effectiveDateNode);
                        IDManager.SetID(effectiveDateIDRef_, ob);
                    }
                    else if (effectiveDateNode.Attributes["href"] != null)
                    {
                        effectiveDateIDRef_ = effectiveDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        effectiveDate_ = new XsdTypeDate(effectiveDateNode);
                    }
                }
                else
                {
                    effectiveDate_ = new XsdTypeDate(effectiveDateNode);
                }
            }


            XmlNode terminationDateNode = xmlNode.SelectSingleNode("terminationDate");

            if (terminationDateNode != null)
            {
                if (terminationDateNode.Attributes["href"] != null || terminationDateNode.Attributes["id"] != null)
                {
                    if (terminationDateNode.Attributes["id"] != null)
                    {
                        terminationDateIDRef_ = terminationDateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(terminationDateNode);
                        IDManager.SetID(terminationDateIDRef_, ob);
                    }
                    else if (terminationDateNode.Attributes["href"] != null)
                    {
                        terminationDateIDRef_ = terminationDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        terminationDate_ = new XsdTypeDate(terminationDateNode);
                    }
                }
                else
                {
                    terminationDate_ = new XsdTypeDate(terminationDateNode);
                }
            }


            XmlNode calendarNode = xmlNode.SelectSingleNode("calendar");

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


            XmlNode calculationPeriodFrequencyNode = xmlNode.SelectSingleNode("calculationPeriodFrequency");

            if (calculationPeriodFrequencyNode != null)
            {
                if (calculationPeriodFrequencyNode.Attributes["href"] != null || calculationPeriodFrequencyNode.Attributes["id"] != null)
                {
                    if (calculationPeriodFrequencyNode.Attributes["id"] != null)
                    {
                        calculationPeriodFrequencyIDRef_ = calculationPeriodFrequencyNode.Attributes["id"].Value;
                        CalculationPeriodFrequency ob = new CalculationPeriodFrequency(calculationPeriodFrequencyNode);
                        IDManager.SetID(calculationPeriodFrequencyIDRef_, ob);
                    }
                    else if (calculationPeriodFrequencyNode.Attributes["href"] != null)
                    {
                        calculationPeriodFrequencyIDRef_ = calculationPeriodFrequencyNode.Attributes["href"].Value;
                    }
                    else
                    {
                        calculationPeriodFrequency_ = new CalculationPeriodFrequency(calculationPeriodFrequencyNode);
                    }
                }
                else
                {
                    calculationPeriodFrequency_ = new CalculationPeriodFrequency(calculationPeriodFrequencyNode);
                }
            }
        }
        public IRCalculation(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode paymentDatesNode = xmlNode.SelectSingleNode("paymentDates");

            if (paymentDatesNode != null)
            {
                if (paymentDatesNode.Attributes["href"] != null || paymentDatesNode.Attributes["id"] != null)
                {
                    if (paymentDatesNode.Attributes["id"] != null)
                    {
                        paymentDatesIDRef_ = paymentDatesNode.Attributes["id"].Value;
                        SchduleGen ob = new SchduleGen(paymentDatesNode);
                        IDManager.SetID(paymentDatesIDRef_, ob);
                    }
                    else if (paymentDatesNode.Attributes["href"] != null)
                    {
                        paymentDatesIDRef_ = paymentDatesNode.Attributes["href"].Value;
                    }
                    else
                    {
                        paymentDates_ = new SchduleGen(paymentDatesNode);
                    }
                }
                else
                {
                    paymentDates_ = new SchduleGen(paymentDatesNode);
                }
            }


            XmlNode fixedRateNode = xmlNode.SelectSingleNode("fixedRate");

            if (fixedRateNode != null)
            {
                if (fixedRateNode.Attributes["href"] != null || fixedRateNode.Attributes["id"] != null)
                {
                    if (fixedRateNode.Attributes["id"] != null)
                    {
                        fixedRateIDRef_ = fixedRateNode.Attributes["id"].Value;
                        FixedRate ob = new FixedRate(fixedRateNode);
                        IDManager.SetID(fixedRateIDRef_, ob);
                    }
                    else if (fixedRateNode.Attributes["href"] != null)
                    {
                        fixedRateIDRef_ = fixedRateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fixedRate_ = new FixedRate(fixedRateNode);
                    }
                }
                else
                {
                    fixedRate_ = new FixedRate(fixedRateNode);
                }
            }


            XmlNode dayCountFractionNode = xmlNode.SelectSingleNode("dayCountFraction");

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


            XmlNode inArrearNode = xmlNode.SelectSingleNode("inArrear");

            if (inArrearNode != null)
            {
                if (inArrearNode.Attributes["href"] != null || inArrearNode.Attributes["id"] != null)
                {
                    if (inArrearNode.Attributes["id"] != null)
                    {
                        inArrearIDRef_ = inArrearNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(inArrearNode);
                        IDManager.SetID(inArrearIDRef_, ob);
                    }
                    else if (inArrearNode.Attributes["href"] != null)
                    {
                        inArrearIDRef_ = inArrearNode.Attributes["href"].Value;
                    }
                    else
                    {
                        inArrear_ = new XsdTypeBoolean(inArrearNode);
                    }
                }
                else
                {
                    inArrear_ = new XsdTypeBoolean(inArrearNode);
                }
            }
        }
        public Bond(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode instrumentIdNode = xmlNode.SelectSingleNode("instrumentId");

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


            XmlNode couponRateNode = xmlNode.SelectSingleNode("couponRate");

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


            XmlNode maturityNode = xmlNode.SelectSingleNode("maturity");

            if (maturityNode != null)
            {
                if (maturityNode.Attributes["href"] != null || maturityNode.Attributes["id"] != null)
                {
                    if (maturityNode.Attributes["id"] != null)
                    {
                        maturityIDRef_ = maturityNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(maturityNode);
                        IDManager.SetID(maturityIDRef_, ob);
                    }
                    else if (maturityNode.Attributes["href"] != null)
                    {
                        maturityIDRef_ = maturityNode.Attributes["href"].Value;
                    }
                    else
                    {
                        maturity_ = new XsdTypeDate(maturityNode);
                    }
                }
                else
                {
                    maturity_ = new XsdTypeDate(maturityNode);
                }
            }
        }
Esempio n. 20
0
        public CreditEvents(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode failureToPayNode = xmlNode.SelectSingleNode("failureToPay");

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


            XmlNode obligationAccelerationNode = xmlNode.SelectSingleNode("obligationAcceleration");

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


            XmlNode repudiationMoratoriumNode = xmlNode.SelectSingleNode("repudiationMoratorium");

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


            XmlNode restructuringNode = xmlNode.SelectSingleNode("restructuring");

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


            XmlNode defaultRequirementNode = xmlNode.SelectSingleNode("defaultRequirement");

            if (defaultRequirementNode != null)
            {
                if (defaultRequirementNode.Attributes["href"] != null || defaultRequirementNode.Attributes["id"] != null)
                {
                    if (defaultRequirementNode.Attributes["id"] != null)
                    {
                        defaultRequirementIDRef_ = defaultRequirementNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(defaultRequirementNode);
                        IDManager.SetID(defaultRequirementIDRef_, ob);
                    }
                    else if (defaultRequirementNode.Attributes["href"] != null)
                    {
                        defaultRequirementIDRef_ = defaultRequirementNode.Attributes["href"].Value;
                    }
                    else
                    {
                        defaultRequirement_ = new XsdTypeToken(defaultRequirementNode);
                    }
                }
                else
                {
                    defaultRequirement_ = new XsdTypeToken(defaultRequirementNode);
                }
            }
        }
        public Header(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode productNameNode = xmlNode.SelectSingleNode("productName");

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


            XmlNode productTypeNode = xmlNode.SelectSingleNode("productType");

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


            XmlNode krCodeNode = xmlNode.SelectSingleNode("krCode");

            if (krCodeNode != null)
            {
                if (krCodeNode.Attributes["href"] != null || krCodeNode.Attributes["id"] != null)
                {
                    if (krCodeNode.Attributes["id"] != null)
                    {
                        krCodeIDRef_ = krCodeNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(krCodeNode);
                        IDManager.SetID(krCodeIDRef_, ob);
                    }
                    else if (krCodeNode.Attributes["href"] != null)
                    {
                        krCodeIDRef_ = krCodeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        krCode_ = new XsdTypeToken(krCodeNode);
                    }
                }
                else
                {
                    krCode_ = new XsdTypeToken(krCodeNode);
                }
            }
        }
        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 TermstructureBase(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 interpolationNode = xmlNode.SelectSingleNode("interpolation");
     
     if (interpolationNode != null)
     {
         if (interpolationNode.Attributes["href"] != null || interpolationNode.Attributes["id"] != null) 
         {
             if (interpolationNode.Attributes["id"] != null) 
             {
                 interpolationIDRef_ = interpolationNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(interpolationNode);
                 IDManager.SetID(interpolationIDRef_, ob);
             }
             else if (interpolationNode.Attributes["href"] != null)
             {
                 interpolationIDRef_ = interpolationNode.Attributes["href"].Value;
             }
             else
             {
                 interpolation_ = new XsdTypeToken(interpolationNode);
             }
         }
         else
         {
             interpolation_ = new XsdTypeToken(interpolationNode);
         }
     }
     
 
     XmlNode daycounterNode = xmlNode.SelectSingleNode("daycounter");
     
     if (daycounterNode != null)
     {
         if (daycounterNode.Attributes["href"] != null || daycounterNode.Attributes["id"] != null) 
         {
             if (daycounterNode.Attributes["id"] != null) 
             {
                 daycounterIDRef_ = daycounterNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(daycounterNode);
                 IDManager.SetID(daycounterIDRef_, ob);
             }
             else if (daycounterNode.Attributes["href"] != null)
             {
                 daycounterIDRef_ = daycounterNode.Attributes["href"].Value;
             }
             else
             {
                 daycounter_ = new XsdTypeToken(daycounterNode);
             }
         }
         else
         {
             daycounter_ = new XsdTypeToken(daycounterNode);
         }
     }
     
 
     XmlNode calendarNode = xmlNode.SelectSingleNode("calendar");
     
     if (calendarNode != null)
     {
         if (calendarNode.Attributes["href"] != null || calendarNode.Attributes["id"] != null) 
         {
             if (calendarNode.Attributes["id"] != null) 
             {
                 calendarIDRef_ = calendarNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(calendarNode);
                 IDManager.SetID(calendarIDRef_, ob);
             }
             else if (calendarNode.Attributes["href"] != null)
             {
                 calendarIDRef_ = calendarNode.Attributes["href"].Value;
             }
             else
             {
                 calendar_ = new XsdTypeToken(calendarNode);
             }
         }
         else
         {
             calendar_ = new XsdTypeToken(calendarNode);
         }
     }
     
 
     XmlNode businessDayConventionNode = xmlNode.SelectSingleNode("businessDayConvention");
     
     if (businessDayConventionNode != null)
     {
         if (businessDayConventionNode.Attributes["href"] != null || businessDayConventionNode.Attributes["id"] != null) 
         {
             if (businessDayConventionNode.Attributes["id"] != null) 
             {
                 businessDayConventionIDRef_ = businessDayConventionNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(businessDayConventionNode);
                 IDManager.SetID(businessDayConventionIDRef_, ob);
             }
             else if (businessDayConventionNode.Attributes["href"] != null)
             {
                 businessDayConventionIDRef_ = businessDayConventionNode.Attributes["href"].Value;
             }
             else
             {
                 businessDayConvention_ = new XsdTypeToken(businessDayConventionNode);
             }
         }
         else
         {
             businessDayConvention_ = new XsdTypeToken(businessDayConventionNode);
         }
     }
     
 
     XmlNodeList rateDataNodeList = xmlNode.SelectNodes("rateData");
     
     if (rateDataNodeList != null)
     {
         this.rateData_ = new List<RateData>();
         foreach (XmlNode item in rateDataNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     rateDataIDRef_ = item.Attributes["id"].Value;
                     rateData_.Add(new RateData(item));
                     IDManager.SetID(rateDataIDRef_, rateData_[rateData_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     rateDataIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 rateData_.Add(new RateData(item));
                 }
             }
             else
             {
                 rateData_.Add(new RateData(item));
             }
         }
     }
     
 
 }
 public SchduleGen(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode effectiveDateNode = xmlNode.SelectSingleNode("effectiveDate");
     
     if (effectiveDateNode != null)
     {
         if (effectiveDateNode.Attributes["href"] != null || effectiveDateNode.Attributes["id"] != null) 
         {
             if (effectiveDateNode.Attributes["id"] != null) 
             {
                 effectiveDateIDRef_ = effectiveDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(effectiveDateNode);
                 IDManager.SetID(effectiveDateIDRef_, ob);
             }
             else if (effectiveDateNode.Attributes["href"] != null)
             {
                 effectiveDateIDRef_ = effectiveDateNode.Attributes["href"].Value;
             }
             else
             {
                 effectiveDate_ = new XsdTypeDate(effectiveDateNode);
             }
         }
         else
         {
             effectiveDate_ = new XsdTypeDate(effectiveDateNode);
         }
     }
     
 
     XmlNode terminationDateNode = xmlNode.SelectSingleNode("terminationDate");
     
     if (terminationDateNode != null)
     {
         if (terminationDateNode.Attributes["href"] != null || terminationDateNode.Attributes["id"] != null) 
         {
             if (terminationDateNode.Attributes["id"] != null) 
             {
                 terminationDateIDRef_ = terminationDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(terminationDateNode);
                 IDManager.SetID(terminationDateIDRef_, ob);
             }
             else if (terminationDateNode.Attributes["href"] != null)
             {
                 terminationDateIDRef_ = terminationDateNode.Attributes["href"].Value;
             }
             else
             {
                 terminationDate_ = new XsdTypeDate(terminationDateNode);
             }
         }
         else
         {
             terminationDate_ = new XsdTypeDate(terminationDateNode);
         }
     }
     
 
     XmlNode calendarNode = xmlNode.SelectSingleNode("calendar");
     
     if (calendarNode != null)
     {
         if (calendarNode.Attributes["href"] != null || calendarNode.Attributes["id"] != null) 
         {
             if (calendarNode.Attributes["id"] != null) 
             {
                 calendarIDRef_ = calendarNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(calendarNode);
                 IDManager.SetID(calendarIDRef_, ob);
             }
             else if (calendarNode.Attributes["href"] != null)
             {
                 calendarIDRef_ = calendarNode.Attributes["href"].Value;
             }
             else
             {
                 calendar_ = new XsdTypeToken(calendarNode);
             }
         }
         else
         {
             calendar_ = new XsdTypeToken(calendarNode);
         }
     }
     
 
     XmlNode calculationPeriodFrequencyNode = xmlNode.SelectSingleNode("calculationPeriodFrequency");
     
     if (calculationPeriodFrequencyNode != null)
     {
         if (calculationPeriodFrequencyNode.Attributes["href"] != null || calculationPeriodFrequencyNode.Attributes["id"] != null) 
         {
             if (calculationPeriodFrequencyNode.Attributes["id"] != null) 
             {
                 calculationPeriodFrequencyIDRef_ = calculationPeriodFrequencyNode.Attributes["id"].Value;
                 CalculationPeriodFrequency ob = new CalculationPeriodFrequency(calculationPeriodFrequencyNode);
                 IDManager.SetID(calculationPeriodFrequencyIDRef_, ob);
             }
             else if (calculationPeriodFrequencyNode.Attributes["href"] != null)
             {
                 calculationPeriodFrequencyIDRef_ = calculationPeriodFrequencyNode.Attributes["href"].Value;
             }
             else
             {
                 calculationPeriodFrequency_ = new CalculationPeriodFrequency(calculationPeriodFrequencyNode);
             }
         }
         else
         {
             calculationPeriodFrequency_ = new CalculationPeriodFrequency(calculationPeriodFrequencyNode);
         }
     }
     
 
 }
 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. 26
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);
                }
            }
        }
Esempio n. 27
0
        public TermstructureBase(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 interpolationNode = xmlNode.SelectSingleNode("interpolation");

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


            XmlNode daycounterNode = xmlNode.SelectSingleNode("daycounter");

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


            XmlNode calendarNode = xmlNode.SelectSingleNode("calendar");

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


            XmlNode businessDayConventionNode = xmlNode.SelectSingleNode("businessDayConvention");

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


            XmlNodeList rateDataNodeList = xmlNode.SelectNodes("rateData");

            if (rateDataNodeList != null)
            {
                this.rateData_ = new List <RateData>();
                foreach (XmlNode item in rateDataNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            rateDataIDRef_ = item.Attributes["id"].Value;
                            rateData_.Add(new RateData(item));
                            IDManager.SetID(rateDataIDRef_, rateData_[rateData_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            rateDataIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            rateData_.Add(new RateData(item));
                        }
                    }
                    else
                    {
                        rateData_.Add(new RateData(item));
                    }
                }
            }
        }
 public Bond(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode instrumentIdNode = xmlNode.SelectSingleNode("instrumentId");
     
     if (instrumentIdNode != null)
     {
         if (instrumentIdNode.Attributes["href"] != null || instrumentIdNode.Attributes["id"] != null) 
         {
             if (instrumentIdNode.Attributes["id"] != null) 
             {
                 instrumentIdIDRef_ = instrumentIdNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(instrumentIdNode);
                 IDManager.SetID(instrumentIdIDRef_, ob);
             }
             else if (instrumentIdNode.Attributes["href"] != null)
             {
                 instrumentIdIDRef_ = instrumentIdNode.Attributes["href"].Value;
             }
             else
             {
                 instrumentId_ = new XsdTypeToken(instrumentIdNode);
             }
         }
         else
         {
             instrumentId_ = new XsdTypeToken(instrumentIdNode);
         }
     }
     
 
     XmlNode couponRateNode = xmlNode.SelectSingleNode("couponRate");
     
     if (couponRateNode != null)
     {
         if (couponRateNode.Attributes["href"] != null || couponRateNode.Attributes["id"] != null) 
         {
             if (couponRateNode.Attributes["id"] != null) 
             {
                 couponRateIDRef_ = couponRateNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(couponRateNode);
                 IDManager.SetID(couponRateIDRef_, ob);
             }
             else if (couponRateNode.Attributes["href"] != null)
             {
                 couponRateIDRef_ = couponRateNode.Attributes["href"].Value;
             }
             else
             {
                 couponRate_ = new XsdTypeDouble(couponRateNode);
             }
         }
         else
         {
             couponRate_ = new XsdTypeDouble(couponRateNode);
         }
     }
     
 
     XmlNode maturityNode = xmlNode.SelectSingleNode("maturity");
     
     if (maturityNode != null)
     {
         if (maturityNode.Attributes["href"] != null || maturityNode.Attributes["id"] != null) 
         {
             if (maturityNode.Attributes["id"] != null) 
             {
                 maturityIDRef_ = maturityNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(maturityNode);
                 IDManager.SetID(maturityIDRef_, ob);
             }
             else if (maturityNode.Attributes["href"] != null)
             {
                 maturityIDRef_ = maturityNode.Attributes["href"].Value;
             }
             else
             {
                 maturity_ = new XsdTypeDate(maturityNode);
             }
         }
         else
         {
             maturity_ = new XsdTypeDate(maturityNode);
         }
     }
     
 
 }