public ClearQueue(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode actionTypeNode = xmlNode.SelectSingleNode("actionType");
     
     if (actionTypeNode != null)
     {
         if (actionTypeNode.Attributes["href"] != null || actionTypeNode.Attributes["id"] != null) 
         {
             if (actionTypeNode.Attributes["id"] != null) 
             {
                 actionTypeIDRef_ = actionTypeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(actionTypeNode);
                 IDManager.SetID(actionTypeIDRef_, ob);
             }
             else if (actionTypeNode.Attributes["href"] != null)
             {
                 actionTypeIDRef_ = actionTypeNode.Attributes["href"].Value;
             }
             else
             {
                 actionType_ = new XsdTypeToken(actionTypeNode);
             }
         }
         else
         {
             actionType_ = new XsdTypeToken(actionTypeNode);
         }
     }
     
 
 }
 public ChoiceReferenceCal(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode selectedUnderNameNode = xmlNode.SelectSingleNode("selectedUnderName");
     
     if (selectedUnderNameNode != null)
     {
         if (selectedUnderNameNode.Attributes["href"] != null || selectedUnderNameNode.Attributes["id"] != null) 
         {
             if (selectedUnderNameNode.Attributes["id"] != null) 
             {
                 selectedUnderNameIDRef_ = selectedUnderNameNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(selectedUnderNameNode);
                 IDManager.SetID(selectedUnderNameIDRef_, ob);
             }
             else if (selectedUnderNameNode.Attributes["href"] != null)
             {
                 selectedUnderNameIDRef_ = selectedUnderNameNode.Attributes["href"].Value;
             }
             else
             {
                 selectedUnderName_ = new XsdTypeToken(selectedUnderNameNode);
             }
         }
         else
         {
             selectedUnderName_ = new XsdTypeToken(selectedUnderNameNode);
         }
     }
     
 
     XmlNode fixingDateInfoNode = xmlNode.SelectSingleNode("fixingDateInfo");
     
     if (fixingDateInfoNode != null)
     {
         if (fixingDateInfoNode.Attributes["href"] != null || fixingDateInfoNode.Attributes["id"] != null) 
         {
             if (fixingDateInfoNode.Attributes["id"] != null) 
             {
                 fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["id"].Value;
                 FixingDateInfo ob = new FixingDateInfo(fixingDateInfoNode);
                 IDManager.SetID(fixingDateInfoIDRef_, ob);
             }
             else if (fixingDateInfoNode.Attributes["href"] != null)
             {
                 fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["href"].Value;
             }
             else
             {
                 fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode);
             }
         }
         else
         {
             fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode);
         }
     }
     
 
 }
 public PayoffInfoAnalytic(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode typeNode = xmlNode.SelectSingleNode("type");
     
     if (typeNode != null)
     {
         if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null) 
         {
             if (typeNode.Attributes["id"] != null) 
             {
                 typeIDRef_ = typeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(typeNode);
                 IDManager.SetID(typeIDRef_, ob);
             }
             else if (typeNode.Attributes["href"] != null)
             {
                 typeIDRef_ = typeNode.Attributes["href"].Value;
             }
             else
             {
                 type_ = new XsdTypeToken(typeNode);
             }
         }
         else
         {
             type_ = new XsdTypeToken(typeNode);
         }
     }
     
 
     XmlNode standardPayoff_ANode = xmlNode.SelectSingleNode("standardPayoff_A");
     
     if (standardPayoff_ANode != null)
     {
         if (standardPayoff_ANode.Attributes["href"] != null || standardPayoff_ANode.Attributes["id"] != null) 
         {
             if (standardPayoff_ANode.Attributes["id"] != null) 
             {
                 standardPayoff_AIDRef_ = standardPayoff_ANode.Attributes["id"].Value;
                 StandardPayoff_A ob = new StandardPayoff_A(standardPayoff_ANode);
                 IDManager.SetID(standardPayoff_AIDRef_, ob);
             }
             else if (standardPayoff_ANode.Attributes["href"] != null)
             {
                 standardPayoff_AIDRef_ = standardPayoff_ANode.Attributes["href"].Value;
             }
             else
             {
                 standardPayoff_A_ = new StandardPayoff_A(standardPayoff_ANode);
             }
         }
         else
         {
             standardPayoff_A_ = new StandardPayoff_A(standardPayoff_ANode);
         }
     }
     
 
 }
        public Excel_jointProbabilityTrait(XmlNode xmlNode)
            : base(xmlNode)
        {
            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;
                        XsdTypeToken ob = new XsdTypeToken(nthNode);
                        IDManager.SetID(nthIDRef_, ob);
                    }
                    else if (nthNode.Attributes["href"] != null)
                    {
                        nthIDRef_ = nthNode.Attributes["href"].Value;
                    }
                    else
                    {
                        nth_ = new XsdTypeToken(nthNode);
                    }
                }
                else
                {
                    nth_ = new XsdTypeToken(nthNode);
                }
            }
        }
        public InstrumentType(XmlNode xmlNode)
        {
            XmlNodeList classificationNodeList = xmlNode.SelectNodes("classification");

            if (classificationNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in classificationNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        classificationIDRef = item.Attributes["id"].Name;
                        XsdTypeToken ob = XsdTypeToken();
                        IDManager.SetID(classificationIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        classificationIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        classification = new XsdTypeToken(item);
                    }
                }
            }
        }
 public CouponPart(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode payRecieveNode = xmlNode.SelectSingleNode("payRecieve");
     
     if (payRecieveNode != null)
     {
         if (payRecieveNode.Attributes["href"] != null || payRecieveNode.Attributes["id"] != null) 
         {
             if (payRecieveNode.Attributes["id"] != null) 
             {
                 payRecieveIDRef_ = payRecieveNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(payRecieveNode);
                 IDManager.SetID(payRecieveIDRef_, ob);
             }
             else if (payRecieveNode.Attributes["href"] != null)
             {
                 payRecieveIDRef_ = payRecieveNode.Attributes["href"].Value;
             }
             else
             {
                 payRecieve_ = new XsdTypeToken(payRecieveNode);
             }
         }
         else
         {
             payRecieve_ = new XsdTypeToken(payRecieveNode);
         }
     }
     
 
 }
Ejemplo n.º 7
0
        public InstrumentType(XmlNode xmlNode)
        {
            XmlNode classificationNode = xmlNode.SelectSingleNode("classification");

            if (classificationNode != null)
            {
                if (classificationNode.Attributes["href"] != null || classificationNode.Attributes["id"] != null)
                {
                    if (classificationNode.Attributes["id"] != null)
                    {
                        classificationIDRef_ = classificationNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(classificationNode);
                        IDManager.SetID(classificationIDRef_, ob);
                    }
                    else if (classificationNode.Attributes["href"] != null)
                    {
                        classificationIDRef_ = classificationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        classification_ = new XsdTypeToken(classificationNode);
                    }
                }
                else
                {
                    classification_ = new XsdTypeToken(classificationNode);
                }
            }
        }
 public JointProbabilityTrait(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 nthDefaultTraitNode = xmlNode.SelectSingleNode("nthDefaultTrait");
     
     if (nthDefaultTraitNode != null)
     {
         if (nthDefaultTraitNode.Attributes["href"] != null || nthDefaultTraitNode.Attributes["id"] != null) 
         {
             if (nthDefaultTraitNode.Attributes["id"] != null) 
             {
                 nthDefaultTraitIDRef_ = nthDefaultTraitNode.Attributes["id"].Value;
                 NthDefaultTrait ob = new NthDefaultTrait(nthDefaultTraitNode);
                 IDManager.SetID(nthDefaultTraitIDRef_, ob);
             }
             else if (nthDefaultTraitNode.Attributes["href"] != null)
             {
                 nthDefaultTraitIDRef_ = nthDefaultTraitNode.Attributes["href"].Value;
             }
             else
             {
                 nthDefaultTrait_ = new NthDefaultTrait(nthDefaultTraitNode);
             }
         }
         else
         {
             nthDefaultTrait_ = new NthDefaultTrait(nthDefaultTraitNode);
         }
     }
     
 
 }
        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 Variable(XmlNode xmlNode)
        {
            XmlNodeList symbolNameNodeList = xmlNode.SelectNodes("symbolName");

            if (symbolNameNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in symbolNameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        symbolNameIDRef = item.Attributes["id"].Name;
                        XsdTypeToken ob = XsdTypeToken();
                        IDManager.SetID(symbolNameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        symbolNameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        symbolName = new XsdTypeToken(item);
                    }
                }
            }
        }
 public CashFlowInfoResult(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 simpleCashFlowResultNode = xmlNode.SelectSingleNode("simpleCashFlowResult");
     
     if (simpleCashFlowResultNode != null)
     {
         if (simpleCashFlowResultNode.Attributes["href"] != null || simpleCashFlowResultNode.Attributes["id"] != null) 
         {
             if (simpleCashFlowResultNode.Attributes["id"] != null) 
             {
                 simpleCashFlowResultIDRef_ = simpleCashFlowResultNode.Attributes["id"].Value;
                 SimpleCashFlowResult ob = new SimpleCashFlowResult(simpleCashFlowResultNode);
                 IDManager.SetID(simpleCashFlowResultIDRef_, ob);
             }
             else if (simpleCashFlowResultNode.Attributes["href"] != null)
             {
                 simpleCashFlowResultIDRef_ = simpleCashFlowResultNode.Attributes["href"].Value;
             }
             else
             {
                 simpleCashFlowResult_ = new SimpleCashFlowResult(simpleCashFlowResultNode);
             }
         }
         else
         {
             simpleCashFlowResult_ = new SimpleCashFlowResult(simpleCashFlowResultNode);
         }
     }
     
 
 }
 public Excel_vanillaFloatingBond_subtype(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");
     
     if (excel_typeNode != null)
     {
         if (excel_typeNode.Attributes["href"] != null || excel_typeNode.Attributes["id"] != null) 
         {
             if (excel_typeNode.Attributes["id"] != null) 
             {
                 excel_typeIDRef_ = excel_typeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(excel_typeNode);
                 IDManager.SetID(excel_typeIDRef_, ob);
             }
             else if (excel_typeNode.Attributes["href"] != null)
             {
                 excel_typeIDRef_ = excel_typeNode.Attributes["href"].Value;
             }
             else
             {
                 excel_type_ = new XsdTypeToken(excel_typeNode);
             }
         }
         else
         {
             excel_type_ = new XsdTypeToken(excel_typeNode);
         }
     }
     
 
     XmlNode excel_vanillaFloatingBond_simpleNode = xmlNode.SelectSingleNode("excel_vanillaFloatingBond_simple");
     
     if (excel_vanillaFloatingBond_simpleNode != null)
     {
         if (excel_vanillaFloatingBond_simpleNode.Attributes["href"] != null || excel_vanillaFloatingBond_simpleNode.Attributes["id"] != null) 
         {
             if (excel_vanillaFloatingBond_simpleNode.Attributes["id"] != null) 
             {
                 excel_vanillaFloatingBond_simpleIDRef_ = excel_vanillaFloatingBond_simpleNode.Attributes["id"].Value;
                 Excel_vanillaFloatingBond_simple ob = new Excel_vanillaFloatingBond_simple(excel_vanillaFloatingBond_simpleNode);
                 IDManager.SetID(excel_vanillaFloatingBond_simpleIDRef_, ob);
             }
             else if (excel_vanillaFloatingBond_simpleNode.Attributes["href"] != null)
             {
                 excel_vanillaFloatingBond_simpleIDRef_ = excel_vanillaFloatingBond_simpleNode.Attributes["href"].Value;
             }
             else
             {
                 excel_vanillaFloatingBond_simple_ = new Excel_vanillaFloatingBond_simple(excel_vanillaFloatingBond_simpleNode);
             }
         }
         else
         {
             excel_vanillaFloatingBond_simple_ = new Excel_vanillaFloatingBond_simple(excel_vanillaFloatingBond_simpleNode);
         }
     }
     
 
 }
 public Excel_hifive_subtype(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");
     
     if (excel_typeNode != null)
     {
         if (excel_typeNode.Attributes["href"] != null || excel_typeNode.Attributes["id"] != null) 
         {
             if (excel_typeNode.Attributes["id"] != null) 
             {
                 excel_typeIDRef_ = excel_typeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(excel_typeNode);
                 IDManager.SetID(excel_typeIDRef_, ob);
             }
             else if (excel_typeNode.Attributes["href"] != null)
             {
                 excel_typeIDRef_ = excel_typeNode.Attributes["href"].Value;
             }
             else
             {
                 excel_type_ = new XsdTypeToken(excel_typeNode);
             }
         }
         else
         {
             excel_type_ = new XsdTypeToken(excel_typeNode);
         }
     }
     
 
     XmlNode excel_hifive_stepDown_kiNode = xmlNode.SelectSingleNode("excel_hifive_stepDown_ki");
     
     if (excel_hifive_stepDown_kiNode != null)
     {
         if (excel_hifive_stepDown_kiNode.Attributes["href"] != null || excel_hifive_stepDown_kiNode.Attributes["id"] != null) 
         {
             if (excel_hifive_stepDown_kiNode.Attributes["id"] != null) 
             {
                 excel_hifive_stepDown_kiIDRef_ = excel_hifive_stepDown_kiNode.Attributes["id"].Value;
                 Excel_hifive_stepDown_ki ob = new Excel_hifive_stepDown_ki(excel_hifive_stepDown_kiNode);
                 IDManager.SetID(excel_hifive_stepDown_kiIDRef_, ob);
             }
             else if (excel_hifive_stepDown_kiNode.Attributes["href"] != null)
             {
                 excel_hifive_stepDown_kiIDRef_ = excel_hifive_stepDown_kiNode.Attributes["href"].Value;
             }
             else
             {
                 excel_hifive_stepDown_ki_ = new Excel_hifive_stepDown_ki(excel_hifive_stepDown_kiNode);
             }
         }
         else
         {
             excel_hifive_stepDown_ki_ = new Excel_hifive_stepDown_ki(excel_hifive_stepDown_kiNode);
         }
     }
     
 
 }
        public Excel_constReturnCal(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode constReturnNode = xmlNode.SelectSingleNode("constReturn");

            if (constReturnNode != null)
            {
                if (constReturnNode.Attributes["href"] != null || constReturnNode.Attributes["id"] != null)
                {
                    if (constReturnNode.Attributes["id"] != null)
                    {
                        constReturnIDRef_ = constReturnNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(constReturnNode);
                        IDManager.SetID(constReturnIDRef_, ob);
                    }
                    else if (constReturnNode.Attributes["href"] != null)
                    {
                        constReturnIDRef_ = constReturnNode.Attributes["href"].Value;
                    }
                    else
                    {
                        constReturn_ = new XsdTypeToken(constReturnNode);
                    }
                }
                else
                {
                    constReturn_ = new XsdTypeToken(constReturnNode);
                }
            }
        }
 public General_TerminationEventDetail_target(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode targetNode = xmlNode.SelectSingleNode("target");
     
     if (targetNode != null)
     {
         if (targetNode.Attributes["href"] != null || targetNode.Attributes["id"] != null) 
         {
             if (targetNode.Attributes["id"] != null) 
             {
                 targetIDRef_ = targetNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(targetNode);
                 IDManager.SetID(targetIDRef_, ob);
             }
             else if (targetNode.Attributes["href"] != null)
             {
                 targetIDRef_ = targetNode.Attributes["href"].Value;
             }
             else
             {
                 target_ = new XsdTypeToken(targetNode);
             }
         }
         else
         {
             target_ = new XsdTypeToken(targetNode);
         }
     }
     
 
 }
 public Excel_fixedBond_subtype(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");
     
     if (excel_typeNode != null)
     {
         if (excel_typeNode.Attributes["href"] != null || excel_typeNode.Attributes["id"] != null) 
         {
             if (excel_typeNode.Attributes["id"] != null) 
             {
                 excel_typeIDRef_ = excel_typeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(excel_typeNode);
                 IDManager.SetID(excel_typeIDRef_, ob);
             }
             else if (excel_typeNode.Attributes["href"] != null)
             {
                 excel_typeIDRef_ = excel_typeNode.Attributes["href"].Value;
             }
             else
             {
                 excel_type_ = new XsdTypeToken(excel_typeNode);
             }
         }
         else
         {
             excel_type_ = new XsdTypeToken(excel_typeNode);
         }
     }
     
 
     XmlNode excel_fixedBond_constantRateNode = xmlNode.SelectSingleNode("excel_fixedBond_constantRate");
     
     if (excel_fixedBond_constantRateNode != null)
     {
         if (excel_fixedBond_constantRateNode.Attributes["href"] != null || excel_fixedBond_constantRateNode.Attributes["id"] != null) 
         {
             if (excel_fixedBond_constantRateNode.Attributes["id"] != null) 
             {
                 excel_fixedBond_constantRateIDRef_ = excel_fixedBond_constantRateNode.Attributes["id"].Value;
                 Excel_fixedBond_constantRate ob = new Excel_fixedBond_constantRate(excel_fixedBond_constantRateNode);
                 IDManager.SetID(excel_fixedBond_constantRateIDRef_, ob);
             }
             else if (excel_fixedBond_constantRateNode.Attributes["href"] != null)
             {
                 excel_fixedBond_constantRateIDRef_ = excel_fixedBond_constantRateNode.Attributes["href"].Value;
             }
             else
             {
                 excel_fixedBond_constantRate_ = new Excel_fixedBond_constantRate(excel_fixedBond_constantRateNode);
             }
         }
         else
         {
             excel_fixedBond_constantRate_ = new Excel_fixedBond_constantRate(excel_fixedBond_constantRateNode);
         }
     }
     
 
 }
 public Excel_dualBarrierEventCal(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode lowerRngNode = xmlNode.SelectSingleNode("lowerRng");
     
     if (lowerRngNode != null)
     {
         if (lowerRngNode.Attributes["href"] != null || lowerRngNode.Attributes["id"] != null) 
         {
             if (lowerRngNode.Attributes["id"] != null) 
             {
                 lowerRngIDRef_ = lowerRngNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(lowerRngNode);
                 IDManager.SetID(lowerRngIDRef_, ob);
             }
             else if (lowerRngNode.Attributes["href"] != null)
             {
                 lowerRngIDRef_ = lowerRngNode.Attributes["href"].Value;
             }
             else
             {
                 lowerRng_ = new XsdTypeToken(lowerRngNode);
             }
         }
         else
         {
             lowerRng_ = new XsdTypeToken(lowerRngNode);
         }
     }
     
 
     XmlNode upperRngNode = xmlNode.SelectSingleNode("upperRng");
     
     if (upperRngNode != null)
     {
         if (upperRngNode.Attributes["href"] != null || upperRngNode.Attributes["id"] != null) 
         {
             if (upperRngNode.Attributes["id"] != null) 
             {
                 upperRngIDRef_ = upperRngNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(upperRngNode);
                 IDManager.SetID(upperRngIDRef_, ob);
             }
             else if (upperRngNode.Attributes["href"] != null)
             {
                 upperRngIDRef_ = upperRngNode.Attributes["href"].Value;
             }
             else
             {
                 upperRng_ = new XsdTypeToken(upperRngNode);
             }
         }
         else
         {
             upperRng_ = new XsdTypeToken(upperRngNode);
         }
     }
     
 
 }
 public RefVariableReferenceCal(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode refNameNode = xmlNode.SelectSingleNode("refName");
     
     if (refNameNode != null)
     {
         if (refNameNode.Attributes["href"] != null || refNameNode.Attributes["id"] != null) 
         {
             if (refNameNode.Attributes["id"] != null) 
             {
                 refNameIDRef_ = refNameNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(refNameNode);
                 IDManager.SetID(refNameIDRef_, ob);
             }
             else if (refNameNode.Attributes["href"] != null)
             {
                 refNameIDRef_ = refNameNode.Attributes["href"].Value;
             }
             else
             {
                 refName_ = new XsdTypeToken(refNameNode);
             }
         }
         else
         {
             refName_ = new XsdTypeToken(refNameNode);
         }
     }
     
 
 }
        public InterestRateIndex(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode tenorNode = xmlNode.SelectSingleNode("tenor");

            if (tenorNode != null)
            {
                if (tenorNode.Attributes["href"] != null || tenorNode.Attributes["id"] != null)
                {
                    if (tenorNode.Attributes["id"] != null)
                    {
                        tenorIDRef_ = tenorNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(tenorNode);
                        IDManager.SetID(tenorIDRef_, ob);
                    }
                    else if (tenorNode.Attributes["href"] != null)
                    {
                        tenorIDRef_ = tenorNode.Attributes["href"].Value;
                    }
                    else
                    {
                        tenor_ = new XsdTypeToken(tenorNode);
                    }
                }
                else
                {
                    tenor_ = new XsdTypeToken(tenorNode);
                }
            }
        }
 public CreditPayoffInfo(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 creditDefaultSwapNode = xmlNode.SelectSingleNode("creditDefaultSwap");
     
     if (creditDefaultSwapNode != null)
     {
         if (creditDefaultSwapNode.Attributes["href"] != null || creditDefaultSwapNode.Attributes["id"] != null) 
         {
             if (creditDefaultSwapNode.Attributes["id"] != null) 
             {
                 creditDefaultSwapIDRef_ = creditDefaultSwapNode.Attributes["id"].Value;
                 CreditDefaultSwap ob = new CreditDefaultSwap(creditDefaultSwapNode);
                 IDManager.SetID(creditDefaultSwapIDRef_, ob);
             }
             else if (creditDefaultSwapNode.Attributes["href"] != null)
             {
                 creditDefaultSwapIDRef_ = creditDefaultSwapNode.Attributes["href"].Value;
             }
             else
             {
                 creditDefaultSwap_ = new CreditDefaultSwap(creditDefaultSwapNode);
             }
         }
         else
         {
             creditDefaultSwap_ = new CreditDefaultSwap(creditDefaultSwapNode);
         }
     }
     
 
 }
 public Excel_puttableOption(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode optionTypeNode = xmlNode.SelectSingleNode("optionType");
     
     if (optionTypeNode != null)
     {
         if (optionTypeNode.Attributes["href"] != null || optionTypeNode.Attributes["id"] != null) 
         {
             if (optionTypeNode.Attributes["id"] != null) 
             {
                 optionTypeIDRef_ = optionTypeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(optionTypeNode);
                 IDManager.SetID(optionTypeIDRef_, ob);
             }
             else if (optionTypeNode.Attributes["href"] != null)
             {
                 optionTypeIDRef_ = optionTypeNode.Attributes["href"].Value;
             }
             else
             {
                 optionType_ = new XsdTypeToken(optionTypeNode);
             }
         }
         else
         {
             optionType_ = new XsdTypeToken(optionTypeNode);
         }
     }
     
 
 }
 public Method(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 monteNode = xmlNode.SelectSingleNode("monte");
     
     if (monteNode != null)
     {
         if (monteNode.Attributes["href"] != null || monteNode.Attributes["id"] != null) 
         {
             if (monteNode.Attributes["id"] != null) 
             {
                 monteIDRef_ = monteNode.Attributes["id"].Value;
                 Monte ob = new Monte(monteNode);
                 IDManager.SetID(monteIDRef_, ob);
             }
             else if (monteNode.Attributes["href"] != null)
             {
                 monteIDRef_ = monteNode.Attributes["href"].Value;
             }
             else
             {
                 monte_ = new Monte(monteNode);
             }
         }
         else
         {
             monte_ = new Monte(monteNode);
         }
     }
     
 
 }
Ejemplo n.º 23
0
 public Tenor(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);
         }
     }
     
 
 }
 public Excel_referenceCal_ID(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");
     
     if (excel_typeNode != null)
     {
         if (excel_typeNode.Attributes["href"] != null || excel_typeNode.Attributes["id"] != null) 
         {
             if (excel_typeNode.Attributes["id"] != null) 
             {
                 excel_typeIDRef_ = excel_typeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(excel_typeNode);
                 IDManager.SetID(excel_typeIDRef_, ob);
             }
             else if (excel_typeNode.Attributes["href"] != null)
             {
                 excel_typeIDRef_ = excel_typeNode.Attributes["href"].Value;
             }
             else
             {
                 excel_type_ = new XsdTypeToken(excel_typeNode);
             }
         }
         else
         {
             excel_type_ = new XsdTypeToken(excel_typeNode);
         }
     }
     
 
     XmlNode excel_referSimpleCalculationNode = xmlNode.SelectSingleNode("excel_referSimpleCalculation");
     
     if (excel_referSimpleCalculationNode != null)
     {
         if (excel_referSimpleCalculationNode.Attributes["href"] != null || excel_referSimpleCalculationNode.Attributes["id"] != null) 
         {
             if (excel_referSimpleCalculationNode.Attributes["id"] != null) 
             {
                 excel_referSimpleCalculationIDRef_ = excel_referSimpleCalculationNode.Attributes["id"].Value;
                 Excel_referSimpleCalculation ob = new Excel_referSimpleCalculation(excel_referSimpleCalculationNode);
                 IDManager.SetID(excel_referSimpleCalculationIDRef_, ob);
             }
             else if (excel_referSimpleCalculationNode.Attributes["href"] != null)
             {
                 excel_referSimpleCalculationIDRef_ = excel_referSimpleCalculationNode.Attributes["href"].Value;
             }
             else
             {
                 excel_referSimpleCalculation_ = new Excel_referSimpleCalculation(excel_referSimpleCalculationNode);
             }
         }
         else
         {
             excel_referSimpleCalculation_ = new Excel_referSimpleCalculation(excel_referSimpleCalculationNode);
         }
     }
     
 
 }
 public IdentityReferenceCal(XmlNode xmlNode)
 : base(xmlNode)
 {
     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);
         }
     }
     
 
     XmlNode fixingDateInfoNode = xmlNode.SelectSingleNode("fixingDateInfo");
     
     if (fixingDateInfoNode != null)
     {
         if (fixingDateInfoNode.Attributes["href"] != null || fixingDateInfoNode.Attributes["id"] != null) 
         {
             if (fixingDateInfoNode.Attributes["id"] != null) 
             {
                 fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["id"].Value;
                 FixingDateInfo ob = new FixingDateInfo(fixingDateInfoNode);
                 IDManager.SetID(fixingDateInfoIDRef_, ob);
             }
             else if (fixingDateInfoNode.Attributes["href"] != null)
             {
                 fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["href"].Value;
             }
             else
             {
                 fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode);
             }
         }
         else
         {
             fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode);
         }
     }
     
 
 }
        public RefVariableReferenceCal(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode refNameNode = xmlNode.SelectSingleNode("refName");

            if (refNameNode != null)
            {
                if (refNameNode.Attributes["href"] != null || refNameNode.Attributes["id"] != null)
                {
                    if (refNameNode.Attributes["id"] != null)
                    {
                        refNameIDRef_ = refNameNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(refNameNode);
                        IDManager.SetID(refNameIDRef_, ob);
                    }
                    else if (refNameNode.Attributes["href"] != null)
                    {
                        refNameIDRef_ = refNameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        refName_ = new XsdTypeToken(refNameNode);
                    }
                }
                else
                {
                    refName_ = new XsdTypeToken(refNameNode);
                }
            }
        }
 public Excel_referenceSet(XmlNode xmlNode)
 : base(xmlNode)
 {
     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);
         }
     }
     
 
     XmlNode usingTFNode = xmlNode.SelectSingleNode("usingTF");
     
     if (usingTFNode != null)
     {
         if (usingTFNode.Attributes["href"] != null || usingTFNode.Attributes["id"] != null) 
         {
             if (usingTFNode.Attributes["id"] != null) 
             {
                 usingTFIDRef_ = usingTFNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(usingTFNode);
                 IDManager.SetID(usingTFIDRef_, ob);
             }
             else if (usingTFNode.Attributes["href"] != null)
             {
                 usingTFIDRef_ = usingTFNode.Attributes["href"].Value;
             }
             else
             {
                 usingTF_ = new XsdTypeToken(usingTFNode);
             }
         }
         else
         {
             usingTF_ = new XsdTypeToken(usingTFNode);
         }
     }
     
 
 }
        public Variable(XmlNode xmlNode)
        {
            XmlNode symbolNameNode = xmlNode.SelectSingleNode("symbolName");

            if (symbolNameNode != null)
            {
                if (symbolNameNode.Attributes["href"] != null || symbolNameNode.Attributes["id"] != null)
                {
                    if (symbolNameNode.Attributes["id"] != null)
                    {
                        symbolNameIDRef_ = symbolNameNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(symbolNameNode);
                        IDManager.SetID(symbolNameIDRef_, ob);
                    }
                    else if (symbolNameNode.Attributes["href"] != null)
                    {
                        symbolNameIDRef_ = symbolNameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        symbolName_ = new XsdTypeToken(symbolNameNode);
                    }
                }
                else
                {
                    symbolName_ = new XsdTypeToken(symbolNameNode);
                }
            }
        }
        public General_TerminationEventDetail_target(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode targetNode = xmlNode.SelectSingleNode("target");

            if (targetNode != null)
            {
                if (targetNode.Attributes["href"] != null || targetNode.Attributes["id"] != null)
                {
                    if (targetNode.Attributes["id"] != null)
                    {
                        targetIDRef_ = targetNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(targetNode);
                        IDManager.SetID(targetIDRef_, ob);
                    }
                    else if (targetNode.Attributes["href"] != null)
                    {
                        targetIDRef_ = targetNode.Attributes["href"].Value;
                    }
                    else
                    {
                        target_ = new XsdTypeToken(targetNode);
                    }
                }
                else
                {
                    target_ = new XsdTypeToken(targetNode);
                }
            }
        }
 public InterestRateIndex(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode tenorNode = xmlNode.SelectSingleNode("tenor");
     
     if (tenorNode != null)
     {
         if (tenorNode.Attributes["href"] != null || tenorNode.Attributes["id"] != null) 
         {
             if (tenorNode.Attributes["id"] != null) 
             {
                 tenorIDRef_ = tenorNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(tenorNode);
                 IDManager.SetID(tenorIDRef_, ob);
             }
             else if (tenorNode.Attributes["href"] != null)
             {
                 tenorIDRef_ = tenorNode.Attributes["href"].Value;
             }
             else
             {
                 tenor_ = new XsdTypeToken(tenorNode);
             }
         }
         else
         {
             tenor_ = new XsdTypeToken(tenorNode);
         }
     }
     
 
 }
        public ClearQueue(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode actionTypeNode = xmlNode.SelectSingleNode("actionType");

            if (actionTypeNode != null)
            {
                if (actionTypeNode.Attributes["href"] != null || actionTypeNode.Attributes["id"] != null)
                {
                    if (actionTypeNode.Attributes["id"] != null)
                    {
                        actionTypeIDRef_ = actionTypeNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(actionTypeNode);
                        IDManager.SetID(actionTypeIDRef_, ob);
                    }
                    else if (actionTypeNode.Attributes["href"] != null)
                    {
                        actionTypeIDRef_ = actionTypeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        actionType_ = new XsdTypeToken(actionTypeNode);
                    }
                }
                else
                {
                    actionType_ = new XsdTypeToken(actionTypeNode);
                }
            }
        }
 public LogPrint(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode generatedPathLogNode = xmlNode.SelectSingleNode("generatedPathLog");
     
     if (generatedPathLogNode != null)
     {
         if (generatedPathLogNode.Attributes["href"] != null || generatedPathLogNode.Attributes["id"] != null) 
         {
             if (generatedPathLogNode.Attributes["id"] != null) 
             {
                 generatedPathLogIDRef_ = generatedPathLogNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(generatedPathLogNode);
                 IDManager.SetID(generatedPathLogIDRef_, ob);
             }
             else if (generatedPathLogNode.Attributes["href"] != null)
             {
                 generatedPathLogIDRef_ = generatedPathLogNode.Attributes["href"].Value;
             }
             else
             {
                 generatedPathLog_ = new XsdTypeToken(generatedPathLogNode);
             }
         }
         else
         {
             generatedPathLog_ = new XsdTypeToken(generatedPathLogNode);
         }
     }
     
 
     XmlNode payoffCalcLogNode = xmlNode.SelectSingleNode("payoffCalcLog");
     
     if (payoffCalcLogNode != null)
     {
         if (payoffCalcLogNode.Attributes["href"] != null || payoffCalcLogNode.Attributes["id"] != null) 
         {
             if (payoffCalcLogNode.Attributes["id"] != null) 
             {
                 payoffCalcLogIDRef_ = payoffCalcLogNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(payoffCalcLogNode);
                 IDManager.SetID(payoffCalcLogIDRef_, ob);
             }
             else if (payoffCalcLogNode.Attributes["href"] != null)
             {
                 payoffCalcLogIDRef_ = payoffCalcLogNode.Attributes["href"].Value;
             }
             else
             {
                 payoffCalcLog_ = new XsdTypeToken(payoffCalcLogNode);
             }
         }
         else
         {
             payoffCalcLog_ = new XsdTypeToken(payoffCalcLogNode);
         }
     }
     
 
 }
        public Excel_noneOption(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode optionTypeNode = xmlNode.SelectSingleNode("optionType");

            if (optionTypeNode != null)
            {
                if (optionTypeNode.Attributes["href"] != null || optionTypeNode.Attributes["id"] != null)
                {
                    if (optionTypeNode.Attributes["id"] != null)
                    {
                        optionTypeIDRef_ = optionTypeNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(optionTypeNode);
                        IDManager.SetID(optionTypeIDRef_, ob);
                    }
                    else if (optionTypeNode.Attributes["href"] != null)
                    {
                        optionTypeIDRef_ = optionTypeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        optionType_ = new XsdTypeToken(optionTypeNode);
                    }
                }
                else
                {
                    optionType_ = new XsdTypeToken(optionTypeNode);
                }
            }
        }
 public RateCouponCalculation(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 fixedRateCouponCalculationNode = xmlNode.SelectSingleNode("fixedRateCouponCalculation");
     
     if (fixedRateCouponCalculationNode != null)
     {
         if (fixedRateCouponCalculationNode.Attributes["href"] != null || fixedRateCouponCalculationNode.Attributes["id"] != null) 
         {
             if (fixedRateCouponCalculationNode.Attributes["id"] != null) 
             {
                 fixedRateCouponCalculationIDRef_ = fixedRateCouponCalculationNode.Attributes["id"].Value;
                 FixedRateCouponCalculation ob = new FixedRateCouponCalculation(fixedRateCouponCalculationNode);
                 IDManager.SetID(fixedRateCouponCalculationIDRef_, ob);
             }
             else if (fixedRateCouponCalculationNode.Attributes["href"] != null)
             {
                 fixedRateCouponCalculationIDRef_ = fixedRateCouponCalculationNode.Attributes["href"].Value;
             }
             else
             {
                 fixedRateCouponCalculation_ = new FixedRateCouponCalculation(fixedRateCouponCalculationNode);
             }
         }
         else
         {
             fixedRateCouponCalculation_ = new FixedRateCouponCalculation(fixedRateCouponCalculationNode);
         }
     }
     
 
 }
 public PricingParameter(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 methodNode = xmlNode.SelectSingleNode("method");
     
     if (methodNode != null)
     {
         if (methodNode.Attributes["href"] != null || methodNode.Attributes["id"] != null) 
         {
             if (methodNode.Attributes["id"] != null) 
             {
                 methodIDRef_ = methodNode.Attributes["id"].Value;
                 Method ob = new Method(methodNode);
                 IDManager.SetID(methodIDRef_, ob);
             }
             else if (methodNode.Attributes["href"] != null)
             {
                 methodIDRef_ = methodNode.Attributes["href"].Value;
             }
             else
             {
                 method_ = new Method(methodNode);
             }
         }
         else
         {
             method_ = new Method(methodNode);
         }
     }
     
 
 }
 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 PreDefinedVariableInfo(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode refInstanceNameNode = xmlNode.SelectSingleNode("refInstanceName");
     
     if (refInstanceNameNode != null)
     {
         if (refInstanceNameNode.Attributes["href"] != null || refInstanceNameNode.Attributes["id"] != null) 
         {
             if (refInstanceNameNode.Attributes["id"] != null) 
             {
                 refInstanceNameIDRef_ = refInstanceNameNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(refInstanceNameNode);
                 IDManager.SetID(refInstanceNameIDRef_, ob);
             }
             else if (refInstanceNameNode.Attributes["href"] != null)
             {
                 refInstanceNameIDRef_ = refInstanceNameNode.Attributes["href"].Value;
             }
             else
             {
                 refInstanceName_ = new XsdTypeToken(refInstanceNameNode);
             }
         }
         else
         {
             refInstanceName_ = new XsdTypeToken(refInstanceNameNode);
         }
     }
     
 
     XmlNode fixingInformationNode = xmlNode.SelectSingleNode("fixingInformation");
     
     if (fixingInformationNode != null)
     {
         if (fixingInformationNode.Attributes["href"] != null || fixingInformationNode.Attributes["id"] != null) 
         {
             if (fixingInformationNode.Attributes["id"] != null) 
             {
                 fixingInformationIDRef_ = fixingInformationNode.Attributes["id"].Value;
                 FixingInformation ob = new FixingInformation(fixingInformationNode);
                 IDManager.SetID(fixingInformationIDRef_, ob);
             }
             else if (fixingInformationNode.Attributes["href"] != null)
             {
                 fixingInformationIDRef_ = fixingInformationNode.Attributes["href"].Value;
             }
             else
             {
                 fixingInformation_ = new FixingInformation(fixingInformationNode);
             }
         }
         else
         {
             fixingInformation_ = new FixingInformation(fixingInformationNode);
         }
     }
     
 
 }
 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 CouponPart(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode payRecieveNode = xmlNode.SelectSingleNode("payRecieve");

            if (payRecieveNode != null)
            {
                if (payRecieveNode.Attributes["href"] != null || payRecieveNode.Attributes["id"] != null)
                {
                    if (payRecieveNode.Attributes["id"] != null)
                    {
                        payRecieveIDRef_ = payRecieveNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(payRecieveNode);
                        IDManager.SetID(payRecieveIDRef_, ob);
                    }
                    else if (payRecieveNode.Attributes["href"] != null)
                    {
                        payRecieveIDRef_ = payRecieveNode.Attributes["href"].Value;
                    }
                    else
                    {
                        payRecieve_ = new XsdTypeToken(payRecieveNode);
                    }
                }
                else
                {
                    payRecieve_ = new XsdTypeToken(payRecieveNode);
                }
            }
        }
 public PathInfo(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 urlNode = xmlNode.SelectSingleNode("url");
     
     if (urlNode != null)
     {
         if (urlNode.Attributes["href"] != null || urlNode.Attributes["id"] != null) 
         {
             if (urlNode.Attributes["id"] != null) 
             {
                 urlIDRef_ = urlNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(urlNode);
                 IDManager.SetID(urlIDRef_, ob);
             }
             else if (urlNode.Attributes["href"] != null)
             {
                 urlIDRef_ = urlNode.Attributes["href"].Value;
             }
             else
             {
                 url_ = new XsdTypeToken(urlNode);
             }
         }
         else
         {
             url_ = new XsdTypeToken(urlNode);
         }
     }
     
 
 }
Ejemplo n.º 41
0
        public General_scheduleDetail_fixedCoupon(XmlNode xmlNode)
            : base(xmlNode)
        {
            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;
                        XsdTypeToken ob = new XsdTypeToken(fixedRateNode);
                        IDManager.SetID(fixedRateIDRef_, ob);
                    }
                    else if (fixedRateNode.Attributes["href"] != null)
                    {
                        fixedRateIDRef_ = fixedRateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fixedRate_ = new XsdTypeToken(fixedRateNode);
                    }
                }
                else
                {
                    fixedRate_ = new XsdTypeToken(fixedRateNode);
                }
            }
        }
 public General_scheduleDetail_fixedAmount(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode fixedAmountNode = xmlNode.SelectSingleNode("fixedAmount");
     
     if (fixedAmountNode != null)
     {
         if (fixedAmountNode.Attributes["href"] != null || fixedAmountNode.Attributes["id"] != null) 
         {
             if (fixedAmountNode.Attributes["id"] != null) 
             {
                 fixedAmountIDRef_ = fixedAmountNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(fixedAmountNode);
                 IDManager.SetID(fixedAmountIDRef_, ob);
             }
             else if (fixedAmountNode.Attributes["href"] != null)
             {
                 fixedAmountIDRef_ = fixedAmountNode.Attributes["href"].Value;
             }
             else
             {
                 fixedAmount_ = new XsdTypeToken(fixedAmountNode);
             }
         }
         else
         {
             fixedAmount_ = new XsdTypeToken(fixedAmountNode);
         }
     }
     
 
 }
 public UnderlyingInformation(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 indexUnderInfoNode = xmlNode.SelectSingleNode("indexUnderInfo");
     
     if (indexUnderInfoNode != null)
     {
         if (indexUnderInfoNode.Attributes["href"] != null || indexUnderInfoNode.Attributes["id"] != null) 
         {
             if (indexUnderInfoNode.Attributes["id"] != null) 
             {
                 indexUnderInfoIDRef_ = indexUnderInfoNode.Attributes["id"].Value;
                 IndexUnderInfo ob = new IndexUnderInfo(indexUnderInfoNode);
                 IDManager.SetID(indexUnderInfoIDRef_, ob);
             }
             else if (indexUnderInfoNode.Attributes["href"] != null)
             {
                 indexUnderInfoIDRef_ = indexUnderInfoNode.Attributes["href"].Value;
             }
             else
             {
                 indexUnderInfo_ = new IndexUnderInfo(indexUnderInfoNode);
             }
         }
         else
         {
             indexUnderInfo_ = new IndexUnderInfo(indexUnderInfoNode);
         }
     }
     
 
 }
 public Variable(XmlNode xmlNode)
 {
     XmlNode symbolNameNode = xmlNode.SelectSingleNode("symbolName");
     
     if (symbolNameNode != null)
     {
         if (symbolNameNode.Attributes["href"] != null || symbolNameNode.Attributes["id"] != null) 
         {
             if (symbolNameNode.Attributes["id"] != null) 
             {
                 symbolNameIDRef_ = symbolNameNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(symbolNameNode);
                 IDManager.SetID(symbolNameIDRef_, ob);
             }
             else if (symbolNameNode.Attributes["href"] != null)
             {
                 symbolNameIDRef_ = symbolNameNode.Attributes["href"].Value;
             }
             else
             {
                 symbolName_ = new XsdTypeToken(symbolNameNode);
             }
         }
         else
         {
             symbolName_ = new XsdTypeToken(symbolNameNode);
         }
     }
     
 
 }
        public Function(XmlNode xmlNode)
        {
            XmlNodeList nameNodeList = xmlNode.SelectNodes("name");

            if (nameNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in nameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        nameIDRef = item.Attributes["id"].Name;
                        XsdTypeToken ob = XsdTypeToken();
                        IDManager.SetID(nameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        nameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        name = new XsdTypeToken(item);
                    }
                }
            }


            XmlNodeList truefalseNodeList = xmlNode.SelectNodes("truefalse");

            if (truefalseNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in truefalseNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        truefalseIDRef = item.Attributes["id"].Name;
                        XsdTypeBoolean ob = XsdTypeBoolean();
                        IDManager.SetID(truefalseIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        truefalseIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        truefalse = new XsdTypeBoolean(item);
                    }
                }
            }
        }
        public PathInfo(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 urlNode = xmlNode.SelectSingleNode("url");

            if (urlNode != null)
            {
                if (urlNode.Attributes["href"] != null || urlNode.Attributes["id"] != null)
                {
                    if (urlNode.Attributes["id"] != null)
                    {
                        urlIDRef_ = urlNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(urlNode);
                        IDManager.SetID(urlIDRef_, ob);
                    }
                    else if (urlNode.Attributes["href"] != null)
                    {
                        urlIDRef_ = urlNode.Attributes["href"].Value;
                    }
                    else
                    {
                        url_ = new XsdTypeToken(urlNode);
                    }
                }
                else
                {
                    url_ = new XsdTypeToken(urlNode);
                }
            }
        }
        public Excel_hestonModel(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode currentValueNode = xmlNode.SelectSingleNode("currentValue");

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


            XmlNode vba_descriptionNode = xmlNode.SelectSingleNode("vba_description");

            if (vba_descriptionNode != null)
            {
                if (vba_descriptionNode.Attributes["href"] != null || vba_descriptionNode.Attributes["id"] != null)
                {
                    if (vba_descriptionNode.Attributes["id"] != null)
                    {
                        vba_descriptionIDRef_ = vba_descriptionNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(vba_descriptionNode);
                        IDManager.SetID(vba_descriptionIDRef_, ob);
                    }
                    else if (vba_descriptionNode.Attributes["href"] != null)
                    {
                        vba_descriptionIDRef_ = vba_descriptionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        vba_description_ = new XsdTypeToken(vba_descriptionNode);
                    }
                }
                else
                {
                    vba_description_ = new XsdTypeToken(vba_descriptionNode);
                }
            }
        }
        public Excel_vanillaFloatingBond_subtype(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");

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


            XmlNode excel_vanillaFloatingBond_simpleNode = xmlNode.SelectSingleNode("excel_vanillaFloatingBond_simple");

            if (excel_vanillaFloatingBond_simpleNode != null)
            {
                if (excel_vanillaFloatingBond_simpleNode.Attributes["href"] != null || excel_vanillaFloatingBond_simpleNode.Attributes["id"] != null)
                {
                    if (excel_vanillaFloatingBond_simpleNode.Attributes["id"] != null)
                    {
                        excel_vanillaFloatingBond_simpleIDRef_ = excel_vanillaFloatingBond_simpleNode.Attributes["id"].Value;
                        Excel_vanillaFloatingBond_simple ob = new Excel_vanillaFloatingBond_simple(excel_vanillaFloatingBond_simpleNode);
                        IDManager.SetID(excel_vanillaFloatingBond_simpleIDRef_, ob);
                    }
                    else if (excel_vanillaFloatingBond_simpleNode.Attributes["href"] != null)
                    {
                        excel_vanillaFloatingBond_simpleIDRef_ = excel_vanillaFloatingBond_simpleNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_vanillaFloatingBond_simple_ = new Excel_vanillaFloatingBond_simple(excel_vanillaFloatingBond_simpleNode);
                    }
                }
                else
                {
                    excel_vanillaFloatingBond_simple_ = new Excel_vanillaFloatingBond_simple(excel_vanillaFloatingBond_simpleNode);
                }
            }
        }
        public Excel_dualBarrierEventCal(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode lowerRngNode = xmlNode.SelectSingleNode("lowerRng");

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


            XmlNode upperRngNode = xmlNode.SelectSingleNode("upperRng");

            if (upperRngNode != null)
            {
                if (upperRngNode.Attributes["href"] != null || upperRngNode.Attributes["id"] != null)
                {
                    if (upperRngNode.Attributes["id"] != null)
                    {
                        upperRngIDRef_ = upperRngNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(upperRngNode);
                        IDManager.SetID(upperRngIDRef_, ob);
                    }
                    else if (upperRngNode.Attributes["href"] != null)
                    {
                        upperRngIDRef_ = upperRngNode.Attributes["href"].Value;
                    }
                    else
                    {
                        upperRng_ = new XsdTypeToken(upperRngNode);
                    }
                }
                else
                {
                    upperRng_ = new XsdTypeToken(upperRngNode);
                }
            }
        }
Ejemplo n.º 50
0
        public DailyReturnReferenceCal(XmlNode xmlNode)
            : base(xmlNode)
        {
            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);
                }
            }


            XmlNode fixingDateInfoNode = xmlNode.SelectSingleNode("fixingDateInfo");

            if (fixingDateInfoNode != null)
            {
                if (fixingDateInfoNode.Attributes["href"] != null || fixingDateInfoNode.Attributes["id"] != null)
                {
                    if (fixingDateInfoNode.Attributes["id"] != null)
                    {
                        fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["id"].Value;
                        FixingDateInfo ob = new FixingDateInfo(fixingDateInfoNode);
                        IDManager.SetID(fixingDateInfoIDRef_, ob);
                    }
                    else if (fixingDateInfoNode.Attributes["href"] != null)
                    {
                        fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode);
                    }
                }
                else
                {
                    fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode);
                }
            }
        }
Ejemplo n.º 51
0
        public Excel_fixedBond_subtype(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");

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


            XmlNode excel_fixedBond_constantRateNode = xmlNode.SelectSingleNode("excel_fixedBond_constantRate");

            if (excel_fixedBond_constantRateNode != null)
            {
                if (excel_fixedBond_constantRateNode.Attributes["href"] != null || excel_fixedBond_constantRateNode.Attributes["id"] != null)
                {
                    if (excel_fixedBond_constantRateNode.Attributes["id"] != null)
                    {
                        excel_fixedBond_constantRateIDRef_ = excel_fixedBond_constantRateNode.Attributes["id"].Value;
                        Excel_fixedBond_constantRate ob = new Excel_fixedBond_constantRate(excel_fixedBond_constantRateNode);
                        IDManager.SetID(excel_fixedBond_constantRateIDRef_, ob);
                    }
                    else if (excel_fixedBond_constantRateNode.Attributes["href"] != null)
                    {
                        excel_fixedBond_constantRateIDRef_ = excel_fixedBond_constantRateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_fixedBond_constantRate_ = new Excel_fixedBond_constantRate(excel_fixedBond_constantRateNode);
                    }
                }
                else
                {
                    excel_fixedBond_constantRate_ = new Excel_fixedBond_constantRate(excel_fixedBond_constantRateNode);
                }
            }
        }
        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 PricingResult(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode typeNode = xmlNode.SelectSingleNode("type");

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


            XmlNode commonResultNode = xmlNode.SelectSingleNode("commonResult");

            if (commonResultNode != null)
            {
                if (commonResultNode.Attributes["href"] != null || commonResultNode.Attributes["id"] != null)
                {
                    if (commonResultNode.Attributes["id"] != null)
                    {
                        commonResultIDRef_ = commonResultNode.Attributes["id"].Value;
                        CommonResult ob = new CommonResult(commonResultNode);
                        IDManager.SetID(commonResultIDRef_, ob);
                    }
                    else if (commonResultNode.Attributes["href"] != null)
                    {
                        commonResultIDRef_ = commonResultNode.Attributes["href"].Value;
                    }
                    else
                    {
                        commonResult_ = new CommonResult(commonResultNode);
                    }
                }
                else
                {
                    commonResult_ = new CommonResult(commonResultNode);
                }
            }
        }
Ejemplo n.º 54
0
        public CreditPayoffInfo(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 creditDefaultSwapNode = xmlNode.SelectSingleNode("creditDefaultSwap");

            if (creditDefaultSwapNode != null)
            {
                if (creditDefaultSwapNode.Attributes["href"] != null || creditDefaultSwapNode.Attributes["id"] != null)
                {
                    if (creditDefaultSwapNode.Attributes["id"] != null)
                    {
                        creditDefaultSwapIDRef_ = creditDefaultSwapNode.Attributes["id"].Value;
                        CreditDefaultSwap ob = new CreditDefaultSwap(creditDefaultSwapNode);
                        IDManager.SetID(creditDefaultSwapIDRef_, ob);
                    }
                    else if (creditDefaultSwapNode.Attributes["href"] != null)
                    {
                        creditDefaultSwapIDRef_ = creditDefaultSwapNode.Attributes["href"].Value;
                    }
                    else
                    {
                        creditDefaultSwap_ = new CreditDefaultSwap(creditDefaultSwapNode);
                    }
                }
                else
                {
                    creditDefaultSwap_ = new CreditDefaultSwap(creditDefaultSwapNode);
                }
            }
        }
        public AdditionOper1D(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode constValueNode = xmlNode.SelectSingleNode("constValue");

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


            XmlNode refNameNode = xmlNode.SelectSingleNode("refName");

            if (refNameNode != null)
            {
                if (refNameNode.Attributes["href"] != null || refNameNode.Attributes["id"] != null)
                {
                    if (refNameNode.Attributes["id"] != null)
                    {
                        refNameIDRef_ = refNameNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(refNameNode);
                        IDManager.SetID(refNameIDRef_, ob);
                    }
                    else if (refNameNode.Attributes["href"] != null)
                    {
                        refNameIDRef_ = refNameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        refName_ = new XsdTypeToken(refNameNode);
                    }
                }
                else
                {
                    refName_ = new XsdTypeToken(refNameNode);
                }
            }
        }
        public ResetVariableInfo(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode refInstanceNameNode = xmlNode.SelectSingleNode("refInstanceName");

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


            XmlNode fixingInformationNode = xmlNode.SelectSingleNode("fixingInformation");

            if (fixingInformationNode != null)
            {
                if (fixingInformationNode.Attributes["href"] != null || fixingInformationNode.Attributes["id"] != null)
                {
                    if (fixingInformationNode.Attributes["id"] != null)
                    {
                        fixingInformationIDRef_ = fixingInformationNode.Attributes["id"].Value;
                        FixingInformation ob = new FixingInformation(fixingInformationNode);
                        IDManager.SetID(fixingInformationIDRef_, ob);
                    }
                    else if (fixingInformationNode.Attributes["href"] != null)
                    {
                        fixingInformationIDRef_ = fixingInformationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fixingInformation_ = new FixingInformation(fixingInformationNode);
                    }
                }
                else
                {
                    fixingInformation_ = new FixingInformation(fixingInformationNode);
                }
            }
        }
        public Method(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 monteNode = xmlNode.SelectSingleNode("monte");

            if (monteNode != null)
            {
                if (monteNode.Attributes["href"] != null || monteNode.Attributes["id"] != null)
                {
                    if (monteNode.Attributes["id"] != null)
                    {
                        monteIDRef_ = monteNode.Attributes["id"].Value;
                        Monte ob = new Monte(monteNode);
                        IDManager.SetID(monteIDRef_, ob);
                    }
                    else if (monteNode.Attributes["href"] != null)
                    {
                        monteIDRef_ = monteNode.Attributes["href"].Value;
                    }
                    else
                    {
                        monte_ = new Monte(monteNode);
                    }
                }
                else
                {
                    monte_ = new Monte(monteNode);
                }
            }
        }
Ejemplo n.º 58
0
        public CashFlowInfoResult(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 simpleCashFlowResultNode = xmlNode.SelectSingleNode("simpleCashFlowResult");

            if (simpleCashFlowResultNode != null)
            {
                if (simpleCashFlowResultNode.Attributes["href"] != null || simpleCashFlowResultNode.Attributes["id"] != null)
                {
                    if (simpleCashFlowResultNode.Attributes["id"] != null)
                    {
                        simpleCashFlowResultIDRef_ = simpleCashFlowResultNode.Attributes["id"].Value;
                        SimpleCashFlowResult ob = new SimpleCashFlowResult(simpleCashFlowResultNode);
                        IDManager.SetID(simpleCashFlowResultIDRef_, ob);
                    }
                    else if (simpleCashFlowResultNode.Attributes["href"] != null)
                    {
                        simpleCashFlowResultIDRef_ = simpleCashFlowResultNode.Attributes["href"].Value;
                    }
                    else
                    {
                        simpleCashFlowResult_ = new SimpleCashFlowResult(simpleCashFlowResultNode);
                    }
                }
                else
                {
                    simpleCashFlowResult_ = new SimpleCashFlowResult(simpleCashFlowResultNode);
                }
            }
        }
        public RateCouponCalculation(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 fixedRateCouponCalculationNode = xmlNode.SelectSingleNode("fixedRateCouponCalculation");

            if (fixedRateCouponCalculationNode != null)
            {
                if (fixedRateCouponCalculationNode.Attributes["href"] != null || fixedRateCouponCalculationNode.Attributes["id"] != null)
                {
                    if (fixedRateCouponCalculationNode.Attributes["id"] != null)
                    {
                        fixedRateCouponCalculationIDRef_ = fixedRateCouponCalculationNode.Attributes["id"].Value;
                        FixedRateCouponCalculation ob = new FixedRateCouponCalculation(fixedRateCouponCalculationNode);
                        IDManager.SetID(fixedRateCouponCalculationIDRef_, ob);
                    }
                    else if (fixedRateCouponCalculationNode.Attributes["href"] != null)
                    {
                        fixedRateCouponCalculationIDRef_ = fixedRateCouponCalculationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fixedRateCouponCalculation_ = new FixedRateCouponCalculation(fixedRateCouponCalculationNode);
                    }
                }
                else
                {
                    fixedRateCouponCalculation_ = new FixedRateCouponCalculation(fixedRateCouponCalculationNode);
                }
            }
        }
Ejemplo n.º 60
0
        public Excel_hifive_subtype(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");

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


            XmlNode excel_hifive_stepDown_kiNode = xmlNode.SelectSingleNode("excel_hifive_stepDown_ki");

            if (excel_hifive_stepDown_kiNode != null)
            {
                if (excel_hifive_stepDown_kiNode.Attributes["href"] != null || excel_hifive_stepDown_kiNode.Attributes["id"] != null)
                {
                    if (excel_hifive_stepDown_kiNode.Attributes["id"] != null)
                    {
                        excel_hifive_stepDown_kiIDRef_ = excel_hifive_stepDown_kiNode.Attributes["id"].Value;
                        Excel_hifive_stepDown_ki ob = new Excel_hifive_stepDown_ki(excel_hifive_stepDown_kiNode);
                        IDManager.SetID(excel_hifive_stepDown_kiIDRef_, ob);
                    }
                    else if (excel_hifive_stepDown_kiNode.Attributes["href"] != null)
                    {
                        excel_hifive_stepDown_kiIDRef_ = excel_hifive_stepDown_kiNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_hifive_stepDown_ki_ = new Excel_hifive_stepDown_ki(excel_hifive_stepDown_kiNode);
                    }
                }
                else
                {
                    excel_hifive_stepDown_ki_ = new Excel_hifive_stepDown_ki(excel_hifive_stepDown_kiNode);
                }
            }
        }