public NotionalValue(XmlNode xmlNode) { XmlNode notionalAmountNode = xmlNode.SelectSingleNode("notionalAmount"); if (notionalAmountNode != null) { if (notionalAmountNode.Attributes["href"] != null || notionalAmountNode.Attributes["id"] != null) { if (notionalAmountNode.Attributes["id"] != null) { notionalAmountIDRef_ = notionalAmountNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(notionalAmountNode); IDManager.SetID(notionalAmountIDRef_, ob); } else if (notionalAmountNode.Attributes["href"] != null) { notionalAmountIDRef_ = notionalAmountNode.Attributes["href"].Value; } else { notionalAmount_ = new XsdTypeDecimal(notionalAmountNode); } } else { notionalAmount_ = new XsdTypeDecimal(notionalAmountNode); } } }
public Step(XmlNode xmlNode) : base(xmlNode) { XmlNode stepValueNode = xmlNode.SelectSingleNode("stepValue"); if (stepValueNode != null) { if (stepValueNode.Attributes["href"] != null || stepValueNode.Attributes["id"] != null) { if (stepValueNode.Attributes["id"] != null) { stepValueIDRef_ = stepValueNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(stepValueNode); IDManager.SetID(stepValueIDRef_, ob); } else if (stepValueNode.Attributes["href"] != null) { stepValueIDRef_ = stepValueNode.Attributes["href"].Value; } else { stepValue_ = new XsdTypeDecimal(stepValueNode); } } else { stepValue_ = new XsdTypeDecimal(stepValueNode); } } }
public Money(XmlNode xmlNode) : base(xmlNode) { XmlNodeList amountNodeList = xmlNode.SelectNodes("amount"); if (amountNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in amountNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { amountIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(amountIDRef, ob); } else if (item.Attributes.ToString() == "href") { amountIDRef = item.Attributes["href"].Name; } else { amount = new XsdTypeDecimal(item); } } } }
public CommoditySpread(XmlNode xmlNode) : base(xmlNode) { XmlNodeList spreadConversionFactorNodeList = xmlNode.SelectNodes("spreadConversionFactor"); if (spreadConversionFactorNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in spreadConversionFactorNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { spreadConversionFactorIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(spreadConversionFactorIDRef, ob); } else if (item.Attributes.ToString() == "href") { spreadConversionFactorIDRef = item.Attributes["href"].Name; } else { spreadConversionFactor = new XsdTypeDecimal(item); } } } XmlNodeList spreadUnitNodeList = xmlNode.SelectNodes("spreadUnit"); if (spreadUnitNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in spreadUnitNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { spreadUnitIDRef = item.Attributes["id"].Name; QuantityUnit ob = QuantityUnit(); IDManager.SetID(spreadUnitIDRef, ob); } else if (item.Attributes.ToString() == "href") { spreadUnitIDRef = item.Attributes["href"].Name; } else { spreadUnit = new QuantityUnit(item); } } } }
public IndexChange(XmlNode xmlNode) : base(xmlNode) { XmlNode indexFactorNode = xmlNode.SelectSingleNode("indexFactor"); if (indexFactorNode != null) { if (indexFactorNode.Attributes["href"] != null || indexFactorNode.Attributes["id"] != null) { if (indexFactorNode.Attributes["id"] != null) { indexFactorIDRef_ = indexFactorNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(indexFactorNode); IDManager.SetID(indexFactorIDRef_, ob); } else if (indexFactorNode.Attributes["href"] != null) { indexFactorIDRef_ = indexFactorNode.Attributes["href"].Value; } else { indexFactor_ = new XsdTypeDecimal(indexFactorNode); } } else { indexFactor_ = new XsdTypeDecimal(indexFactorNode); } } XmlNode factoredCalculationAmountNode = xmlNode.SelectSingleNode("factoredCalculationAmount"); if (factoredCalculationAmountNode != null) { if (factoredCalculationAmountNode.Attributes["href"] != null || factoredCalculationAmountNode.Attributes["id"] != null) { if (factoredCalculationAmountNode.Attributes["id"] != null) { factoredCalculationAmountIDRef_ = factoredCalculationAmountNode.Attributes["id"].Value; Money ob = new Money(factoredCalculationAmountNode); IDManager.SetID(factoredCalculationAmountIDRef_, ob); } else if (factoredCalculationAmountNode.Attributes["href"] != null) { factoredCalculationAmountIDRef_ = factoredCalculationAmountNode.Attributes["href"].Value; } else { factoredCalculationAmount_ = new Money(factoredCalculationAmountNode); } } else { factoredCalculationAmount_ = new Money(factoredCalculationAmountNode); } } }
public PercentageRule(XmlNode xmlNode) : base(xmlNode) { XmlNode paymentPercentNode = xmlNode.SelectSingleNode("paymentPercent"); if (paymentPercentNode != null) { if (paymentPercentNode.Attributes["href"] != null || paymentPercentNode.Attributes["id"] != null) { if (paymentPercentNode.Attributes["id"] != null) { paymentPercentIDRef_ = paymentPercentNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(paymentPercentNode); IDManager.SetID(paymentPercentIDRef_, ob); } else if (paymentPercentNode.Attributes["href"] != null) { paymentPercentIDRef_ = paymentPercentNode.Attributes["href"].Value; } else { paymentPercent_ = new XsdTypeDecimal(paymentPercentNode); } } else { paymentPercent_ = new XsdTypeDecimal(paymentPercentNode); } } XmlNode notionalAmountReferenceNode = xmlNode.SelectSingleNode("notionalAmountReference"); if (notionalAmountReferenceNode != null) { if (notionalAmountReferenceNode.Attributes["href"] != null || notionalAmountReferenceNode.Attributes["id"] != null) { if (notionalAmountReferenceNode.Attributes["id"] != null) { notionalAmountReferenceIDRef_ = notionalAmountReferenceNode.Attributes["id"].Value; NotionalAmountReference ob = new NotionalAmountReference(notionalAmountReferenceNode); IDManager.SetID(notionalAmountReferenceIDRef_, ob); } else if (notionalAmountReferenceNode.Attributes["href"] != null) { notionalAmountReferenceIDRef_ = notionalAmountReferenceNode.Attributes["href"].Value; } else { notionalAmountReference_ = new NotionalAmountReference(notionalAmountReferenceNode); } } else { notionalAmountReference_ = new NotionalAmountReference(notionalAmountReferenceNode); } } }
public AutomaticExercise(XmlNode xmlNode) { XmlNode thresholdRateNode = xmlNode.SelectSingleNode("thresholdRate"); if (thresholdRateNode != null) { if (thresholdRateNode.Attributes["href"] != null || thresholdRateNode.Attributes["id"] != null) { if (thresholdRateNode.Attributes["id"] != null) { thresholdRateIDRef_ = thresholdRateNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(thresholdRateNode); IDManager.SetID(thresholdRateIDRef_, ob); } else if (thresholdRateNode.Attributes["href"] != null) { thresholdRateIDRef_ = thresholdRateNode.Attributes["href"].Value; } else { thresholdRate_ = new XsdTypeDecimal(thresholdRateNode); } } else { thresholdRate_ = new XsdTypeDecimal(thresholdRateNode); } } }
public AutomaticExercise(XmlNode xmlNode) { XmlNodeList thresholdRateNodeList = xmlNode.SelectNodes("thresholdRate"); if (thresholdRateNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in thresholdRateNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { thresholdRateIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(thresholdRateIDRef, ob); } else if (item.Attributes.ToString() == "href") { thresholdRateIDRef = item.Attributes["href"].Name; } else { thresholdRate = new XsdTypeDecimal(item); } } } }
public PercentageRule(XmlNode xmlNode) : base(xmlNode) { XmlNodeList paymentPercentNodeList = xmlNode.SelectNodes("paymentPercent"); if (paymentPercentNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in paymentPercentNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { paymentPercentIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(paymentPercentIDRef, ob); } else if (item.Attributes.ToString() == "href") { paymentPercentIDRef = item.Attributes["href"].Name; } else { paymentPercent = new XsdTypeDecimal(item); } } } XmlNodeList notionalAmountReferenceNodeList = xmlNode.SelectNodes("notionalAmountReference"); if (notionalAmountReferenceNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in notionalAmountReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { notionalAmountReferenceIDRef = item.Attributes["id"].Name; NotionalAmountReference ob = NotionalAmountReference(); IDManager.SetID(notionalAmountReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { notionalAmountReferenceIDRef = item.Attributes["href"].Name; } else { notionalAmountReference = new NotionalAmountReference(item); } } } }
public IndexChange(XmlNode xmlNode) : base(xmlNode) { XmlNodeList indexFactorNodeList = xmlNode.SelectNodes("indexFactor"); if (indexFactorNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in indexFactorNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { indexFactorIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(indexFactorIDRef, ob); } else if (item.Attributes.ToString() == "href") { indexFactorIDRef = item.Attributes["href"].Name; } else { indexFactor = new XsdTypeDecimal(item); } } } XmlNodeList factoredCalculationAmountNodeList = xmlNode.SelectNodes("factoredCalculationAmount"); if (factoredCalculationAmountNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in factoredCalculationAmountNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { factoredCalculationAmountIDRef = item.Attributes["id"].Name; Money ob = Money(); IDManager.SetID(factoredCalculationAmountIDRef, ob); } else if (item.Attributes.ToString() == "href") { factoredCalculationAmountIDRef = item.Attributes["href"].Name; } else { factoredCalculationAmount = new Money(item); } } } }
public Money(XmlNode xmlNode) : base(xmlNode) { XmlNode amountNode = xmlNode.SelectSingleNode("amount"); if (amountNode != null) { if (amountNode.Attributes["href"] != null || amountNode.Attributes["id"] != null) { if (amountNode.Attributes["id"] != null) { amountIDRef_ = amountNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(amountNode); IDManager.SetID(amountIDRef_, ob); } else if (amountNode.Attributes["href"] != null) { amountIDRef_ = amountNode.Attributes["href"].Value; } else { amount_ = new XsdTypeDecimal(amountNode); } } else { amount_ = new XsdTypeDecimal(amountNode); } } }
public NotionalValue(XmlNode xmlNode) { XmlNodeList notionalAmountNodeList = xmlNode.SelectNodes("notionalAmount"); if (notionalAmountNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in notionalAmountNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { notionalAmountIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(notionalAmountIDRef, ob); } else if (item.Attributes.ToString() == "href") { notionalAmountIDRef = item.Attributes["href"].Name; } else { notionalAmount = new XsdTypeDecimal(item); } } } }
public CommoditySpread(XmlNode xmlNode) : base(xmlNode) { XmlNode spreadConversionFactorNode = xmlNode.SelectSingleNode("spreadConversionFactor"); if (spreadConversionFactorNode != null) { if (spreadConversionFactorNode.Attributes["href"] != null || spreadConversionFactorNode.Attributes["id"] != null) { if (spreadConversionFactorNode.Attributes["id"] != null) { spreadConversionFactorIDRef_ = spreadConversionFactorNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(spreadConversionFactorNode); IDManager.SetID(spreadConversionFactorIDRef_, ob); } else if (spreadConversionFactorNode.Attributes["href"] != null) { spreadConversionFactorIDRef_ = spreadConversionFactorNode.Attributes["href"].Value; } else { spreadConversionFactor_ = new XsdTypeDecimal(spreadConversionFactorNode); } } else { spreadConversionFactor_ = new XsdTypeDecimal(spreadConversionFactorNode); } } XmlNode spreadUnitNode = xmlNode.SelectSingleNode("spreadUnit"); if (spreadUnitNode != null) { if (spreadUnitNode.Attributes["href"] != null || spreadUnitNode.Attributes["id"] != null) { if (spreadUnitNode.Attributes["id"] != null) { spreadUnitIDRef_ = spreadUnitNode.Attributes["id"].Value; QuantityUnit ob = new QuantityUnit(spreadUnitNode); IDManager.SetID(spreadUnitIDRef_, ob); } else if (spreadUnitNode.Attributes["href"] != null) { spreadUnitIDRef_ = spreadUnitNode.Attributes["href"].Value; } else { spreadUnit_ = new QuantityUnit(spreadUnitNode); } } else { spreadUnit_ = new QuantityUnit(spreadUnitNode); } } }
public Step(XmlNode xmlNode) : base(xmlNode) { XmlNodeList stepValueNodeList = xmlNode.SelectNodes("stepValue"); if (stepValueNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in stepValueNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { stepValueIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(stepValueIDRef, ob); } else if (item.Attributes.ToString() == "href") { stepValueIDRef = item.Attributes["href"].Name; } else { stepValue = new XsdTypeDecimal(item); } } } }
public ReferenceLevel(XmlNode xmlNode) { XmlNode amountNode = xmlNode.SelectSingleNode("amount"); if (amountNode != null) { if (amountNode.Attributes["href"] != null || amountNode.Attributes["id"] != null) { if (amountNode.Attributes["id"] != null) { amountIDRef_ = amountNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(amountNode); IDManager.SetID(amountIDRef_, ob); } else if (amountNode.Attributes["href"] != null) { amountIDRef_ = amountNode.Attributes["href"].Value; } else { amount_ = new XsdTypeDecimal(amountNode); } } else { amount_ = new XsdTypeDecimal(amountNode); } } XmlNode referenceLevelUnitNode = xmlNode.SelectSingleNode("referenceLevelUnit"); if (referenceLevelUnitNode != null) { if (referenceLevelUnitNode.Attributes["href"] != null || referenceLevelUnitNode.Attributes["id"] != null) { if (referenceLevelUnitNode.Attributes["id"] != null) { referenceLevelUnitIDRef_ = referenceLevelUnitNode.Attributes["id"].Value; ReferenceLevelUnit ob = new ReferenceLevelUnit(referenceLevelUnitNode); IDManager.SetID(referenceLevelUnitIDRef_, ob); } else if (referenceLevelUnitNode.Attributes["href"] != null) { referenceLevelUnitIDRef_ = referenceLevelUnitNode.Attributes["href"].Value; } else { referenceLevelUnit_ = new ReferenceLevelUnit(referenceLevelUnitNode); } } else { referenceLevelUnit_ = new ReferenceLevelUnit(referenceLevelUnitNode); } } }
public CoalAttributeDecimal(XmlNode xmlNode) { XmlNode standardContentNode = xmlNode.SelectSingleNode("standardContent"); if (standardContentNode != null) { if (standardContentNode.Attributes["href"] != null || standardContentNode.Attributes["id"] != null) { if (standardContentNode.Attributes["id"] != null) { standardContentIDRef_ = standardContentNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(standardContentNode); IDManager.SetID(standardContentIDRef_, ob); } else if (standardContentNode.Attributes["href"] != null) { standardContentIDRef_ = standardContentNode.Attributes["href"].Value; } else { standardContent_ = new XsdTypeDecimal(standardContentNode); } } else { standardContent_ = new XsdTypeDecimal(standardContentNode); } } XmlNode rejectionLimitNode = xmlNode.SelectSingleNode("rejectionLimit"); if (rejectionLimitNode != null) { if (rejectionLimitNode.Attributes["href"] != null || rejectionLimitNode.Attributes["id"] != null) { if (rejectionLimitNode.Attributes["id"] != null) { rejectionLimitIDRef_ = rejectionLimitNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(rejectionLimitNode); IDManager.SetID(rejectionLimitIDRef_, ob); } else if (rejectionLimitNode.Attributes["href"] != null) { rejectionLimitIDRef_ = rejectionLimitNode.Attributes["href"].Value; } else { rejectionLimit_ = new XsdTypeDecimal(rejectionLimitNode); } } else { rejectionLimit_ = new XsdTypeDecimal(rejectionLimitNode); } } }
public NetAndGross(XmlNode xmlNode) { XmlNode netNode = xmlNode.SelectSingleNode("net"); if (netNode != null) { if (netNode.Attributes["href"] != null || netNode.Attributes["id"] != null) { if (netNode.Attributes["id"] != null) { netIDRef_ = netNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(netNode); IDManager.SetID(netIDRef_, ob); } else if (netNode.Attributes["href"] != null) { netIDRef_ = netNode.Attributes["href"].Value; } else { net_ = new XsdTypeDecimal(netNode); } } else { net_ = new XsdTypeDecimal(netNode); } } XmlNode grossNode = xmlNode.SelectSingleNode("gross"); if (grossNode != null) { if (grossNode.Attributes["href"] != null || grossNode.Attributes["id"] != null) { if (grossNode.Attributes["id"] != null) { grossIDRef_ = grossNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(grossNode); IDManager.SetID(grossIDRef_, ob); } else if (grossNode.Attributes["href"] != null) { grossIDRef_ = grossNode.Attributes["href"].Value; } else { gross_ = new XsdTypeDecimal(grossNode); } } else { gross_ = new XsdTypeDecimal(grossNode); } } }
public InstrumentTradeQuantity(XmlNode xmlNode) { XmlNodeList numberNodeList = xmlNode.SelectNodes("number"); if (numberNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in numberNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { numberIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(numberIDRef, ob); } else if (item.Attributes.ToString() == "href") { numberIDRef = item.Attributes["href"].Name; } else { number = new XsdTypeDecimal(item); } } } XmlNodeList nominalNodeList = xmlNode.SelectNodes("nominal"); if (nominalNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in nominalNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { nominalIDRef = item.Attributes["id"].Name; Money ob = Money(); IDManager.SetID(nominalIDRef, ob); } else if (item.Attributes.ToString() == "href") { nominalIDRef = item.Attributes["href"].Name; } else { nominal = new Money(item); } } } }
public WeightedPartialDerivative(XmlNode xmlNode) { XmlNodeList partialDerivativeReferenceNodeList = xmlNode.SelectNodes("partialDerivativeReference"); if (partialDerivativeReferenceNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in partialDerivativeReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { partialDerivativeReferenceIDRef = item.Attributes["id"].Name; PricingParameterDerivativeReference ob = PricingParameterDerivativeReference(); IDManager.SetID(partialDerivativeReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { partialDerivativeReferenceIDRef = item.Attributes["href"].Name; } else { partialDerivativeReference = new PricingParameterDerivativeReference(item); } } } XmlNodeList weightNodeList = xmlNode.SelectNodes("weight"); if (weightNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in weightNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { weightIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(weightIDRef, ob); } else if (item.Attributes.ToString() == "href") { weightIDRef = item.Attributes["href"].Name; } else { weight = new XsdTypeDecimal(item); } } } }
public FxRate(XmlNode xmlNode) { XmlNodeList quotedCurrencyPairNodeList = xmlNode.SelectNodes("quotedCurrencyPair"); if (quotedCurrencyPairNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in quotedCurrencyPairNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { quotedCurrencyPairIDRef = item.Attributes["id"].Name; QuotedCurrencyPair ob = QuotedCurrencyPair(); IDManager.SetID(quotedCurrencyPairIDRef, ob); } else if (item.Attributes.ToString() == "href") { quotedCurrencyPairIDRef = item.Attributes["href"].Name; } else { quotedCurrencyPair = new QuotedCurrencyPair(item); } } } XmlNodeList rateNodeList = xmlNode.SelectNodes("rate"); if (rateNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in rateNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { rateIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(rateIDRef, ob); } else if (item.Attributes.ToString() == "href") { rateIDRef = item.Attributes["href"].Name; } else { rate = new XsdTypeDecimal(item); } } } }
public ParametricAdjustmentPoint(XmlNode xmlNode) { XmlNodeList parameterValueNodeList = xmlNode.SelectNodes("parameterValue"); if (parameterValueNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in parameterValueNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { parameterValueIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(parameterValueIDRef, ob); } else if (item.Attributes.ToString() == "href") { parameterValueIDRef = item.Attributes["href"].Name; } else { parameterValue = new XsdTypeDecimal(item); } } } XmlNodeList adjustmentValueNodeList = xmlNode.SelectNodes("adjustmentValue"); if (adjustmentValueNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in adjustmentValueNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { adjustmentValueIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(adjustmentValueIDRef, ob); } else if (item.Attributes.ToString() == "href") { adjustmentValueIDRef = item.Attributes["href"].Name; } else { adjustmentValue = new XsdTypeDecimal(item); } } } }
public CoalAttributeDecimal(XmlNode xmlNode) { XmlNodeList standardContentNodeList = xmlNode.SelectNodes("standardContent"); if (standardContentNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in standardContentNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { standardContentIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(standardContentIDRef, ob); } else if (item.Attributes.ToString() == "href") { standardContentIDRef = item.Attributes["href"].Name; } else { standardContent = new XsdTypeDecimal(item); } } } XmlNodeList rejectionLimitNodeList = xmlNode.SelectNodes("rejectionLimit"); if (rejectionLimitNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in rejectionLimitNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { rejectionLimitIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(rejectionLimitIDRef, ob); } else if (item.Attributes.ToString() == "href") { rejectionLimitIDRef = item.Attributes["href"].Name; } else { rejectionLimit = new XsdTypeDecimal(item); } } } }
public InterestAccrualsMethod(XmlNode xmlNode) { XmlNodeList floatingRateCalculationNodeList = xmlNode.SelectNodes("floatingRateCalculation"); if (floatingRateCalculationNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in floatingRateCalculationNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { floatingRateCalculationIDRef = item.Attributes["id"].Name; FloatingRateCalculation ob = FloatingRateCalculation(); IDManager.SetID(floatingRateCalculationIDRef, ob); } else if (item.Attributes.ToString() == "href") { floatingRateCalculationIDRef = item.Attributes["href"].Name; } else { floatingRateCalculation = new FloatingRateCalculation(item); } } } XmlNodeList fixedRateNodeList = xmlNode.SelectNodes("fixedRate"); if (fixedRateNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in fixedRateNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { fixedRateIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(fixedRateIDRef, ob); } else if (item.Attributes.ToString() == "href") { fixedRateIDRef = item.Attributes["href"].Name; } else { fixedRate = new XsdTypeDecimal(item); } } } }
public BoundedCorrelation(XmlNode xmlNode) { XmlNode minimumBoundaryPercentNode = xmlNode.SelectSingleNode("minimumBoundaryPercent"); if (minimumBoundaryPercentNode != null) { if (minimumBoundaryPercentNode.Attributes["href"] != null || minimumBoundaryPercentNode.Attributes["id"] != null) { if (minimumBoundaryPercentNode.Attributes["id"] != null) { minimumBoundaryPercentIDRef_ = minimumBoundaryPercentNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(minimumBoundaryPercentNode); IDManager.SetID(minimumBoundaryPercentIDRef_, ob); } else if (minimumBoundaryPercentNode.Attributes["href"] != null) { minimumBoundaryPercentIDRef_ = minimumBoundaryPercentNode.Attributes["href"].Value; } else { minimumBoundaryPercent_ = new XsdTypeDecimal(minimumBoundaryPercentNode); } } else { minimumBoundaryPercent_ = new XsdTypeDecimal(minimumBoundaryPercentNode); } } XmlNode maximumBoundaryPercentNode = xmlNode.SelectSingleNode("maximumBoundaryPercent"); if (maximumBoundaryPercentNode != null) { if (maximumBoundaryPercentNode.Attributes["href"] != null || maximumBoundaryPercentNode.Attributes["id"] != null) { if (maximumBoundaryPercentNode.Attributes["id"] != null) { maximumBoundaryPercentIDRef_ = maximumBoundaryPercentNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(maximumBoundaryPercentNode); IDManager.SetID(maximumBoundaryPercentIDRef_, ob); } else if (maximumBoundaryPercentNode.Attributes["href"] != null) { maximumBoundaryPercentIDRef_ = maximumBoundaryPercentNode.Attributes["href"].Value; } else { maximumBoundaryPercent_ = new XsdTypeDecimal(maximumBoundaryPercentNode); } } else { maximumBoundaryPercent_ = new XsdTypeDecimal(maximumBoundaryPercentNode); } } }
public WeightedPartialDerivative(XmlNode xmlNode) { XmlNode partialDerivativeReferenceNode = xmlNode.SelectSingleNode("partialDerivativeReference"); if (partialDerivativeReferenceNode != null) { if (partialDerivativeReferenceNode.Attributes["href"] != null || partialDerivativeReferenceNode.Attributes["id"] != null) { if (partialDerivativeReferenceNode.Attributes["id"] != null) { partialDerivativeReferenceIDRef_ = partialDerivativeReferenceNode.Attributes["id"].Value; PricingParameterDerivativeReference ob = new PricingParameterDerivativeReference(partialDerivativeReferenceNode); IDManager.SetID(partialDerivativeReferenceIDRef_, ob); } else if (partialDerivativeReferenceNode.Attributes["href"] != null) { partialDerivativeReferenceIDRef_ = partialDerivativeReferenceNode.Attributes["href"].Value; } else { partialDerivativeReference_ = new PricingParameterDerivativeReference(partialDerivativeReferenceNode); } } else { partialDerivativeReference_ = new PricingParameterDerivativeReference(partialDerivativeReferenceNode); } } XmlNode weightNode = xmlNode.SelectSingleNode("weight"); if (weightNode != null) { if (weightNode.Attributes["href"] != null || weightNode.Attributes["id"] != null) { if (weightNode.Attributes["id"] != null) { weightIDRef_ = weightNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(weightNode); IDManager.SetID(weightIDRef_, ob); } else if (weightNode.Attributes["href"] != null) { weightIDRef_ = weightNode.Attributes["href"].Value; } else { weight_ = new XsdTypeDecimal(weightNode); } } else { weight_ = new XsdTypeDecimal(weightNode); } } }
public ParametricAdjustmentPoint(XmlNode xmlNode) { XmlNode parameterValueNode = xmlNode.SelectSingleNode("parameterValue"); if (parameterValueNode != null) { if (parameterValueNode.Attributes["href"] != null || parameterValueNode.Attributes["id"] != null) { if (parameterValueNode.Attributes["id"] != null) { parameterValueIDRef_ = parameterValueNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(parameterValueNode); IDManager.SetID(parameterValueIDRef_, ob); } else if (parameterValueNode.Attributes["href"] != null) { parameterValueIDRef_ = parameterValueNode.Attributes["href"].Value; } else { parameterValue_ = new XsdTypeDecimal(parameterValueNode); } } else { parameterValue_ = new XsdTypeDecimal(parameterValueNode); } } XmlNode adjustmentValueNode = xmlNode.SelectSingleNode("adjustmentValue"); if (adjustmentValueNode != null) { if (adjustmentValueNode.Attributes["href"] != null || adjustmentValueNode.Attributes["id"] != null) { if (adjustmentValueNode.Attributes["id"] != null) { adjustmentValueIDRef_ = adjustmentValueNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(adjustmentValueNode); IDManager.SetID(adjustmentValueIDRef_, ob); } else if (adjustmentValueNode.Attributes["href"] != null) { adjustmentValueIDRef_ = adjustmentValueNode.Attributes["href"].Value; } else { adjustmentValue_ = new XsdTypeDecimal(adjustmentValueNode); } } else { adjustmentValue_ = new XsdTypeDecimal(adjustmentValueNode); } } }
public ResourceLength(XmlNode xmlNode) { XmlNodeList lengthUnitNodeList = xmlNode.SelectNodes("lengthUnit"); if (lengthUnitNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in lengthUnitNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { lengthUnitIDRef = item.Attributes["id"].Name; LengthUnitEnum ob = LengthUnitEnum(); IDManager.SetID(lengthUnitIDRef, ob); } else if (item.Attributes.ToString() == "href") { lengthUnitIDRef = item.Attributes["href"].Name; } else { lengthUnit = new LengthUnitEnum(item); } } } XmlNodeList lengthValueNodeList = xmlNode.SelectNodes("lengthValue"); if (lengthValueNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in lengthValueNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { lengthValueIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(lengthValueIDRef, ob); } else if (item.Attributes.ToString() == "href") { lengthValueIDRef = item.Attributes["href"].Name; } else { lengthValue = new XsdTypeDecimal(item); } } } }
public ResourceLength(XmlNode xmlNode) { XmlNode lengthUnitNode = xmlNode.SelectSingleNode("lengthUnit"); if (lengthUnitNode != null) { if (lengthUnitNode.Attributes["href"] != null || lengthUnitNode.Attributes["id"] != null) { if (lengthUnitNode.Attributes["id"] != null) { lengthUnitIDRef_ = lengthUnitNode.Attributes["id"].Value; LengthUnitEnum ob = new LengthUnitEnum(lengthUnitNode); IDManager.SetID(lengthUnitIDRef_, ob); } else if (lengthUnitNode.Attributes["href"] != null) { lengthUnitIDRef_ = lengthUnitNode.Attributes["href"].Value; } else { lengthUnit_ = new LengthUnitEnum(lengthUnitNode); } } else { lengthUnit_ = new LengthUnitEnum(lengthUnitNode); } } XmlNode lengthValueNode = xmlNode.SelectSingleNode("lengthValue"); if (lengthValueNode != null) { if (lengthValueNode.Attributes["href"] != null || lengthValueNode.Attributes["id"] != null) { if (lengthValueNode.Attributes["id"] != null) { lengthValueIDRef_ = lengthValueNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(lengthValueNode); IDManager.SetID(lengthValueIDRef_, ob); } else if (lengthValueNode.Attributes["href"] != null) { lengthValueIDRef_ = lengthValueNode.Attributes["href"].Value; } else { lengthValue_ = new XsdTypeDecimal(lengthValueNode); } } else { lengthValue_ = new XsdTypeDecimal(lengthValueNode); } } }
public MakeWholeProvisions(XmlNode xmlNode) { XmlNodeList makeWholeDateNodeList = xmlNode.SelectNodes("makeWholeDate"); if (makeWholeDateNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in makeWholeDateNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { makeWholeDateIDRef = item.Attributes["id"].Name; XsdTypeDate ob = XsdTypeDate(); IDManager.SetID(makeWholeDateIDRef, ob); } else if (item.Attributes.ToString() == "href") { makeWholeDateIDRef = item.Attributes["href"].Name; } else { makeWholeDate = new XsdTypeDate(item); } } } XmlNodeList recallSpreadNodeList = xmlNode.SelectNodes("recallSpread"); if (recallSpreadNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in recallSpreadNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { recallSpreadIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(recallSpreadIDRef, ob); } else if (item.Attributes.ToString() == "href") { recallSpreadIDRef = item.Attributes["href"].Name; } else { recallSpread = new XsdTypeDecimal(item); } } } }
public BoundedCorrelation(XmlNode xmlNode) { XmlNodeList minimumBoundaryPercentNodeList = xmlNode.SelectNodes("minimumBoundaryPercent"); if (minimumBoundaryPercentNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in minimumBoundaryPercentNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { minimumBoundaryPercentIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(minimumBoundaryPercentIDRef, ob); } else if (item.Attributes.ToString() == "href") { minimumBoundaryPercentIDRef = item.Attributes["href"].Name; } else { minimumBoundaryPercent = new XsdTypeDecimal(item); } } } XmlNodeList maximumBoundaryPercentNodeList = xmlNode.SelectNodes("maximumBoundaryPercent"); if (maximumBoundaryPercentNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in maximumBoundaryPercentNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { maximumBoundaryPercentIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(maximumBoundaryPercentIDRef, ob); } else if (item.Attributes.ToString() == "href") { maximumBoundaryPercentIDRef = item.Attributes["href"].Name; } else { maximumBoundaryPercent = new XsdTypeDecimal(item); } } } }
public PremiumQuote(XmlNode xmlNode) { XmlNodeList valueNodeList = xmlNode.SelectNodes("value"); if (valueNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in valueNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { valueIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(valueIDRef, ob); } else if (item.Attributes.ToString() == "href") { valueIDRef = item.Attributes["href"].Name; } else { value = new XsdTypeDecimal(item); } } } XmlNodeList quoteBasisNodeList = xmlNode.SelectNodes("quoteBasis"); if (quoteBasisNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in quoteBasisNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { quoteBasisIDRef = item.Attributes["id"].Name; PremiumQuoteBasisEnum ob = PremiumQuoteBasisEnum(); IDManager.SetID(quoteBasisIDRef, ob); } else if (item.Attributes.ToString() == "href") { quoteBasisIDRef = item.Attributes["href"].Name; } else { quoteBasis = new PremiumQuoteBasisEnum(item); } } } }
public NetAndGross(XmlNode xmlNode) { XmlNodeList netNodeList = xmlNode.SelectNodes("net"); if (netNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in netNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { netIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(netIDRef, ob); } else if (item.Attributes.ToString() == "href") { netIDRef = item.Attributes["href"].Name; } else { net = new XsdTypeDecimal(item); } } } XmlNodeList grossNodeList = xmlNode.SelectNodes("gross"); if (grossNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in grossNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { grossIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(grossIDRef, ob); } else if (item.Attributes.ToString() == "href") { grossIDRef = item.Attributes["href"].Name; } else { gross = new XsdTypeDecimal(item); } } } }
public InstrumentTradeQuantity(XmlNode xmlNode) { XmlNode numberNode = xmlNode.SelectSingleNode("number"); if (numberNode != null) { if (numberNode.Attributes["href"] != null || numberNode.Attributes["id"] != null) { if (numberNode.Attributes["id"] != null) { numberIDRef_ = numberNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(numberNode); IDManager.SetID(numberIDRef_, ob); } else if (numberNode.Attributes["href"] != null) { numberIDRef_ = numberNode.Attributes["href"].Value; } else { number_ = new XsdTypeDecimal(numberNode); } } else { number_ = new XsdTypeDecimal(numberNode); } } XmlNode nominalNode = xmlNode.SelectSingleNode("nominal"); if (nominalNode != null) { if (nominalNode.Attributes["href"] != null || nominalNode.Attributes["id"] != null) { if (nominalNode.Attributes["id"] != null) { nominalIDRef_ = nominalNode.Attributes["id"].Value; Money ob = new Money(nominalNode); IDManager.SetID(nominalIDRef_, ob); } else if (nominalNode.Attributes["href"] != null) { nominalIDRef_ = nominalNode.Attributes["href"].Value; } else { nominal_ = new Money(nominalNode); } } else { nominal_ = new Money(nominalNode); } } }
public MakeWholeProvisions(XmlNode xmlNode) { XmlNode makeWholeDateNode = xmlNode.SelectSingleNode("makeWholeDate"); if (makeWholeDateNode != null) { if (makeWholeDateNode.Attributes["href"] != null || makeWholeDateNode.Attributes["id"] != null) { if (makeWholeDateNode.Attributes["id"] != null) { makeWholeDateIDRef_ = makeWholeDateNode.Attributes["id"].Value; XsdTypeDate ob = new XsdTypeDate(makeWholeDateNode); IDManager.SetID(makeWholeDateIDRef_, ob); } else if (makeWholeDateNode.Attributes["href"] != null) { makeWholeDateIDRef_ = makeWholeDateNode.Attributes["href"].Value; } else { makeWholeDate_ = new XsdTypeDate(makeWholeDateNode); } } else { makeWholeDate_ = new XsdTypeDate(makeWholeDateNode); } } XmlNode recallSpreadNode = xmlNode.SelectSingleNode("recallSpread"); if (recallSpreadNode != null) { if (recallSpreadNode.Attributes["href"] != null || recallSpreadNode.Attributes["id"] != null) { if (recallSpreadNode.Attributes["id"] != null) { recallSpreadIDRef_ = recallSpreadNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(recallSpreadNode); IDManager.SetID(recallSpreadIDRef_, ob); } else if (recallSpreadNode.Attributes["href"] != null) { recallSpreadIDRef_ = recallSpreadNode.Attributes["href"].Value; } else { recallSpread_ = new XsdTypeDecimal(recallSpreadNode); } } else { recallSpread_ = new XsdTypeDecimal(recallSpreadNode); } } }
public ReferenceLevel(XmlNode xmlNode) { XmlNodeList amountNodeList = xmlNode.SelectNodes("amount"); if (amountNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in amountNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { amountIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(amountIDRef, ob); } else if (item.Attributes.ToString() == "href") { amountIDRef = item.Attributes["href"].Name; } else { amount = new XsdTypeDecimal(item); } } } XmlNodeList referenceLevelUnitNodeList = xmlNode.SelectNodes("referenceLevelUnit"); if (referenceLevelUnitNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in referenceLevelUnitNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { referenceLevelUnitIDRef = item.Attributes["id"].Name; ReferenceLevelUnit ob = ReferenceLevelUnit(); IDManager.SetID(referenceLevelUnitIDRef, ob); } else if (item.Attributes.ToString() == "href") { referenceLevelUnitIDRef = item.Attributes["href"].Name; } else { referenceLevelUnit = new ReferenceLevelUnit(item); } } } }
public WeatherIndex(XmlNode xmlNode) { XmlNodeList quantityNodeList = xmlNode.SelectNodes("quantity"); if (quantityNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in quantityNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { quantityIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(quantityIDRef, ob); } else if (item.Attributes.ToString() == "href") { quantityIDRef = item.Attributes["href"].Name; } else { quantity = new XsdTypeDecimal(item); } } } XmlNodeList unitNodeList = xmlNode.SelectNodes("unit"); if (unitNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in unitNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { unitIDRef = item.Attributes["id"].Name; QuantityUnit ob = QuantityUnit(); IDManager.SetID(unitIDRef, ob); } else if (item.Attributes.ToString() == "href") { unitIDRef = item.Attributes["href"].Name; } else { unit = new QuantityUnit(item); } } } }
public OptionNumericStrike(XmlNode xmlNode) { XmlNode strikePriceNode = xmlNode.SelectSingleNode("strikePrice"); if (strikePriceNode != null) { if (strikePriceNode.Attributes["href"] != null || strikePriceNode.Attributes["id"] != null) { if (strikePriceNode.Attributes["id"] != null) { strikePriceIDRef_ = strikePriceNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(strikePriceNode); IDManager.SetID(strikePriceIDRef_, ob); } else if (strikePriceNode.Attributes["href"] != null) { strikePriceIDRef_ = strikePriceNode.Attributes["href"].Value; } else { strikePrice_ = new XsdTypeDecimal(strikePriceNode); } } else { strikePrice_ = new XsdTypeDecimal(strikePriceNode); } } XmlNode strikePercentageNode = xmlNode.SelectSingleNode("strikePercentage"); if (strikePercentageNode != null) { if (strikePercentageNode.Attributes["href"] != null || strikePercentageNode.Attributes["id"] != null) { if (strikePercentageNode.Attributes["id"] != null) { strikePercentageIDRef_ = strikePercentageNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(strikePercentageNode); IDManager.SetID(strikePercentageIDRef_, ob); } else if (strikePercentageNode.Attributes["href"] != null) { strikePercentageIDRef_ = strikePercentageNode.Attributes["href"].Value; } else { strikePercentage_ = new XsdTypeDecimal(strikePercentageNode); } } else { strikePercentage_ = new XsdTypeDecimal(strikePercentageNode); } } }
public FxRate(XmlNode xmlNode) { XmlNode quotedCurrencyPairNode = xmlNode.SelectSingleNode("quotedCurrencyPair"); if (quotedCurrencyPairNode != null) { if (quotedCurrencyPairNode.Attributes["href"] != null || quotedCurrencyPairNode.Attributes["id"] != null) { if (quotedCurrencyPairNode.Attributes["id"] != null) { quotedCurrencyPairIDRef_ = quotedCurrencyPairNode.Attributes["id"].Value; QuotedCurrencyPair ob = new QuotedCurrencyPair(quotedCurrencyPairNode); IDManager.SetID(quotedCurrencyPairIDRef_, ob); } else if (quotedCurrencyPairNode.Attributes["href"] != null) { quotedCurrencyPairIDRef_ = quotedCurrencyPairNode.Attributes["href"].Value; } else { quotedCurrencyPair_ = new QuotedCurrencyPair(quotedCurrencyPairNode); } } else { quotedCurrencyPair_ = new QuotedCurrencyPair(quotedCurrencyPairNode); } } XmlNode rateNode = xmlNode.SelectSingleNode("rate"); if (rateNode != null) { if (rateNode.Attributes["href"] != null || rateNode.Attributes["id"] != null) { if (rateNode.Attributes["id"] != null) { rateIDRef_ = rateNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(rateNode); IDManager.SetID(rateIDRef_, ob); } else if (rateNode.Attributes["href"] != null) { rateIDRef_ = rateNode.Attributes["href"].Value; } else { rate_ = new XsdTypeDecimal(rateNode); } } else { rate_ = new XsdTypeDecimal(rateNode); } } }
public InterestAccrualsMethod(XmlNode xmlNode) { XmlNode floatingRateCalculationNode = xmlNode.SelectSingleNode("floatingRateCalculation"); if (floatingRateCalculationNode != null) { if (floatingRateCalculationNode.Attributes["href"] != null || floatingRateCalculationNode.Attributes["id"] != null) { if (floatingRateCalculationNode.Attributes["id"] != null) { floatingRateCalculationIDRef_ = floatingRateCalculationNode.Attributes["id"].Value; FloatingRateCalculation ob = new FloatingRateCalculation(floatingRateCalculationNode); IDManager.SetID(floatingRateCalculationIDRef_, ob); } else if (floatingRateCalculationNode.Attributes["href"] != null) { floatingRateCalculationIDRef_ = floatingRateCalculationNode.Attributes["href"].Value; } else { floatingRateCalculation_ = new FloatingRateCalculation(floatingRateCalculationNode); } } else { floatingRateCalculation_ = new FloatingRateCalculation(floatingRateCalculationNode); } } 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; XsdTypeDecimal ob = new XsdTypeDecimal(fixedRateNode); IDManager.SetID(fixedRateIDRef_, ob); } else if (fixedRateNode.Attributes["href"] != null) { fixedRateIDRef_ = fixedRateNode.Attributes["href"].Value; } else { fixedRate_ = new XsdTypeDecimal(fixedRateNode); } } else { fixedRate_ = new XsdTypeDecimal(fixedRateNode); } } }
public WeatherIndex(XmlNode xmlNode) { XmlNode quantityNode = xmlNode.SelectSingleNode("quantity"); if (quantityNode != null) { if (quantityNode.Attributes["href"] != null || quantityNode.Attributes["id"] != null) { if (quantityNode.Attributes["id"] != null) { quantityIDRef_ = quantityNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(quantityNode); IDManager.SetID(quantityIDRef_, ob); } else if (quantityNode.Attributes["href"] != null) { quantityIDRef_ = quantityNode.Attributes["href"].Value; } else { quantity_ = new XsdTypeDecimal(quantityNode); } } else { quantity_ = new XsdTypeDecimal(quantityNode); } } XmlNode unitNode = xmlNode.SelectSingleNode("unit"); if (unitNode != null) { if (unitNode.Attributes["href"] != null || unitNode.Attributes["id"] != null) { if (unitNode.Attributes["id"] != null) { unitIDRef_ = unitNode.Attributes["id"].Value; QuantityUnit ob = new QuantityUnit(unitNode); IDManager.SetID(unitIDRef_, ob); } else if (unitNode.Attributes["href"] != null) { unitIDRef_ = unitNode.Attributes["href"].Value; } else { unit_ = new QuantityUnit(unitNode); } } else { unit_ = new QuantityUnit(unitNode); } } }
public PremiumQuote(XmlNode xmlNode) { XmlNode valueNode = xmlNode.SelectSingleNode("value"); if (valueNode != null) { if (valueNode.Attributes["href"] != null || valueNode.Attributes["id"] != null) { if (valueNode.Attributes["id"] != null) { valueIDRef_ = valueNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(valueNode); IDManager.SetID(valueIDRef_, ob); } else if (valueNode.Attributes["href"] != null) { valueIDRef_ = valueNode.Attributes["href"].Value; } else { value_ = new XsdTypeDecimal(valueNode); } } else { value_ = new XsdTypeDecimal(valueNode); } } XmlNode quoteBasisNode = xmlNode.SelectSingleNode("quoteBasis"); if (quoteBasisNode != null) { if (quoteBasisNode.Attributes["href"] != null || quoteBasisNode.Attributes["id"] != null) { if (quoteBasisNode.Attributes["id"] != null) { quoteBasisIDRef_ = quoteBasisNode.Attributes["id"].Value; PremiumQuoteBasisEnum ob = new PremiumQuoteBasisEnum(quoteBasisNode); IDManager.SetID(quoteBasisIDRef_, ob); } else if (quoteBasisNode.Attributes["href"] != null) { quoteBasisIDRef_ = quoteBasisNode.Attributes["href"].Value; } else { quoteBasis_ = new PremiumQuoteBasisEnum(quoteBasisNode); } } else { quoteBasis_ = new PremiumQuoteBasisEnum(quoteBasisNode); } } }
public OptionNumericStrike(XmlNode xmlNode) { XmlNodeList strikePriceNodeList = xmlNode.SelectNodes("strikePrice"); if (strikePriceNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in strikePriceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { strikePriceIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(strikePriceIDRef, ob); } else if (item.Attributes.ToString() == "href") { strikePriceIDRef = item.Attributes["href"].Name; } else { strikePrice = new XsdTypeDecimal(item); } } } XmlNodeList strikePercentageNodeList = xmlNode.SelectNodes("strikePercentage"); if (strikePercentageNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in strikePercentageNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { strikePercentageIDRef = item.Attributes["id"].Name; XsdTypeDecimal ob = XsdTypeDecimal(); IDManager.SetID(strikePercentageIDRef, ob); } else if (item.Attributes.ToString() == "href") { strikePercentageIDRef = item.Attributes["href"].Name; } else { strikePercentage = new XsdTypeDecimal(item); } } } }
public EventProposedMatch(XmlNode xmlNode) { XmlNode originatingEventNode = xmlNode.SelectSingleNode("originatingEvent"); if (originatingEventNode != null) { if (originatingEventNode.Attributes["href"] != null || originatingEventNode.Attributes["id"] != null) { if (originatingEventNode.Attributes["id"] != null) { originatingEventIDRef_ = originatingEventNode.Attributes["id"].Value; OriginatingEvent ob = new OriginatingEvent(originatingEventNode); IDManager.SetID(originatingEventIDRef_, ob); } else if (originatingEventNode.Attributes["href"] != null) { originatingEventIDRef_ = originatingEventNode.Attributes["href"].Value; } else { originatingEvent_ = new OriginatingEvent(originatingEventNode); } } else { originatingEvent_ = new OriginatingEvent(originatingEventNode); } } XmlNode tradeNode = xmlNode.SelectSingleNode("trade"); if (tradeNode != null) { if (tradeNode.Attributes["href"] != null || tradeNode.Attributes["id"] != null) { if (tradeNode.Attributes["id"] != null) { tradeIDRef_ = tradeNode.Attributes["id"].Value; Trade ob = new Trade(tradeNode); IDManager.SetID(tradeIDRef_, ob); } else if (tradeNode.Attributes["href"] != null) { tradeIDRef_ = tradeNode.Attributes["href"].Value; } else { trade_ = new Trade(tradeNode); } } else { trade_ = new Trade(tradeNode); } } XmlNode amendmentNode = xmlNode.SelectSingleNode("amendment"); if (amendmentNode != null) { if (amendmentNode.Attributes["href"] != null || amendmentNode.Attributes["id"] != null) { if (amendmentNode.Attributes["id"] != null) { amendmentIDRef_ = amendmentNode.Attributes["id"].Value; TradeAmendmentContent ob = new TradeAmendmentContent(amendmentNode); IDManager.SetID(amendmentIDRef_, ob); } else if (amendmentNode.Attributes["href"] != null) { amendmentIDRef_ = amendmentNode.Attributes["href"].Value; } else { amendment_ = new TradeAmendmentContent(amendmentNode); } } else { amendment_ = new TradeAmendmentContent(amendmentNode); } } XmlNode increaseNode = xmlNode.SelectSingleNode("increase"); if (increaseNode != null) { if (increaseNode.Attributes["href"] != null || increaseNode.Attributes["id"] != null) { if (increaseNode.Attributes["id"] != null) { increaseIDRef_ = increaseNode.Attributes["id"].Value; TradeNotionalChange ob = new TradeNotionalChange(increaseNode); IDManager.SetID(increaseIDRef_, ob); } else if (increaseNode.Attributes["href"] != null) { increaseIDRef_ = increaseNode.Attributes["href"].Value; } else { increase_ = new TradeNotionalChange(increaseNode); } } else { increase_ = new TradeNotionalChange(increaseNode); } } XmlNode terminatingEventNode = xmlNode.SelectSingleNode("terminatingEvent"); if (terminatingEventNode != null) { if (terminatingEventNode.Attributes["href"] != null || terminatingEventNode.Attributes["id"] != null) { if (terminatingEventNode.Attributes["id"] != null) { terminatingEventIDRef_ = terminatingEventNode.Attributes["id"].Value; TerminatingEvent ob = new TerminatingEvent(terminatingEventNode); IDManager.SetID(terminatingEventIDRef_, ob); } else if (terminatingEventNode.Attributes["href"] != null) { terminatingEventIDRef_ = terminatingEventNode.Attributes["href"].Value; } else { terminatingEvent_ = new TerminatingEvent(terminatingEventNode); } } else { terminatingEvent_ = new TerminatingEvent(terminatingEventNode); } } XmlNode terminationNode = xmlNode.SelectSingleNode("termination"); if (terminationNode != null) { if (terminationNode.Attributes["href"] != null || terminationNode.Attributes["id"] != null) { if (terminationNode.Attributes["id"] != null) { terminationIDRef_ = terminationNode.Attributes["id"].Value; TradeNotionalChange ob = new TradeNotionalChange(terminationNode); IDManager.SetID(terminationIDRef_, ob); } else if (terminationNode.Attributes["href"] != null) { terminationIDRef_ = terminationNode.Attributes["href"].Value; } else { termination_ = new TradeNotionalChange(terminationNode); } } else { termination_ = new TradeNotionalChange(terminationNode); } } XmlNode novationNode = xmlNode.SelectSingleNode("novation"); if (novationNode != null) { if (novationNode.Attributes["href"] != null || novationNode.Attributes["id"] != null) { if (novationNode.Attributes["id"] != null) { novationIDRef_ = novationNode.Attributes["id"].Value; TradeNovationContent ob = new TradeNovationContent(novationNode); IDManager.SetID(novationIDRef_, ob); } else if (novationNode.Attributes["href"] != null) { novationIDRef_ = novationNode.Attributes["href"].Value; } else { novation_ = new TradeNovationContent(novationNode); } } else { novation_ = new TradeNovationContent(novationNode); } } XmlNode optionExerciseNode = xmlNode.SelectSingleNode("optionExercise"); if (optionExerciseNode != null) { if (optionExerciseNode.Attributes["href"] != null || optionExerciseNode.Attributes["id"] != null) { if (optionExerciseNode.Attributes["id"] != null) { optionExerciseIDRef_ = optionExerciseNode.Attributes["id"].Value; OptionExercise ob = new OptionExercise(optionExerciseNode); IDManager.SetID(optionExerciseIDRef_, ob); } else if (optionExerciseNode.Attributes["href"] != null) { optionExerciseIDRef_ = optionExerciseNode.Attributes["href"].Value; } else { optionExercise_ = new OptionExercise(optionExerciseNode); } } else { optionExercise_ = new OptionExercise(optionExerciseNode); } } XmlNodeList optionExpiryNodeList = xmlNode.SelectNodes("optionExpiry"); if (optionExpiryNodeList != null) { this.optionExpiry_ = new List<OptionExpiry>(); foreach (XmlNode item in optionExpiryNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { optionExpiryIDRef_ = item.Attributes["id"].Value; optionExpiry_.Add(new OptionExpiry(item)); IDManager.SetID(optionExpiryIDRef_, optionExpiry_[optionExpiry_.Count - 1 ]); } else if (item.Attributes["href"] != null) { optionExpiryIDRef_ = item.Attributes["href"].Value; } else { optionExpiry_.Add(new OptionExpiry(item)); } } else { optionExpiry_.Add(new OptionExpiry(item)); } } } XmlNode deClearNode = xmlNode.SelectSingleNode("deClear"); if (deClearNode != null) { if (deClearNode.Attributes["href"] != null || deClearNode.Attributes["id"] != null) { if (deClearNode.Attributes["id"] != null) { deClearIDRef_ = deClearNode.Attributes["id"].Value; DeClear ob = new DeClear(deClearNode); IDManager.SetID(deClearIDRef_, ob); } else if (deClearNode.Attributes["href"] != null) { deClearIDRef_ = deClearNode.Attributes["href"].Value; } else { deClear_ = new DeClear(deClearNode); } } else { deClear_ = new DeClear(deClearNode); } } XmlNode withdrawalNode = xmlNode.SelectSingleNode("withdrawal"); if (withdrawalNode != null) { if (withdrawalNode.Attributes["href"] != null || withdrawalNode.Attributes["id"] != null) { if (withdrawalNode.Attributes["id"] != null) { withdrawalIDRef_ = withdrawalNode.Attributes["id"].Value; Withdrawal ob = new Withdrawal(withdrawalNode); IDManager.SetID(withdrawalIDRef_, ob); } else if (withdrawalNode.Attributes["href"] != null) { withdrawalIDRef_ = withdrawalNode.Attributes["href"].Value; } else { withdrawal_ = new Withdrawal(withdrawalNode); } } else { withdrawal_ = new Withdrawal(withdrawalNode); } } XmlNode additionalEventNode = xmlNode.SelectSingleNode("additionalEvent"); if (additionalEventNode != null) { if (additionalEventNode.Attributes["href"] != null || additionalEventNode.Attributes["id"] != null) { if (additionalEventNode.Attributes["id"] != null) { additionalEventIDRef_ = additionalEventNode.Attributes["id"].Value; AdditionalEvent ob = new AdditionalEvent(additionalEventNode); IDManager.SetID(additionalEventIDRef_, ob); } else if (additionalEventNode.Attributes["href"] != null) { additionalEventIDRef_ = additionalEventNode.Attributes["href"].Value; } else { additionalEvent_ = new AdditionalEvent(additionalEventNode); } } else { additionalEvent_ = new AdditionalEvent(additionalEventNode); } } XmlNode matchIdNode = xmlNode.SelectSingleNode("matchId"); if (matchIdNode != null) { if (matchIdNode.Attributes["href"] != null || matchIdNode.Attributes["id"] != null) { if (matchIdNode.Attributes["id"] != null) { matchIdIDRef_ = matchIdNode.Attributes["id"].Value; MatchId ob = new MatchId(matchIdNode); IDManager.SetID(matchIdIDRef_, ob); } else if (matchIdNode.Attributes["href"] != null) { matchIdIDRef_ = matchIdNode.Attributes["href"].Value; } else { matchId_ = new MatchId(matchIdNode); } } else { matchId_ = new MatchId(matchIdNode); } } XmlNodeList differenceNodeList = xmlNode.SelectNodes("difference"); if (differenceNodeList != null) { this.difference_ = new List<TradeDifference>(); foreach (XmlNode item in differenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { differenceIDRef_ = item.Attributes["id"].Value; difference_.Add(new TradeDifference(item)); IDManager.SetID(differenceIDRef_, difference_[difference_.Count - 1 ]); } else if (item.Attributes["href"] != null) { differenceIDRef_ = item.Attributes["href"].Value; } else { difference_.Add(new TradeDifference(item)); } } else { difference_.Add(new TradeDifference(item)); } } } XmlNode matchScoreNode = xmlNode.SelectSingleNode("matchScore"); if (matchScoreNode != null) { if (matchScoreNode.Attributes["href"] != null || matchScoreNode.Attributes["id"] != null) { if (matchScoreNode.Attributes["id"] != null) { matchScoreIDRef_ = matchScoreNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(matchScoreNode); IDManager.SetID(matchScoreIDRef_, ob); } else if (matchScoreNode.Attributes["href"] != null) { matchScoreIDRef_ = matchScoreNode.Attributes["href"].Value; } else { matchScore_ = new XsdTypeDecimal(matchScoreNode); } } else { matchScore_ = new XsdTypeDecimal(matchScoreNode); } } }
public FeeLeg(XmlNode xmlNode) : base(xmlNode) { XmlNode initialPaymentNode = xmlNode.SelectSingleNode("initialPayment"); if (initialPaymentNode != null) { if (initialPaymentNode.Attributes["href"] != null || initialPaymentNode.Attributes["id"] != null) { if (initialPaymentNode.Attributes["id"] != null) { initialPaymentIDRef_ = initialPaymentNode.Attributes["id"].Value; InitialPayment ob = new InitialPayment(initialPaymentNode); IDManager.SetID(initialPaymentIDRef_, ob); } else if (initialPaymentNode.Attributes["href"] != null) { initialPaymentIDRef_ = initialPaymentNode.Attributes["href"].Value; } else { initialPayment_ = new InitialPayment(initialPaymentNode); } } else { initialPayment_ = new InitialPayment(initialPaymentNode); } } XmlNodeList singlePaymentNodeList = xmlNode.SelectNodes("singlePayment"); if (singlePaymentNodeList != null) { this.singlePayment_ = new List<SinglePayment>(); foreach (XmlNode item in singlePaymentNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { singlePaymentIDRef_ = item.Attributes["id"].Value; singlePayment_.Add(new SinglePayment(item)); IDManager.SetID(singlePaymentIDRef_, singlePayment_[singlePayment_.Count - 1 ]); } else if (item.Attributes["href"] != null) { singlePaymentIDRef_ = item.Attributes["href"].Value; } else { singlePayment_.Add(new SinglePayment(item)); } } else { singlePayment_.Add(new SinglePayment(item)); } } } XmlNode periodicPaymentNode = xmlNode.SelectSingleNode("periodicPayment"); if (periodicPaymentNode != null) { if (periodicPaymentNode.Attributes["href"] != null || periodicPaymentNode.Attributes["id"] != null) { if (periodicPaymentNode.Attributes["id"] != null) { periodicPaymentIDRef_ = periodicPaymentNode.Attributes["id"].Value; PeriodicPayment ob = new PeriodicPayment(periodicPaymentNode); IDManager.SetID(periodicPaymentIDRef_, ob); } else if (periodicPaymentNode.Attributes["href"] != null) { periodicPaymentIDRef_ = periodicPaymentNode.Attributes["href"].Value; } else { periodicPayment_ = new PeriodicPayment(periodicPaymentNode); } } else { periodicPayment_ = new PeriodicPayment(periodicPaymentNode); } } XmlNode marketFixedRateNode = xmlNode.SelectSingleNode("marketFixedRate"); if (marketFixedRateNode != null) { if (marketFixedRateNode.Attributes["href"] != null || marketFixedRateNode.Attributes["id"] != null) { if (marketFixedRateNode.Attributes["id"] != null) { marketFixedRateIDRef_ = marketFixedRateNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(marketFixedRateNode); IDManager.SetID(marketFixedRateIDRef_, ob); } else if (marketFixedRateNode.Attributes["href"] != null) { marketFixedRateIDRef_ = marketFixedRateNode.Attributes["href"].Value; } else { marketFixedRate_ = new XsdTypeDecimal(marketFixedRateNode); } } else { marketFixedRate_ = new XsdTypeDecimal(marketFixedRateNode); } } XmlNode paymentDelayNode = xmlNode.SelectSingleNode("paymentDelay"); if (paymentDelayNode != null) { if (paymentDelayNode.Attributes["href"] != null || paymentDelayNode.Attributes["id"] != null) { if (paymentDelayNode.Attributes["id"] != null) { paymentDelayIDRef_ = paymentDelayNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(paymentDelayNode); IDManager.SetID(paymentDelayIDRef_, ob); } else if (paymentDelayNode.Attributes["href"] != null) { paymentDelayIDRef_ = paymentDelayNode.Attributes["href"].Value; } else { paymentDelay_ = new XsdTypeBoolean(paymentDelayNode); } } else { paymentDelay_ = new XsdTypeBoolean(paymentDelayNode); } } XmlNode initialPointsNode = xmlNode.SelectSingleNode("initialPoints"); if (initialPointsNode != null) { if (initialPointsNode.Attributes["href"] != null || initialPointsNode.Attributes["id"] != null) { if (initialPointsNode.Attributes["id"] != null) { initialPointsIDRef_ = initialPointsNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(initialPointsNode); IDManager.SetID(initialPointsIDRef_, ob); } else if (initialPointsNode.Attributes["href"] != null) { initialPointsIDRef_ = initialPointsNode.Attributes["href"].Value; } else { initialPoints_ = new XsdTypeDecimal(initialPointsNode); } } else { initialPoints_ = new XsdTypeDecimal(initialPointsNode); } } XmlNode quotationStyleNode = xmlNode.SelectSingleNode("quotationStyle"); if (quotationStyleNode != null) { if (quotationStyleNode.Attributes["href"] != null || quotationStyleNode.Attributes["id"] != null) { if (quotationStyleNode.Attributes["id"] != null) { quotationStyleIDRef_ = quotationStyleNode.Attributes["id"].Value; QuotationStyleEnum ob = new QuotationStyleEnum(quotationStyleNode); IDManager.SetID(quotationStyleIDRef_, ob); } else if (quotationStyleNode.Attributes["href"] != null) { quotationStyleIDRef_ = quotationStyleNode.Attributes["href"].Value; } else { quotationStyle_ = new QuotationStyleEnum(quotationStyleNode); } } else { quotationStyle_ = new QuotationStyleEnum(quotationStyleNode); } } }
public BasicQuotation(XmlNode xmlNode) { XmlNode valueNode = xmlNode.SelectSingleNode("value"); if (valueNode != null) { if (valueNode.Attributes["href"] != null || valueNode.Attributes["id"] != null) { if (valueNode.Attributes["id"] != null) { valueIDRef_ = valueNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(valueNode); IDManager.SetID(valueIDRef_, ob); } else if (valueNode.Attributes["href"] != null) { valueIDRef_ = valueNode.Attributes["href"].Value; } else { value_ = new XsdTypeDecimal(valueNode); } } else { value_ = new XsdTypeDecimal(valueNode); } } XmlNode measureTypeNode = xmlNode.SelectSingleNode("measureType"); if (measureTypeNode != null) { if (measureTypeNode.Attributes["href"] != null || measureTypeNode.Attributes["id"] != null) { if (measureTypeNode.Attributes["id"] != null) { measureTypeIDRef_ = measureTypeNode.Attributes["id"].Value; AssetMeasureType ob = new AssetMeasureType(measureTypeNode); IDManager.SetID(measureTypeIDRef_, ob); } else if (measureTypeNode.Attributes["href"] != null) { measureTypeIDRef_ = measureTypeNode.Attributes["href"].Value; } else { measureType_ = new AssetMeasureType(measureTypeNode); } } else { measureType_ = new AssetMeasureType(measureTypeNode); } } XmlNode quoteUnitsNode = xmlNode.SelectSingleNode("quoteUnits"); if (quoteUnitsNode != null) { if (quoteUnitsNode.Attributes["href"] != null || quoteUnitsNode.Attributes["id"] != null) { if (quoteUnitsNode.Attributes["id"] != null) { quoteUnitsIDRef_ = quoteUnitsNode.Attributes["id"].Value; PriceQuoteUnits ob = new PriceQuoteUnits(quoteUnitsNode); IDManager.SetID(quoteUnitsIDRef_, ob); } else if (quoteUnitsNode.Attributes["href"] != null) { quoteUnitsIDRef_ = quoteUnitsNode.Attributes["href"].Value; } else { quoteUnits_ = new PriceQuoteUnits(quoteUnitsNode); } } else { quoteUnits_ = new PriceQuoteUnits(quoteUnitsNode); } } XmlNode sideNode = xmlNode.SelectSingleNode("side"); if (sideNode != null) { if (sideNode.Attributes["href"] != null || sideNode.Attributes["id"] != null) { if (sideNode.Attributes["id"] != null) { sideIDRef_ = sideNode.Attributes["id"].Value; QuotationSideEnum ob = new QuotationSideEnum(sideNode); IDManager.SetID(sideIDRef_, ob); } else if (sideNode.Attributes["href"] != null) { sideIDRef_ = sideNode.Attributes["href"].Value; } else { side_ = new QuotationSideEnum(sideNode); } } else { side_ = new QuotationSideEnum(sideNode); } } XmlNode currencyNode = xmlNode.SelectSingleNode("currency"); if (currencyNode != null) { if (currencyNode.Attributes["href"] != null || currencyNode.Attributes["id"] != null) { if (currencyNode.Attributes["id"] != null) { currencyIDRef_ = currencyNode.Attributes["id"].Value; Currency ob = new Currency(currencyNode); IDManager.SetID(currencyIDRef_, ob); } else if (currencyNode.Attributes["href"] != null) { currencyIDRef_ = currencyNode.Attributes["href"].Value; } else { currency_ = new Currency(currencyNode); } } else { currency_ = new Currency(currencyNode); } } XmlNode currencyTypeNode = xmlNode.SelectSingleNode("currencyType"); if (currencyTypeNode != null) { if (currencyTypeNode.Attributes["href"] != null || currencyTypeNode.Attributes["id"] != null) { if (currencyTypeNode.Attributes["id"] != null) { currencyTypeIDRef_ = currencyTypeNode.Attributes["id"].Value; ReportingCurrencyType ob = new ReportingCurrencyType(currencyTypeNode); IDManager.SetID(currencyTypeIDRef_, ob); } else if (currencyTypeNode.Attributes["href"] != null) { currencyTypeIDRef_ = currencyTypeNode.Attributes["href"].Value; } else { currencyType_ = new ReportingCurrencyType(currencyTypeNode); } } else { currencyType_ = new ReportingCurrencyType(currencyTypeNode); } } XmlNode timingNode = xmlNode.SelectSingleNode("timing"); if (timingNode != null) { if (timingNode.Attributes["href"] != null || timingNode.Attributes["id"] != null) { if (timingNode.Attributes["id"] != null) { timingIDRef_ = timingNode.Attributes["id"].Value; QuoteTiming ob = new QuoteTiming(timingNode); IDManager.SetID(timingIDRef_, ob); } else if (timingNode.Attributes["href"] != null) { timingIDRef_ = timingNode.Attributes["href"].Value; } else { timing_ = new QuoteTiming(timingNode); } } else { timing_ = new QuoteTiming(timingNode); } } XmlNode businessCenterNode = xmlNode.SelectSingleNode("businessCenter"); if (businessCenterNode != null) { if (businessCenterNode.Attributes["href"] != null || businessCenterNode.Attributes["id"] != null) { if (businessCenterNode.Attributes["id"] != null) { businessCenterIDRef_ = businessCenterNode.Attributes["id"].Value; BusinessCenter ob = new BusinessCenter(businessCenterNode); IDManager.SetID(businessCenterIDRef_, ob); } else if (businessCenterNode.Attributes["href"] != null) { businessCenterIDRef_ = businessCenterNode.Attributes["href"].Value; } else { businessCenter_ = new BusinessCenter(businessCenterNode); } } else { businessCenter_ = new BusinessCenter(businessCenterNode); } } XmlNode exchangeIdNode = xmlNode.SelectSingleNode("exchangeId"); if (exchangeIdNode != null) { if (exchangeIdNode.Attributes["href"] != null || exchangeIdNode.Attributes["id"] != null) { if (exchangeIdNode.Attributes["id"] != null) { exchangeIdIDRef_ = exchangeIdNode.Attributes["id"].Value; ExchangeId ob = new ExchangeId(exchangeIdNode); IDManager.SetID(exchangeIdIDRef_, ob); } else if (exchangeIdNode.Attributes["href"] != null) { exchangeIdIDRef_ = exchangeIdNode.Attributes["href"].Value; } else { exchangeId_ = new ExchangeId(exchangeIdNode); } } else { exchangeId_ = new ExchangeId(exchangeIdNode); } } XmlNodeList informationSourceNodeList = xmlNode.SelectNodes("informationSource"); if (informationSourceNodeList != null) { this.informationSource_ = new List<InformationSource>(); foreach (XmlNode item in informationSourceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { informationSourceIDRef_ = item.Attributes["id"].Value; informationSource_.Add(new InformationSource(item)); IDManager.SetID(informationSourceIDRef_, informationSource_[informationSource_.Count - 1 ]); } else if (item.Attributes["href"] != null) { informationSourceIDRef_ = item.Attributes["href"].Value; } else { informationSource_.Add(new InformationSource(item)); } } else { informationSource_.Add(new InformationSource(item)); } } } XmlNode pricingModelNode = xmlNode.SelectSingleNode("pricingModel"); if (pricingModelNode != null) { if (pricingModelNode.Attributes["href"] != null || pricingModelNode.Attributes["id"] != null) { if (pricingModelNode.Attributes["id"] != null) { pricingModelIDRef_ = pricingModelNode.Attributes["id"].Value; PricingModel ob = new PricingModel(pricingModelNode); IDManager.SetID(pricingModelIDRef_, ob); } else if (pricingModelNode.Attributes["href"] != null) { pricingModelIDRef_ = pricingModelNode.Attributes["href"].Value; } else { pricingModel_ = new PricingModel(pricingModelNode); } } else { pricingModel_ = new PricingModel(pricingModelNode); } } XmlNode timeNode = xmlNode.SelectSingleNode("time"); if (timeNode != null) { if (timeNode.Attributes["href"] != null || timeNode.Attributes["id"] != null) { if (timeNode.Attributes["id"] != null) { timeIDRef_ = timeNode.Attributes["id"].Value; XsdTypeDateTime ob = new XsdTypeDateTime(timeNode); IDManager.SetID(timeIDRef_, ob); } else if (timeNode.Attributes["href"] != null) { timeIDRef_ = timeNode.Attributes["href"].Value; } else { time_ = new XsdTypeDateTime(timeNode); } } else { time_ = new XsdTypeDateTime(timeNode); } } XmlNode valuationDateNode = xmlNode.SelectSingleNode("valuationDate"); if (valuationDateNode != null) { if (valuationDateNode.Attributes["href"] != null || valuationDateNode.Attributes["id"] != null) { if (valuationDateNode.Attributes["id"] != null) { valuationDateIDRef_ = valuationDateNode.Attributes["id"].Value; XsdTypeDate ob = new XsdTypeDate(valuationDateNode); IDManager.SetID(valuationDateIDRef_, ob); } else if (valuationDateNode.Attributes["href"] != null) { valuationDateIDRef_ = valuationDateNode.Attributes["href"].Value; } else { valuationDate_ = new XsdTypeDate(valuationDateNode); } } else { valuationDate_ = new XsdTypeDate(valuationDateNode); } } XmlNode expiryTimeNode = xmlNode.SelectSingleNode("expiryTime"); if (expiryTimeNode != null) { if (expiryTimeNode.Attributes["href"] != null || expiryTimeNode.Attributes["id"] != null) { if (expiryTimeNode.Attributes["id"] != null) { expiryTimeIDRef_ = expiryTimeNode.Attributes["id"].Value; XsdTypeDateTime ob = new XsdTypeDateTime(expiryTimeNode); IDManager.SetID(expiryTimeIDRef_, ob); } else if (expiryTimeNode.Attributes["href"] != null) { expiryTimeIDRef_ = expiryTimeNode.Attributes["href"].Value; } else { expiryTime_ = new XsdTypeDateTime(expiryTimeNode); } } else { expiryTime_ = new XsdTypeDateTime(expiryTimeNode); } } XmlNode cashflowTypeNode = xmlNode.SelectSingleNode("cashflowType"); if (cashflowTypeNode != null) { if (cashflowTypeNode.Attributes["href"] != null || cashflowTypeNode.Attributes["id"] != null) { if (cashflowTypeNode.Attributes["id"] != null) { cashflowTypeIDRef_ = cashflowTypeNode.Attributes["id"].Value; CashflowType ob = new CashflowType(cashflowTypeNode); IDManager.SetID(cashflowTypeIDRef_, ob); } else if (cashflowTypeNode.Attributes["href"] != null) { cashflowTypeIDRef_ = cashflowTypeNode.Attributes["href"].Value; } else { cashflowType_ = new CashflowType(cashflowTypeNode); } } else { cashflowType_ = new CashflowType(cashflowTypeNode); } } }
public AbsoluteTolerance(XmlNode xmlNode) { XmlNode positiveNode = xmlNode.SelectSingleNode("positive"); if (positiveNode != null) { if (positiveNode.Attributes["href"] != null || positiveNode.Attributes["id"] != null) { if (positiveNode.Attributes["id"] != null) { positiveIDRef_ = positiveNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(positiveNode); IDManager.SetID(positiveIDRef_, ob); } else if (positiveNode.Attributes["href"] != null) { positiveIDRef_ = positiveNode.Attributes["href"].Value; } else { positive_ = new XsdTypeDecimal(positiveNode); } } else { positive_ = new XsdTypeDecimal(positiveNode); } } XmlNode negativeNode = xmlNode.SelectSingleNode("negative"); if (negativeNode != null) { if (negativeNode.Attributes["href"] != null || negativeNode.Attributes["id"] != null) { if (negativeNode.Attributes["id"] != null) { negativeIDRef_ = negativeNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(negativeNode); IDManager.SetID(negativeIDRef_, ob); } else if (negativeNode.Attributes["href"] != null) { negativeIDRef_ = negativeNode.Attributes["href"].Value; } else { negative_ = new XsdTypeDecimal(negativeNode); } } else { negative_ = new XsdTypeDecimal(negativeNode); } } XmlNode unitNode = xmlNode.SelectSingleNode("unit"); if (unitNode != null) { if (unitNode.Attributes["href"] != null || unitNode.Attributes["id"] != null) { if (unitNode.Attributes["id"] != null) { unitIDRef_ = unitNode.Attributes["id"].Value; QuantityUnit ob = new QuantityUnit(unitNode); IDManager.SetID(unitIDRef_, ob); } else if (unitNode.Attributes["href"] != null) { unitIDRef_ = unitNode.Attributes["href"].Value; } else { unit_ = new QuantityUnit(unitNode); } } else { unit_ = new QuantityUnit(unitNode); } } XmlNode optionOwnerPartyReferenceNode = xmlNode.SelectSingleNode("optionOwnerPartyReference"); if (optionOwnerPartyReferenceNode != null) { if (optionOwnerPartyReferenceNode.Attributes["href"] != null || optionOwnerPartyReferenceNode.Attributes["id"] != null) { if (optionOwnerPartyReferenceNode.Attributes["id"] != null) { optionOwnerPartyReferenceIDRef_ = optionOwnerPartyReferenceNode.Attributes["id"].Value; PartyReference ob = new PartyReference(optionOwnerPartyReferenceNode); IDManager.SetID(optionOwnerPartyReferenceIDRef_, ob); } else if (optionOwnerPartyReferenceNode.Attributes["href"] != null) { optionOwnerPartyReferenceIDRef_ = optionOwnerPartyReferenceNode.Attributes["href"].Value; } else { optionOwnerPartyReference_ = new PartyReference(optionOwnerPartyReferenceNode); } } else { optionOwnerPartyReference_ = new PartyReference(optionOwnerPartyReferenceNode); } } }
public Basket(XmlNode xmlNode) : base(xmlNode) { XmlNode openUnitsNode = xmlNode.SelectSingleNode("openUnits"); if (openUnitsNode != null) { if (openUnitsNode.Attributes["href"] != null || openUnitsNode.Attributes["id"] != null) { if (openUnitsNode.Attributes["id"] != null) { openUnitsIDRef_ = openUnitsNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(openUnitsNode); IDManager.SetID(openUnitsIDRef_, ob); } else if (openUnitsNode.Attributes["href"] != null) { openUnitsIDRef_ = openUnitsNode.Attributes["href"].Value; } else { openUnits_ = new XsdTypeDecimal(openUnitsNode); } } else { openUnits_ = new XsdTypeDecimal(openUnitsNode); } } XmlNodeList basketConstituentNodeList = xmlNode.SelectNodes("basketConstituent"); if (basketConstituentNodeList != null) { this.basketConstituent_ = new List<BasketConstituent>(); foreach (XmlNode item in basketConstituentNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { basketConstituentIDRef_ = item.Attributes["id"].Value; basketConstituent_.Add(new BasketConstituent(item)); IDManager.SetID(basketConstituentIDRef_, basketConstituent_[basketConstituent_.Count - 1 ]); } else if (item.Attributes["href"] != null) { basketConstituentIDRef_ = item.Attributes["href"].Value; } else { basketConstituent_.Add(new BasketConstituent(item)); } } else { basketConstituent_.Add(new BasketConstituent(item)); } } } XmlNode basketDivisorNode = xmlNode.SelectSingleNode("basketDivisor"); if (basketDivisorNode != null) { if (basketDivisorNode.Attributes["href"] != null || basketDivisorNode.Attributes["id"] != null) { if (basketDivisorNode.Attributes["id"] != null) { basketDivisorIDRef_ = basketDivisorNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(basketDivisorNode); IDManager.SetID(basketDivisorIDRef_, ob); } else if (basketDivisorNode.Attributes["href"] != null) { basketDivisorIDRef_ = basketDivisorNode.Attributes["href"].Value; } else { basketDivisor_ = new XsdTypeDecimal(basketDivisorNode); } } else { basketDivisor_ = new XsdTypeDecimal(basketDivisorNode); } } XmlNode basketNameNode = xmlNode.SelectSingleNode("basketName"); if (basketNameNode != null) { if (basketNameNode.Attributes["href"] != null || basketNameNode.Attributes["id"] != null) { if (basketNameNode.Attributes["id"] != null) { basketNameIDRef_ = basketNameNode.Attributes["id"].Value; BasketName ob = new BasketName(basketNameNode); IDManager.SetID(basketNameIDRef_, ob); } else if (basketNameNode.Attributes["href"] != null) { basketNameIDRef_ = basketNameNode.Attributes["href"].Value; } else { basketName_ = new BasketName(basketNameNode); } } else { basketName_ = new BasketName(basketNameNode); } } XmlNodeList basketIdNodeList = xmlNode.SelectNodes("basketId"); if (basketIdNodeList != null) { this.basketId_ = new List<BasketId>(); foreach (XmlNode item in basketIdNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { basketIdIDRef_ = item.Attributes["id"].Value; basketId_.Add(new BasketId(item)); IDManager.SetID(basketIdIDRef_, basketId_[basketId_.Count - 1 ]); } else if (item.Attributes["href"] != null) { basketIdIDRef_ = item.Attributes["href"].Value; } else { basketId_.Add(new BasketId(item)); } } else { basketId_.Add(new BasketId(item)); } } } XmlNode basketCurrencyNode = xmlNode.SelectSingleNode("basketCurrency"); if (basketCurrencyNode != null) { if (basketCurrencyNode.Attributes["href"] != null || basketCurrencyNode.Attributes["id"] != null) { if (basketCurrencyNode.Attributes["id"] != null) { basketCurrencyIDRef_ = basketCurrencyNode.Attributes["id"].Value; Currency ob = new Currency(basketCurrencyNode); IDManager.SetID(basketCurrencyIDRef_, ob); } else if (basketCurrencyNode.Attributes["href"] != null) { basketCurrencyIDRef_ = basketCurrencyNode.Attributes["href"].Value; } else { basketCurrency_ = new Currency(basketCurrencyNode); } } else { basketCurrency_ = new Currency(basketCurrencyNode); } } }
public CashflowNotional(XmlNode xmlNode) { XmlNode currencyNode = xmlNode.SelectSingleNode("currency"); if (currencyNode != null) { if (currencyNode.Attributes["href"] != null || currencyNode.Attributes["id"] != null) { if (currencyNode.Attributes["id"] != null) { currencyIDRef_ = currencyNode.Attributes["id"].Value; Currency ob = new Currency(currencyNode); IDManager.SetID(currencyIDRef_, ob); } else if (currencyNode.Attributes["href"] != null) { currencyIDRef_ = currencyNode.Attributes["href"].Value; } else { currency_ = new Currency(currencyNode); } } else { currency_ = new Currency(currencyNode); } } XmlNode unitsNode = xmlNode.SelectSingleNode("units"); if (unitsNode != null) { if (unitsNode.Attributes["href"] != null || unitsNode.Attributes["id"] != null) { if (unitsNode.Attributes["id"] != null) { unitsIDRef_ = unitsNode.Attributes["id"].Value; XsdTypeNormalizedString ob = new XsdTypeNormalizedString(unitsNode); IDManager.SetID(unitsIDRef_, ob); } else if (unitsNode.Attributes["href"] != null) { unitsIDRef_ = unitsNode.Attributes["href"].Value; } else { units_ = new XsdTypeNormalizedString(unitsNode); } } else { units_ = new XsdTypeNormalizedString(unitsNode); } } XmlNode amountNode = xmlNode.SelectSingleNode("amount"); if (amountNode != null) { if (amountNode.Attributes["href"] != null || amountNode.Attributes["id"] != null) { if (amountNode.Attributes["id"] != null) { amountIDRef_ = amountNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(amountNode); IDManager.SetID(amountIDRef_, ob); } else if (amountNode.Attributes["href"] != null) { amountIDRef_ = amountNode.Attributes["href"].Value; } else { amount_ = new XsdTypeDecimal(amountNode); } } else { amount_ = new XsdTypeDecimal(amountNode); } } }
public FloatingRateDefinition(XmlNode xmlNode) { XmlNode calculatedRateNode = xmlNode.SelectSingleNode("calculatedRate"); if (calculatedRateNode != null) { if (calculatedRateNode.Attributes["href"] != null || calculatedRateNode.Attributes["id"] != null) { if (calculatedRateNode.Attributes["id"] != null) { calculatedRateIDRef_ = calculatedRateNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(calculatedRateNode); IDManager.SetID(calculatedRateIDRef_, ob); } else if (calculatedRateNode.Attributes["href"] != null) { calculatedRateIDRef_ = calculatedRateNode.Attributes["href"].Value; } else { calculatedRate_ = new XsdTypeDecimal(calculatedRateNode); } } else { calculatedRate_ = new XsdTypeDecimal(calculatedRateNode); } } XmlNodeList rateObservationNodeList = xmlNode.SelectNodes("rateObservation"); if (rateObservationNodeList != null) { this.rateObservation_ = new List<RateObservation>(); foreach (XmlNode item in rateObservationNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { rateObservationIDRef_ = item.Attributes["id"].Value; rateObservation_.Add(new RateObservation(item)); IDManager.SetID(rateObservationIDRef_, rateObservation_[rateObservation_.Count - 1 ]); } else if (item.Attributes["href"] != null) { rateObservationIDRef_ = item.Attributes["href"].Value; } else { rateObservation_.Add(new RateObservation(item)); } } else { rateObservation_.Add(new RateObservation(item)); } } } XmlNode floatingRateMultiplierNode = xmlNode.SelectSingleNode("floatingRateMultiplier"); if (floatingRateMultiplierNode != null) { if (floatingRateMultiplierNode.Attributes["href"] != null || floatingRateMultiplierNode.Attributes["id"] != null) { if (floatingRateMultiplierNode.Attributes["id"] != null) { floatingRateMultiplierIDRef_ = floatingRateMultiplierNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(floatingRateMultiplierNode); IDManager.SetID(floatingRateMultiplierIDRef_, ob); } else if (floatingRateMultiplierNode.Attributes["href"] != null) { floatingRateMultiplierIDRef_ = floatingRateMultiplierNode.Attributes["href"].Value; } else { floatingRateMultiplier_ = new XsdTypeDecimal(floatingRateMultiplierNode); } } else { floatingRateMultiplier_ = new XsdTypeDecimal(floatingRateMultiplierNode); } } XmlNode spreadNode = xmlNode.SelectSingleNode("spread"); if (spreadNode != null) { if (spreadNode.Attributes["href"] != null || spreadNode.Attributes["id"] != null) { if (spreadNode.Attributes["id"] != null) { spreadIDRef_ = spreadNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(spreadNode); IDManager.SetID(spreadIDRef_, ob); } else if (spreadNode.Attributes["href"] != null) { spreadIDRef_ = spreadNode.Attributes["href"].Value; } else { spread_ = new XsdTypeDecimal(spreadNode); } } else { spread_ = new XsdTypeDecimal(spreadNode); } } XmlNodeList capRateNodeList = xmlNode.SelectNodes("capRate"); if (capRateNodeList != null) { this.capRate_ = new List<Strike>(); foreach (XmlNode item in capRateNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { capRateIDRef_ = item.Attributes["id"].Value; capRate_.Add(new Strike(item)); IDManager.SetID(capRateIDRef_, capRate_[capRate_.Count - 1 ]); } else if (item.Attributes["href"] != null) { capRateIDRef_ = item.Attributes["href"].Value; } else { capRate_.Add(new Strike(item)); } } else { capRate_.Add(new Strike(item)); } } } XmlNodeList floorRateNodeList = xmlNode.SelectNodes("floorRate"); if (floorRateNodeList != null) { this.floorRate_ = new List<Strike>(); foreach (XmlNode item in floorRateNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { floorRateIDRef_ = item.Attributes["id"].Value; floorRate_.Add(new Strike(item)); IDManager.SetID(floorRateIDRef_, floorRate_[floorRate_.Count - 1 ]); } else if (item.Attributes["href"] != null) { floorRateIDRef_ = item.Attributes["href"].Value; } else { floorRate_.Add(new Strike(item)); } } else { floorRate_.Add(new Strike(item)); } } } }
public FormulaTerm(XmlNode xmlNode) { XmlNode coefficientNode = xmlNode.SelectSingleNode("coefficient"); if (coefficientNode != null) { if (coefficientNode.Attributes["href"] != null || coefficientNode.Attributes["id"] != null) { if (coefficientNode.Attributes["id"] != null) { coefficientIDRef_ = coefficientNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(coefficientNode); IDManager.SetID(coefficientIDRef_, ob); } else if (coefficientNode.Attributes["href"] != null) { coefficientIDRef_ = coefficientNode.Attributes["href"].Value; } else { coefficient_ = new XsdTypeDecimal(coefficientNode); } } else { coefficient_ = new XsdTypeDecimal(coefficientNode); } } XmlNodeList partialDerivativeReferenceNodeList = xmlNode.SelectNodes("partialDerivativeReference"); if (partialDerivativeReferenceNodeList != null) { this.partialDerivativeReference_ = new List<PricingParameterDerivativeReference>(); foreach (XmlNode item in partialDerivativeReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { partialDerivativeReferenceIDRef_ = item.Attributes["id"].Value; partialDerivativeReference_.Add(new PricingParameterDerivativeReference(item)); IDManager.SetID(partialDerivativeReferenceIDRef_, partialDerivativeReference_[partialDerivativeReference_.Count - 1 ]); } else if (item.Attributes["href"] != null) { partialDerivativeReferenceIDRef_ = item.Attributes["href"].Value; } else { partialDerivativeReference_.Add(new PricingParameterDerivativeReference(item)); } } else { partialDerivativeReference_.Add(new PricingParameterDerivativeReference(item)); } } } }
public IssueInformation(XmlNode xmlNode) { XmlNode productTypeNode = xmlNode.SelectSingleNode("productType"); if (productTypeNode != null) { if (productTypeNode.Attributes["href"] != null || productTypeNode.Attributes["id"] != null) { if (productTypeNode.Attributes["id"] != null) { productTypeIDRef_ = productTypeNode.Attributes["id"].Value; XsdTypeToken ob = new XsdTypeToken(productTypeNode); IDManager.SetID(productTypeIDRef_, ob); } else if (productTypeNode.Attributes["href"] != null) { productTypeIDRef_ = productTypeNode.Attributes["href"].Value; } else { productType_ = new XsdTypeToken(productTypeNode); } } else { productType_ = new XsdTypeToken(productTypeNode); } } XmlNode instrumentIDNode = xmlNode.SelectSingleNode("instrumentID"); if (instrumentIDNode != null) { if (instrumentIDNode.Attributes["href"] != null || instrumentIDNode.Attributes["id"] != null) { if (instrumentIDNode.Attributes["id"] != null) { instrumentIDIDRef_ = instrumentIDNode.Attributes["id"].Value; XsdTypeToken ob = new XsdTypeToken(instrumentIDNode); IDManager.SetID(instrumentIDIDRef_, ob); } else if (instrumentIDNode.Attributes["href"] != null) { instrumentIDIDRef_ = instrumentIDNode.Attributes["href"].Value; } else { instrumentID_ = new XsdTypeToken(instrumentIDNode); } } else { instrumentID_ = new XsdTypeToken(instrumentIDNode); } } XmlNode notionalNode = xmlNode.SelectSingleNode("notional"); if (notionalNode != null) { if (notionalNode.Attributes["href"] != null || notionalNode.Attributes["id"] != null) { if (notionalNode.Attributes["id"] != null) { notionalIDRef_ = notionalNode.Attributes["id"].Value; XsdTypeDecimal ob = new XsdTypeDecimal(notionalNode); IDManager.SetID(notionalIDRef_, ob); } else if (notionalNode.Attributes["href"] != null) { notionalIDRef_ = notionalNode.Attributes["href"].Value; } else { notional_ = new XsdTypeDecimal(notionalNode); } } else { notional_ = new XsdTypeDecimal(notionalNode); } } XmlNode issueDateNode = xmlNode.SelectSingleNode("issueDate"); if (issueDateNode != null) { if (issueDateNode.Attributes["href"] != null || issueDateNode.Attributes["id"] != null) { if (issueDateNode.Attributes["id"] != null) { issueDateIDRef_ = issueDateNode.Attributes["id"].Value; EventDate ob = new EventDate(issueDateNode); IDManager.SetID(issueDateIDRef_, ob); } else if (issueDateNode.Attributes["href"] != null) { issueDateIDRef_ = issueDateNode.Attributes["href"].Value; } else { issueDate_ = new EventDate(issueDateNode); } } else { issueDate_ = new EventDate(issueDateNode); } } XmlNode maturityDateNode = xmlNode.SelectSingleNode("maturityDate"); if (maturityDateNode != null) { if (maturityDateNode.Attributes["href"] != null || maturityDateNode.Attributes["id"] != null) { if (maturityDateNode.Attributes["id"] != null) { maturityDateIDRef_ = maturityDateNode.Attributes["id"].Value; EventDate ob = new EventDate(maturityDateNode); IDManager.SetID(maturityDateIDRef_, ob); } else if (maturityDateNode.Attributes["href"] != null) { maturityDateIDRef_ = maturityDateNode.Attributes["href"].Value; } else { maturityDate_ = new EventDate(maturityDateNode); } } else { maturityDate_ = new EventDate(maturityDateNode); } } }