public NettedSwapBase(XmlNode xmlNode) : base(xmlNode) { XmlNodeList additionalPaymentNodeList = xmlNode.SelectNodes("additionalPayment"); foreach (XmlNode item in additionalPaymentNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { additionalPaymentIDRef = item.Attributes["id"].Name; List<ClassifiedPayment> ob = new List<ClassifiedPayment>(); ob.Add(new ClassifiedPayment(item)); IDManager.SetID(additionalPaymentIDRef, ob); } else if (item.Attributes.ToString() == "href") { additionalPaymentIDRef = item.Attributes["href"].Name; } else { additionalPayment.Add(new ClassifiedPayment(item)); } } } XmlNodeList extraordinaryEventsNodeList = xmlNode.SelectNodes("extraordinaryEvents"); if (extraordinaryEventsNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in extraordinaryEventsNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { extraordinaryEventsIDRef = item.Attributes["id"].Name; ExtraordinaryEvents ob = ExtraordinaryEvents(); IDManager.SetID(extraordinaryEventsIDRef, ob); } else if (item.Attributes.ToString() == "href") { extraordinaryEventsIDRef = item.Attributes["href"].Name; } else { extraordinaryEvents = new ExtraordinaryEvents(item); } } } }
public NettedSwapBase(XmlNode xmlNode) : base(xmlNode) { XmlNodeList additionalPaymentNodeList = xmlNode.SelectNodes("additionalPayment"); foreach (XmlNode item in additionalPaymentNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { additionalPaymentIDRef = item.Attributes["id"].Name; List <ClassifiedPayment> ob = new List <ClassifiedPayment>(); ob.Add(new ClassifiedPayment(item)); IDManager.SetID(additionalPaymentIDRef, ob); } else if (item.Attributes.ToString() == "href") { additionalPaymentIDRef = item.Attributes["href"].Name; } else { additionalPayment.Add(new ClassifiedPayment(item)); } } } XmlNodeList extraordinaryEventsNodeList = xmlNode.SelectNodes("extraordinaryEvents"); if (extraordinaryEventsNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in extraordinaryEventsNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { extraordinaryEventsIDRef = item.Attributes["id"].Name; ExtraordinaryEvents ob = ExtraordinaryEvents(); IDManager.SetID(extraordinaryEventsIDRef, ob); } else if (item.Attributes.ToString() == "href") { extraordinaryEventsIDRef = item.Attributes["href"].Name; } else { extraordinaryEvents = new ExtraordinaryEvents(item); } } } }
public EquityOptionTransactionSupplement(XmlNode xmlNode) : base(xmlNode) { XmlNode exchangeLookAlikeNode = xmlNode.SelectSingleNode("exchangeLookAlike"); if (exchangeLookAlikeNode != null) { if (exchangeLookAlikeNode.Attributes["href"] != null || exchangeLookAlikeNode.Attributes["id"] != null) { if (exchangeLookAlikeNode.Attributes["id"] != null) { exchangeLookAlikeIDRef_ = exchangeLookAlikeNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(exchangeLookAlikeNode); IDManager.SetID(exchangeLookAlikeIDRef_, ob); } else if (exchangeLookAlikeNode.Attributes["href"] != null) { exchangeLookAlikeIDRef_ = exchangeLookAlikeNode.Attributes["href"].Value; } else { exchangeLookAlike_ = new XsdTypeBoolean(exchangeLookAlikeNode); } } else { exchangeLookAlike_ = new XsdTypeBoolean(exchangeLookAlikeNode); } } XmlNode exchangeTradedContractNearestNode = xmlNode.SelectSingleNode("exchangeTradedContractNearest"); if (exchangeTradedContractNearestNode != null) { if (exchangeTradedContractNearestNode.Attributes["href"] != null || exchangeTradedContractNearestNode.Attributes["id"] != null) { if (exchangeTradedContractNearestNode.Attributes["id"] != null) { exchangeTradedContractNearestIDRef_ = exchangeTradedContractNearestNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(exchangeTradedContractNearestNode); IDManager.SetID(exchangeTradedContractNearestIDRef_, ob); } else if (exchangeTradedContractNearestNode.Attributes["href"] != null) { exchangeTradedContractNearestIDRef_ = exchangeTradedContractNearestNode.Attributes["href"].Value; } else { exchangeTradedContractNearest_ = new XsdTypeBoolean(exchangeTradedContractNearestNode); } } else { exchangeTradedContractNearest_ = new XsdTypeBoolean(exchangeTradedContractNearestNode); } } XmlNode multipleExchangeIndexAnnexFallbackNode = xmlNode.SelectSingleNode("multipleExchangeIndexAnnexFallback"); if (multipleExchangeIndexAnnexFallbackNode != null) { if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null || multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null) { if (multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null) { multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode); IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef_, ob); } else if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null) { multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["href"].Value; } else { multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode); } } else { multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode); } } XmlNode componentSecurityIndexAnnexFallbackNode = xmlNode.SelectSingleNode("componentSecurityIndexAnnexFallback"); if (componentSecurityIndexAnnexFallbackNode != null) { if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null || componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null) { if (componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null) { componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode); IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef_, ob); } else if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null) { componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["href"].Value; } else { componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode); } } else { componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode); } } XmlNode methodOfAdjustmentNode = xmlNode.SelectSingleNode("methodOfAdjustment"); if (methodOfAdjustmentNode != null) { if (methodOfAdjustmentNode.Attributes["href"] != null || methodOfAdjustmentNode.Attributes["id"] != null) { if (methodOfAdjustmentNode.Attributes["id"] != null) { methodOfAdjustmentIDRef_ = methodOfAdjustmentNode.Attributes["id"].Value; MethodOfAdjustmentEnum ob = new MethodOfAdjustmentEnum(methodOfAdjustmentNode); IDManager.SetID(methodOfAdjustmentIDRef_, ob); } else if (methodOfAdjustmentNode.Attributes["href"] != null) { methodOfAdjustmentIDRef_ = methodOfAdjustmentNode.Attributes["href"].Value; } else { methodOfAdjustment_ = new MethodOfAdjustmentEnum(methodOfAdjustmentNode); } } else { methodOfAdjustment_ = new MethodOfAdjustmentEnum(methodOfAdjustmentNode); } } XmlNode localJurisdictionNode = xmlNode.SelectSingleNode("localJurisdiction"); if (localJurisdictionNode != null) { if (localJurisdictionNode.Attributes["href"] != null || localJurisdictionNode.Attributes["id"] != null) { if (localJurisdictionNode.Attributes["id"] != null) { localJurisdictionIDRef_ = localJurisdictionNode.Attributes["id"].Value; CountryCode ob = new CountryCode(localJurisdictionNode); IDManager.SetID(localJurisdictionIDRef_, ob); } else if (localJurisdictionNode.Attributes["href"] != null) { localJurisdictionIDRef_ = localJurisdictionNode.Attributes["href"].Value; } else { localJurisdiction_ = new CountryCode(localJurisdictionNode); } } else { localJurisdiction_ = new CountryCode(localJurisdictionNode); } } XmlNode optionEntitlementNode = xmlNode.SelectSingleNode("optionEntitlement"); if (optionEntitlementNode != null) { if (optionEntitlementNode.Attributes["href"] != null || optionEntitlementNode.Attributes["id"] != null) { if (optionEntitlementNode.Attributes["id"] != null) { optionEntitlementIDRef_ = optionEntitlementNode.Attributes["id"].Value; PositiveDecimal ob = new PositiveDecimal(optionEntitlementNode); IDManager.SetID(optionEntitlementIDRef_, ob); } else if (optionEntitlementNode.Attributes["href"] != null) { optionEntitlementIDRef_ = optionEntitlementNode.Attributes["href"].Value; } else { optionEntitlement_ = new PositiveDecimal(optionEntitlementNode); } } else { optionEntitlement_ = new PositiveDecimal(optionEntitlementNode); } } XmlNode multiplierNode = xmlNode.SelectSingleNode("multiplier"); if (multiplierNode != null) { if (multiplierNode.Attributes["href"] != null || multiplierNode.Attributes["id"] != null) { if (multiplierNode.Attributes["id"] != null) { multiplierIDRef_ = multiplierNode.Attributes["id"].Value; PositiveDecimal ob = new PositiveDecimal(multiplierNode); IDManager.SetID(multiplierIDRef_, ob); } else if (multiplierNode.Attributes["href"] != null) { multiplierIDRef_ = multiplierNode.Attributes["href"].Value; } else { multiplier_ = new PositiveDecimal(multiplierNode); } } else { multiplier_ = new PositiveDecimal(multiplierNode); } } XmlNode extraordinaryEventsNode = xmlNode.SelectSingleNode("extraordinaryEvents"); if (extraordinaryEventsNode != null) { if (extraordinaryEventsNode.Attributes["href"] != null || extraordinaryEventsNode.Attributes["id"] != null) { if (extraordinaryEventsNode.Attributes["id"] != null) { extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["id"].Value; ExtraordinaryEvents ob = new ExtraordinaryEvents(extraordinaryEventsNode); IDManager.SetID(extraordinaryEventsIDRef_, ob); } else if (extraordinaryEventsNode.Attributes["href"] != null) { extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["href"].Value; } else { extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode); } } else { extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode); } } }
public EquitySwapTransactionSupplement(XmlNode xmlNode) : base(xmlNode) { XmlNode mutualEarlyTerminationNode = xmlNode.SelectSingleNode("mutualEarlyTermination"); if (mutualEarlyTerminationNode != null) { if (mutualEarlyTerminationNode.Attributes["href"] != null || mutualEarlyTerminationNode.Attributes["id"] != null) { if (mutualEarlyTerminationNode.Attributes["id"] != null) { mutualEarlyTerminationIDRef_ = mutualEarlyTerminationNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(mutualEarlyTerminationNode); IDManager.SetID(mutualEarlyTerminationIDRef_, ob); } else if (mutualEarlyTerminationNode.Attributes["href"] != null) { mutualEarlyTerminationIDRef_ = mutualEarlyTerminationNode.Attributes["href"].Value; } else { mutualEarlyTermination_ = new XsdTypeBoolean(mutualEarlyTerminationNode); } } else { mutualEarlyTermination_ = new XsdTypeBoolean(mutualEarlyTerminationNode); } } XmlNode optionalEarlyTerminationNode = xmlNode.SelectSingleNode("optionalEarlyTermination"); if (optionalEarlyTerminationNode != null) { if (optionalEarlyTerminationNode.Attributes["href"] != null || optionalEarlyTerminationNode.Attributes["id"] != null) { if (optionalEarlyTerminationNode.Attributes["id"] != null) { optionalEarlyTerminationIDRef_ = optionalEarlyTerminationNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(optionalEarlyTerminationNode); IDManager.SetID(optionalEarlyTerminationIDRef_, ob); } else if (optionalEarlyTerminationNode.Attributes["href"] != null) { optionalEarlyTerminationIDRef_ = optionalEarlyTerminationNode.Attributes["href"].Value; } else { optionalEarlyTermination_ = new XsdTypeBoolean(optionalEarlyTerminationNode); } } else { optionalEarlyTermination_ = new XsdTypeBoolean(optionalEarlyTerminationNode); } } XmlNode breakFundingRecoveryNode = xmlNode.SelectSingleNode("breakFundingRecovery"); if (breakFundingRecoveryNode != null) { if (breakFundingRecoveryNode.Attributes["href"] != null || breakFundingRecoveryNode.Attributes["id"] != null) { if (breakFundingRecoveryNode.Attributes["id"] != null) { breakFundingRecoveryIDRef_ = breakFundingRecoveryNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(breakFundingRecoveryNode); IDManager.SetID(breakFundingRecoveryIDRef_, ob); } else if (breakFundingRecoveryNode.Attributes["href"] != null) { breakFundingRecoveryIDRef_ = breakFundingRecoveryNode.Attributes["href"].Value; } else { breakFundingRecovery_ = new XsdTypeBoolean(breakFundingRecoveryNode); } } else { breakFundingRecovery_ = new XsdTypeBoolean(breakFundingRecoveryNode); } } XmlNode breakFeeElectionNode = xmlNode.SelectSingleNode("breakFeeElection"); if (breakFeeElectionNode != null) { if (breakFeeElectionNode.Attributes["href"] != null || breakFeeElectionNode.Attributes["id"] != null) { if (breakFeeElectionNode.Attributes["id"] != null) { breakFeeElectionIDRef_ = breakFeeElectionNode.Attributes["id"].Value; FeeElectionEnum ob = new FeeElectionEnum(breakFeeElectionNode); IDManager.SetID(breakFeeElectionIDRef_, ob); } else if (breakFeeElectionNode.Attributes["href"] != null) { breakFeeElectionIDRef_ = breakFeeElectionNode.Attributes["href"].Value; } else { breakFeeElection_ = new FeeElectionEnum(breakFeeElectionNode); } } else { breakFeeElection_ = new FeeElectionEnum(breakFeeElectionNode); } } XmlNode breakFeeRateNode = xmlNode.SelectSingleNode("breakFeeRate"); if (breakFeeRateNode != null) { if (breakFeeRateNode.Attributes["href"] != null || breakFeeRateNode.Attributes["id"] != null) { if (breakFeeRateNode.Attributes["id"] != null) { breakFeeRateIDRef_ = breakFeeRateNode.Attributes["id"].Value; NonNegativeDecimal ob = new NonNegativeDecimal(breakFeeRateNode); IDManager.SetID(breakFeeRateIDRef_, ob); } else if (breakFeeRateNode.Attributes["href"] != null) { breakFeeRateIDRef_ = breakFeeRateNode.Attributes["href"].Value; } else { breakFeeRate_ = new NonNegativeDecimal(breakFeeRateNode); } } else { breakFeeRate_ = new NonNegativeDecimal(breakFeeRateNode); } } XmlNode multipleExchangeIndexAnnexFallbackNode = xmlNode.SelectSingleNode("multipleExchangeIndexAnnexFallback"); if (multipleExchangeIndexAnnexFallbackNode != null) { if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null || multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null) { if (multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null) { multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode); IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef_, ob); } else if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null) { multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["href"].Value; } else { multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode); } } else { multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode); } } XmlNode componentSecurityIndexAnnexFallbackNode = xmlNode.SelectSingleNode("componentSecurityIndexAnnexFallback"); if (componentSecurityIndexAnnexFallbackNode != null) { if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null || componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null) { if (componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null) { componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode); IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef_, ob); } else if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null) { componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["href"].Value; } else { componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode); } } else { componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode); } } XmlNode localJurisdictionNode = xmlNode.SelectSingleNode("localJurisdiction"); if (localJurisdictionNode != null) { if (localJurisdictionNode.Attributes["href"] != null || localJurisdictionNode.Attributes["id"] != null) { if (localJurisdictionNode.Attributes["id"] != null) { localJurisdictionIDRef_ = localJurisdictionNode.Attributes["id"].Value; CountryCode ob = new CountryCode(localJurisdictionNode); IDManager.SetID(localJurisdictionIDRef_, ob); } else if (localJurisdictionNode.Attributes["href"] != null) { localJurisdictionIDRef_ = localJurisdictionNode.Attributes["href"].Value; } else { localJurisdiction_ = new CountryCode(localJurisdictionNode); } } else { localJurisdiction_ = new CountryCode(localJurisdictionNode); } } XmlNode relevantJurisdictionNode = xmlNode.SelectSingleNode("relevantJurisdiction"); if (relevantJurisdictionNode != null) { if (relevantJurisdictionNode.Attributes["href"] != null || relevantJurisdictionNode.Attributes["id"] != null) { if (relevantJurisdictionNode.Attributes["id"] != null) { relevantJurisdictionIDRef_ = relevantJurisdictionNode.Attributes["id"].Value; CountryCode ob = new CountryCode(relevantJurisdictionNode); IDManager.SetID(relevantJurisdictionIDRef_, ob); } else if (relevantJurisdictionNode.Attributes["href"] != null) { relevantJurisdictionIDRef_ = relevantJurisdictionNode.Attributes["href"].Value; } else { relevantJurisdiction_ = new CountryCode(relevantJurisdictionNode); } } else { relevantJurisdiction_ = new CountryCode(relevantJurisdictionNode); } } XmlNode extraordinaryEventsNode = xmlNode.SelectSingleNode("extraordinaryEvents"); if (extraordinaryEventsNode != null) { if (extraordinaryEventsNode.Attributes["href"] != null || extraordinaryEventsNode.Attributes["id"] != null) { if (extraordinaryEventsNode.Attributes["id"] != null) { extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["id"].Value; ExtraordinaryEvents ob = new ExtraordinaryEvents(extraordinaryEventsNode); IDManager.SetID(extraordinaryEventsIDRef_, ob); } else if (extraordinaryEventsNode.Attributes["href"] != null) { extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["href"].Value; } else { extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode); } } else { extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode); } } }
public EquitySwapTransactionSupplement(XmlNode xmlNode) : base(xmlNode) { XmlNodeList mutualEarlyTerminationNodeList = xmlNode.SelectNodes("mutualEarlyTermination"); if (mutualEarlyTerminationNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in mutualEarlyTerminationNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { mutualEarlyTerminationIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(mutualEarlyTerminationIDRef, ob); } else if (item.Attributes.ToString() == "href") { mutualEarlyTerminationIDRef = item.Attributes["href"].Name; } else { mutualEarlyTermination = new XsdTypeBoolean(item); } } } XmlNodeList optionalEarlyTerminationNodeList = xmlNode.SelectNodes("optionalEarlyTermination"); if (optionalEarlyTerminationNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in optionalEarlyTerminationNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { optionalEarlyTerminationIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(optionalEarlyTerminationIDRef, ob); } else if (item.Attributes.ToString() == "href") { optionalEarlyTerminationIDRef = item.Attributes["href"].Name; } else { optionalEarlyTermination = new XsdTypeBoolean(item); } } } XmlNodeList breakFundingRecoveryNodeList = xmlNode.SelectNodes("breakFundingRecovery"); if (breakFundingRecoveryNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in breakFundingRecoveryNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { breakFundingRecoveryIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(breakFundingRecoveryIDRef, ob); } else if (item.Attributes.ToString() == "href") { breakFundingRecoveryIDRef = item.Attributes["href"].Name; } else { breakFundingRecovery = new XsdTypeBoolean(item); } } } XmlNodeList breakFeeElectionNodeList = xmlNode.SelectNodes("breakFeeElection"); if (breakFeeElectionNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in breakFeeElectionNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { breakFeeElectionIDRef = item.Attributes["id"].Name; FeeElectionEnum ob = FeeElectionEnum(); IDManager.SetID(breakFeeElectionIDRef, ob); } else if (item.Attributes.ToString() == "href") { breakFeeElectionIDRef = item.Attributes["href"].Name; } else { breakFeeElection = new FeeElectionEnum(item); } } } XmlNodeList breakFeeRateNodeList = xmlNode.SelectNodes("breakFeeRate"); if (breakFeeRateNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in breakFeeRateNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { breakFeeRateIDRef = item.Attributes["id"].Name; NonNegativeDecimal ob = NonNegativeDecimal(); IDManager.SetID(breakFeeRateIDRef, ob); } else if (item.Attributes.ToString() == "href") { breakFeeRateIDRef = item.Attributes["href"].Name; } else { breakFeeRate = new NonNegativeDecimal(item); } } } XmlNodeList multipleExchangeIndexAnnexFallbackNodeList = xmlNode.SelectNodes("multipleExchangeIndexAnnexFallback"); if (multipleExchangeIndexAnnexFallbackNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in multipleExchangeIndexAnnexFallbackNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef, ob); } else if (item.Attributes.ToString() == "href") { multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["href"].Name; } else { multipleExchangeIndexAnnexFallback = new XsdTypeBoolean(item); } } } XmlNodeList componentSecurityIndexAnnexFallbackNodeList = xmlNode.SelectNodes("componentSecurityIndexAnnexFallback"); if (componentSecurityIndexAnnexFallbackNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in componentSecurityIndexAnnexFallbackNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { componentSecurityIndexAnnexFallbackIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef, ob); } else if (item.Attributes.ToString() == "href") { componentSecurityIndexAnnexFallbackIDRef = item.Attributes["href"].Name; } else { componentSecurityIndexAnnexFallback = new XsdTypeBoolean(item); } } } XmlNodeList localJurisdictionNodeList = xmlNode.SelectNodes("localJurisdiction"); if (localJurisdictionNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in localJurisdictionNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { localJurisdictionIDRef = item.Attributes["id"].Name; CountryCode ob = CountryCode(); IDManager.SetID(localJurisdictionIDRef, ob); } else if (item.Attributes.ToString() == "href") { localJurisdictionIDRef = item.Attributes["href"].Name; } else { localJurisdiction = new CountryCode(item); } } } XmlNodeList relevantJurisdictionNodeList = xmlNode.SelectNodes("relevantJurisdiction"); if (relevantJurisdictionNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in relevantJurisdictionNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { relevantJurisdictionIDRef = item.Attributes["id"].Name; CountryCode ob = CountryCode(); IDManager.SetID(relevantJurisdictionIDRef, ob); } else if (item.Attributes.ToString() == "href") { relevantJurisdictionIDRef = item.Attributes["href"].Name; } else { relevantJurisdiction = new CountryCode(item); } } } XmlNodeList extraordinaryEventsNodeList = xmlNode.SelectNodes("extraordinaryEvents"); if (extraordinaryEventsNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in extraordinaryEventsNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { extraordinaryEventsIDRef = item.Attributes["id"].Name; ExtraordinaryEvents ob = ExtraordinaryEvents(); IDManager.SetID(extraordinaryEventsIDRef, ob); } else if (item.Attributes.ToString() == "href") { extraordinaryEventsIDRef = item.Attributes["href"].Name; } else { extraordinaryEvents = new ExtraordinaryEvents(item); } } } }
public NettedSwapBase(XmlNode xmlNode) : base(xmlNode) { XmlNodeList additionalPaymentNodeList = xmlNode.SelectNodes("additionalPayment"); if (additionalPaymentNodeList != null) { this.additionalPayment_ = new List<ClassifiedPayment>(); foreach (XmlNode item in additionalPaymentNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { additionalPaymentIDRef_ = item.Attributes["id"].Value; additionalPayment_.Add(new ClassifiedPayment(item)); IDManager.SetID(additionalPaymentIDRef_, additionalPayment_[additionalPayment_.Count - 1 ]); } else if (item.Attributes["href"] != null) { additionalPaymentIDRef_ = item.Attributes["href"].Value; } else { additionalPayment_.Add(new ClassifiedPayment(item)); } } else { additionalPayment_.Add(new ClassifiedPayment(item)); } } } XmlNode extraordinaryEventsNode = xmlNode.SelectSingleNode("extraordinaryEvents"); if (extraordinaryEventsNode != null) { if (extraordinaryEventsNode.Attributes["href"] != null || extraordinaryEventsNode.Attributes["id"] != null) { if (extraordinaryEventsNode.Attributes["id"] != null) { extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["id"].Value; ExtraordinaryEvents ob = new ExtraordinaryEvents(extraordinaryEventsNode); IDManager.SetID(extraordinaryEventsIDRef_, ob); } else if (extraordinaryEventsNode.Attributes["href"] != null) { extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["href"].Value; } else { extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode); } } else { extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode); } } }
public ReturnSwap(XmlNode xmlNode) : base(xmlNode) { XmlNodeList additionalPaymentNodeList = xmlNode.SelectNodes("additionalPayment"); if (additionalPaymentNodeList != null) { this.additionalPayment_ = new List <ReturnSwapAdditionalPayment>(); foreach (XmlNode item in additionalPaymentNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { additionalPaymentIDRef_ = item.Attributes["id"].Value; additionalPayment_.Add(new ReturnSwapAdditionalPayment(item)); IDManager.SetID(additionalPaymentIDRef_, additionalPayment_[additionalPayment_.Count - 1]); } else if (item.Attributes["href"] != null) { additionalPaymentIDRef_ = item.Attributes["href"].Value; } else { additionalPayment_.Add(new ReturnSwapAdditionalPayment(item)); } } else { additionalPayment_.Add(new ReturnSwapAdditionalPayment(item)); } } } XmlNodeList earlyTerminationNodeList = xmlNode.SelectNodes("earlyTermination"); if (earlyTerminationNodeList != null) { this.earlyTermination_ = new List <ReturnSwapEarlyTermination>(); foreach (XmlNode item in earlyTerminationNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { earlyTerminationIDRef_ = item.Attributes["id"].Value; earlyTermination_.Add(new ReturnSwapEarlyTermination(item)); IDManager.SetID(earlyTerminationIDRef_, earlyTermination_[earlyTermination_.Count - 1]); } else if (item.Attributes["href"] != null) { earlyTerminationIDRef_ = item.Attributes["href"].Value; } else { earlyTermination_.Add(new ReturnSwapEarlyTermination(item)); } } else { earlyTermination_.Add(new ReturnSwapEarlyTermination(item)); } } } XmlNode extraordinaryEventsNode = xmlNode.SelectSingleNode("extraordinaryEvents"); if (extraordinaryEventsNode != null) { if (extraordinaryEventsNode.Attributes["href"] != null || extraordinaryEventsNode.Attributes["id"] != null) { if (extraordinaryEventsNode.Attributes["id"] != null) { extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["id"].Value; ExtraordinaryEvents ob = new ExtraordinaryEvents(extraordinaryEventsNode); IDManager.SetID(extraordinaryEventsIDRef_, ob); } else if (extraordinaryEventsNode.Attributes["href"] != null) { extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["href"].Value; } else { extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode); } } else { extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode); } } }
public EquityOptionTransactionSupplement(XmlNode xmlNode) : base(xmlNode) { XmlNodeList exchangeLookAlikeNodeList = xmlNode.SelectNodes("exchangeLookAlike"); if (exchangeLookAlikeNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in exchangeLookAlikeNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { exchangeLookAlikeIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(exchangeLookAlikeIDRef, ob); } else if (item.Attributes.ToString() == "href") { exchangeLookAlikeIDRef = item.Attributes["href"].Name; } else { exchangeLookAlike = new XsdTypeBoolean(item); } } } XmlNodeList exchangeTradedContractNearestNodeList = xmlNode.SelectNodes("exchangeTradedContractNearest"); if (exchangeTradedContractNearestNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in exchangeTradedContractNearestNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { exchangeTradedContractNearestIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(exchangeTradedContractNearestIDRef, ob); } else if (item.Attributes.ToString() == "href") { exchangeTradedContractNearestIDRef = item.Attributes["href"].Name; } else { exchangeTradedContractNearest = new XsdTypeBoolean(item); } } } XmlNodeList multipleExchangeIndexAnnexFallbackNodeList = xmlNode.SelectNodes("multipleExchangeIndexAnnexFallback"); if (multipleExchangeIndexAnnexFallbackNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in multipleExchangeIndexAnnexFallbackNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef, ob); } else if (item.Attributes.ToString() == "href") { multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["href"].Name; } else { multipleExchangeIndexAnnexFallback = new XsdTypeBoolean(item); } } } XmlNodeList componentSecurityIndexAnnexFallbackNodeList = xmlNode.SelectNodes("componentSecurityIndexAnnexFallback"); if (componentSecurityIndexAnnexFallbackNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in componentSecurityIndexAnnexFallbackNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { componentSecurityIndexAnnexFallbackIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef, ob); } else if (item.Attributes.ToString() == "href") { componentSecurityIndexAnnexFallbackIDRef = item.Attributes["href"].Name; } else { componentSecurityIndexAnnexFallback = new XsdTypeBoolean(item); } } } XmlNodeList methodOfAdjustmentNodeList = xmlNode.SelectNodes("methodOfAdjustment"); if (methodOfAdjustmentNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in methodOfAdjustmentNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { methodOfAdjustmentIDRef = item.Attributes["id"].Name; MethodOfAdjustmentEnum ob = MethodOfAdjustmentEnum(); IDManager.SetID(methodOfAdjustmentIDRef, ob); } else if (item.Attributes.ToString() == "href") { methodOfAdjustmentIDRef = item.Attributes["href"].Name; } else { methodOfAdjustment = new MethodOfAdjustmentEnum(item); } } } XmlNodeList localJurisdictionNodeList = xmlNode.SelectNodes("localJurisdiction"); if (localJurisdictionNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in localJurisdictionNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { localJurisdictionIDRef = item.Attributes["id"].Name; CountryCode ob = CountryCode(); IDManager.SetID(localJurisdictionIDRef, ob); } else if (item.Attributes.ToString() == "href") { localJurisdictionIDRef = item.Attributes["href"].Name; } else { localJurisdiction = new CountryCode(item); } } } XmlNodeList optionEntitlementNodeList = xmlNode.SelectNodes("optionEntitlement"); if (optionEntitlementNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in optionEntitlementNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { optionEntitlementIDRef = item.Attributes["id"].Name; PositiveDecimal ob = PositiveDecimal(); IDManager.SetID(optionEntitlementIDRef, ob); } else if (item.Attributes.ToString() == "href") { optionEntitlementIDRef = item.Attributes["href"].Name; } else { optionEntitlement = new PositiveDecimal(item); } } } XmlNodeList multiplierNodeList = xmlNode.SelectNodes("multiplier"); if (multiplierNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in multiplierNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { multiplierIDRef = item.Attributes["id"].Name; PositiveDecimal ob = PositiveDecimal(); IDManager.SetID(multiplierIDRef, ob); } else if (item.Attributes.ToString() == "href") { multiplierIDRef = item.Attributes["href"].Name; } else { multiplier = new PositiveDecimal(item); } } } XmlNodeList extraordinaryEventsNodeList = xmlNode.SelectNodes("extraordinaryEvents"); if (extraordinaryEventsNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in extraordinaryEventsNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { extraordinaryEventsIDRef = item.Attributes["id"].Name; ExtraordinaryEvents ob = ExtraordinaryEvents(); IDManager.SetID(extraordinaryEventsIDRef, ob); } else if (item.Attributes.ToString() == "href") { extraordinaryEventsIDRef = item.Attributes["href"].Name; } else { extraordinaryEvents = new ExtraordinaryEvents(item); } } } }
public EquityDerivativeLongFormBase(XmlNode xmlNode) : base(xmlNode) { XmlNode dividendConditionsNode = xmlNode.SelectSingleNode("dividendConditions"); if (dividendConditionsNode != null) { if (dividendConditionsNode.Attributes["href"] != null || dividendConditionsNode.Attributes["id"] != null) { if (dividendConditionsNode.Attributes["id"] != null) { dividendConditionsIDRef_ = dividendConditionsNode.Attributes["id"].Value; DividendConditions ob = new DividendConditions(dividendConditionsNode); IDManager.SetID(dividendConditionsIDRef_, ob); } else if (dividendConditionsNode.Attributes["href"] != null) { dividendConditionsIDRef_ = dividendConditionsNode.Attributes["href"].Value; } else { dividendConditions_ = new DividendConditions(dividendConditionsNode); } } else { dividendConditions_ = new DividendConditions(dividendConditionsNode); } } XmlNode methodOfAdjustmentNode = xmlNode.SelectSingleNode("methodOfAdjustment"); if (methodOfAdjustmentNode != null) { if (methodOfAdjustmentNode.Attributes["href"] != null || methodOfAdjustmentNode.Attributes["id"] != null) { if (methodOfAdjustmentNode.Attributes["id"] != null) { methodOfAdjustmentIDRef_ = methodOfAdjustmentNode.Attributes["id"].Value; MethodOfAdjustmentEnum ob = new MethodOfAdjustmentEnum(methodOfAdjustmentNode); IDManager.SetID(methodOfAdjustmentIDRef_, ob); } else if (methodOfAdjustmentNode.Attributes["href"] != null) { methodOfAdjustmentIDRef_ = methodOfAdjustmentNode.Attributes["href"].Value; } else { methodOfAdjustment_ = new MethodOfAdjustmentEnum(methodOfAdjustmentNode); } } else { methodOfAdjustment_ = new MethodOfAdjustmentEnum(methodOfAdjustmentNode); } } XmlNode extraordinaryEventsNode = xmlNode.SelectSingleNode("extraordinaryEvents"); if (extraordinaryEventsNode != null) { if (extraordinaryEventsNode.Attributes["href"] != null || extraordinaryEventsNode.Attributes["id"] != null) { if (extraordinaryEventsNode.Attributes["id"] != null) { extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["id"].Value; ExtraordinaryEvents ob = new ExtraordinaryEvents(extraordinaryEventsNode); IDManager.SetID(extraordinaryEventsIDRef_, ob); } else if (extraordinaryEventsNode.Attributes["href"] != null) { extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["href"].Value; } else { extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode); } } else { extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode); } } }
public EquityDerivativeLongFormBase(XmlNode xmlNode) : base(xmlNode) { XmlNodeList dividendConditionsNodeList = xmlNode.SelectNodes("dividendConditions"); if (dividendConditionsNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in dividendConditionsNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { dividendConditionsIDRef = item.Attributes["id"].Name; DividendConditions ob = DividendConditions(); IDManager.SetID(dividendConditionsIDRef, ob); } else if (item.Attributes.ToString() == "href") { dividendConditionsIDRef = item.Attributes["href"].Name; } else { dividendConditions = new DividendConditions(item); } } } XmlNodeList methodOfAdjustmentNodeList = xmlNode.SelectNodes("methodOfAdjustment"); if (methodOfAdjustmentNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in methodOfAdjustmentNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { methodOfAdjustmentIDRef = item.Attributes["id"].Name; MethodOfAdjustmentEnum ob = MethodOfAdjustmentEnum(); IDManager.SetID(methodOfAdjustmentIDRef, ob); } else if (item.Attributes.ToString() == "href") { methodOfAdjustmentIDRef = item.Attributes["href"].Name; } else { methodOfAdjustment = new MethodOfAdjustmentEnum(item); } } } XmlNodeList extraordinaryEventsNodeList = xmlNode.SelectNodes("extraordinaryEvents"); if (extraordinaryEventsNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in extraordinaryEventsNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { extraordinaryEventsIDRef = item.Attributes["id"].Name; ExtraordinaryEvents ob = ExtraordinaryEvents(); IDManager.SetID(extraordinaryEventsIDRef, ob); } else if (item.Attributes.ToString() == "href") { extraordinaryEventsIDRef = item.Attributes["href"].Name; } else { extraordinaryEvents = new ExtraordinaryEvents(item); } } } }
public ReturnSwap(XmlNode xmlNode) : base(xmlNode) { XmlNodeList additionalPaymentNodeList = xmlNode.SelectNodes("additionalPayment"); if (additionalPaymentNodeList != null) { this.additionalPayment_ = new List<ReturnSwapAdditionalPayment>(); foreach (XmlNode item in additionalPaymentNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { additionalPaymentIDRef_ = item.Attributes["id"].Value; additionalPayment_.Add(new ReturnSwapAdditionalPayment(item)); IDManager.SetID(additionalPaymentIDRef_, additionalPayment_[additionalPayment_.Count - 1 ]); } else if (item.Attributes["href"] != null) { additionalPaymentIDRef_ = item.Attributes["href"].Value; } else { additionalPayment_.Add(new ReturnSwapAdditionalPayment(item)); } } else { additionalPayment_.Add(new ReturnSwapAdditionalPayment(item)); } } } XmlNodeList earlyTerminationNodeList = xmlNode.SelectNodes("earlyTermination"); if (earlyTerminationNodeList != null) { this.earlyTermination_ = new List<ReturnSwapEarlyTermination>(); foreach (XmlNode item in earlyTerminationNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { earlyTerminationIDRef_ = item.Attributes["id"].Value; earlyTermination_.Add(new ReturnSwapEarlyTermination(item)); IDManager.SetID(earlyTerminationIDRef_, earlyTermination_[earlyTermination_.Count - 1 ]); } else if (item.Attributes["href"] != null) { earlyTerminationIDRef_ = item.Attributes["href"].Value; } else { earlyTermination_.Add(new ReturnSwapEarlyTermination(item)); } } else { earlyTermination_.Add(new ReturnSwapEarlyTermination(item)); } } } XmlNode extraordinaryEventsNode = xmlNode.SelectSingleNode("extraordinaryEvents"); if (extraordinaryEventsNode != null) { if (extraordinaryEventsNode.Attributes["href"] != null || extraordinaryEventsNode.Attributes["id"] != null) { if (extraordinaryEventsNode.Attributes["id"] != null) { extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["id"].Value; ExtraordinaryEvents ob = new ExtraordinaryEvents(extraordinaryEventsNode); IDManager.SetID(extraordinaryEventsIDRef_, ob); } else if (extraordinaryEventsNode.Attributes["href"] != null) { extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["href"].Value; } else { extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode); } } else { extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode); } } }
public EquitySwapTransactionSupplement(XmlNode xmlNode) : base(xmlNode) { XmlNodeList mutualEarlyTerminationNodeList = xmlNode.SelectNodes("mutualEarlyTermination"); if (mutualEarlyTerminationNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in mutualEarlyTerminationNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { mutualEarlyTerminationIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(mutualEarlyTerminationIDRef, ob); } else if (item.Attributes.ToString() == "href") { mutualEarlyTerminationIDRef = item.Attributes["href"].Name; } else { mutualEarlyTermination = new XsdTypeBoolean(item); } } } XmlNodeList optionalEarlyTerminationNodeList = xmlNode.SelectNodes("optionalEarlyTermination"); if (optionalEarlyTerminationNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in optionalEarlyTerminationNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { optionalEarlyTerminationIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(optionalEarlyTerminationIDRef, ob); } else if (item.Attributes.ToString() == "href") { optionalEarlyTerminationIDRef = item.Attributes["href"].Name; } else { optionalEarlyTermination = new XsdTypeBoolean(item); } } } XmlNodeList breakFundingRecoveryNodeList = xmlNode.SelectNodes("breakFundingRecovery"); if (breakFundingRecoveryNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in breakFundingRecoveryNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { breakFundingRecoveryIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(breakFundingRecoveryIDRef, ob); } else if (item.Attributes.ToString() == "href") { breakFundingRecoveryIDRef = item.Attributes["href"].Name; } else { breakFundingRecovery = new XsdTypeBoolean(item); } } } XmlNodeList breakFeeElectionNodeList = xmlNode.SelectNodes("breakFeeElection"); if (breakFeeElectionNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in breakFeeElectionNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { breakFeeElectionIDRef = item.Attributes["id"].Name; FeeElectionEnum ob = FeeElectionEnum(); IDManager.SetID(breakFeeElectionIDRef, ob); } else if (item.Attributes.ToString() == "href") { breakFeeElectionIDRef = item.Attributes["href"].Name; } else { breakFeeElection = new FeeElectionEnum(item); } } } XmlNodeList breakFeeRateNodeList = xmlNode.SelectNodes("breakFeeRate"); if (breakFeeRateNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in breakFeeRateNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { breakFeeRateIDRef = item.Attributes["id"].Name; NonNegativeDecimal ob = NonNegativeDecimal(); IDManager.SetID(breakFeeRateIDRef, ob); } else if (item.Attributes.ToString() == "href") { breakFeeRateIDRef = item.Attributes["href"].Name; } else { breakFeeRate = new NonNegativeDecimal(item); } } } XmlNodeList multipleExchangeIndexAnnexFallbackNodeList = xmlNode.SelectNodes("multipleExchangeIndexAnnexFallback"); if (multipleExchangeIndexAnnexFallbackNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in multipleExchangeIndexAnnexFallbackNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef, ob); } else if (item.Attributes.ToString() == "href") { multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["href"].Name; } else { multipleExchangeIndexAnnexFallback = new XsdTypeBoolean(item); } } } XmlNodeList componentSecurityIndexAnnexFallbackNodeList = xmlNode.SelectNodes("componentSecurityIndexAnnexFallback"); if (componentSecurityIndexAnnexFallbackNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in componentSecurityIndexAnnexFallbackNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { componentSecurityIndexAnnexFallbackIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef, ob); } else if (item.Attributes.ToString() == "href") { componentSecurityIndexAnnexFallbackIDRef = item.Attributes["href"].Name; } else { componentSecurityIndexAnnexFallback = new XsdTypeBoolean(item); } } } XmlNodeList localJurisdictionNodeList = xmlNode.SelectNodes("localJurisdiction"); if (localJurisdictionNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in localJurisdictionNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { localJurisdictionIDRef = item.Attributes["id"].Name; CountryCode ob = CountryCode(); IDManager.SetID(localJurisdictionIDRef, ob); } else if (item.Attributes.ToString() == "href") { localJurisdictionIDRef = item.Attributes["href"].Name; } else { localJurisdiction = new CountryCode(item); } } } XmlNodeList relevantJurisdictionNodeList = xmlNode.SelectNodes("relevantJurisdiction"); if (relevantJurisdictionNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in relevantJurisdictionNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { relevantJurisdictionIDRef = item.Attributes["id"].Name; CountryCode ob = CountryCode(); IDManager.SetID(relevantJurisdictionIDRef, ob); } else if (item.Attributes.ToString() == "href") { relevantJurisdictionIDRef = item.Attributes["href"].Name; } else { relevantJurisdiction = new CountryCode(item); } } } XmlNodeList extraordinaryEventsNodeList = xmlNode.SelectNodes("extraordinaryEvents"); if (extraordinaryEventsNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in extraordinaryEventsNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { extraordinaryEventsIDRef = item.Attributes["id"].Name; ExtraordinaryEvents ob = ExtraordinaryEvents(); IDManager.SetID(extraordinaryEventsIDRef, ob); } else if (item.Attributes.ToString() == "href") { extraordinaryEventsIDRef = item.Attributes["href"].Name; } else { extraordinaryEvents = new ExtraordinaryEvents(item); } } } }
public EquityOptionTransactionSupplement(XmlNode xmlNode) : base(xmlNode) { XmlNodeList exchangeLookAlikeNodeList = xmlNode.SelectNodes("exchangeLookAlike"); if (exchangeLookAlikeNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in exchangeLookAlikeNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { exchangeLookAlikeIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(exchangeLookAlikeIDRef, ob); } else if (item.Attributes.ToString() == "href") { exchangeLookAlikeIDRef = item.Attributes["href"].Name; } else { exchangeLookAlike = new XsdTypeBoolean(item); } } } XmlNodeList exchangeTradedContractNearestNodeList = xmlNode.SelectNodes("exchangeTradedContractNearest"); if (exchangeTradedContractNearestNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in exchangeTradedContractNearestNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { exchangeTradedContractNearestIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(exchangeTradedContractNearestIDRef, ob); } else if (item.Attributes.ToString() == "href") { exchangeTradedContractNearestIDRef = item.Attributes["href"].Name; } else { exchangeTradedContractNearest = new XsdTypeBoolean(item); } } } XmlNodeList multipleExchangeIndexAnnexFallbackNodeList = xmlNode.SelectNodes("multipleExchangeIndexAnnexFallback"); if (multipleExchangeIndexAnnexFallbackNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in multipleExchangeIndexAnnexFallbackNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef, ob); } else if (item.Attributes.ToString() == "href") { multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["href"].Name; } else { multipleExchangeIndexAnnexFallback = new XsdTypeBoolean(item); } } } XmlNodeList componentSecurityIndexAnnexFallbackNodeList = xmlNode.SelectNodes("componentSecurityIndexAnnexFallback"); if (componentSecurityIndexAnnexFallbackNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in componentSecurityIndexAnnexFallbackNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { componentSecurityIndexAnnexFallbackIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef, ob); } else if (item.Attributes.ToString() == "href") { componentSecurityIndexAnnexFallbackIDRef = item.Attributes["href"].Name; } else { componentSecurityIndexAnnexFallback = new XsdTypeBoolean(item); } } } XmlNodeList methodOfAdjustmentNodeList = xmlNode.SelectNodes("methodOfAdjustment"); if (methodOfAdjustmentNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in methodOfAdjustmentNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { methodOfAdjustmentIDRef = item.Attributes["id"].Name; MethodOfAdjustmentEnum ob = MethodOfAdjustmentEnum(); IDManager.SetID(methodOfAdjustmentIDRef, ob); } else if (item.Attributes.ToString() == "href") { methodOfAdjustmentIDRef = item.Attributes["href"].Name; } else { methodOfAdjustment = new MethodOfAdjustmentEnum(item); } } } XmlNodeList localJurisdictionNodeList = xmlNode.SelectNodes("localJurisdiction"); if (localJurisdictionNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in localJurisdictionNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { localJurisdictionIDRef = item.Attributes["id"].Name; CountryCode ob = CountryCode(); IDManager.SetID(localJurisdictionIDRef, ob); } else if (item.Attributes.ToString() == "href") { localJurisdictionIDRef = item.Attributes["href"].Name; } else { localJurisdiction = new CountryCode(item); } } } XmlNodeList optionEntitlementNodeList = xmlNode.SelectNodes("optionEntitlement"); if (optionEntitlementNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in optionEntitlementNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { optionEntitlementIDRef = item.Attributes["id"].Name; PositiveDecimal ob = PositiveDecimal(); IDManager.SetID(optionEntitlementIDRef, ob); } else if (item.Attributes.ToString() == "href") { optionEntitlementIDRef = item.Attributes["href"].Name; } else { optionEntitlement = new PositiveDecimal(item); } } } XmlNodeList multiplierNodeList = xmlNode.SelectNodes("multiplier"); if (multiplierNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in multiplierNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { multiplierIDRef = item.Attributes["id"].Name; PositiveDecimal ob = PositiveDecimal(); IDManager.SetID(multiplierIDRef, ob); } else if (item.Attributes.ToString() == "href") { multiplierIDRef = item.Attributes["href"].Name; } else { multiplier = new PositiveDecimal(item); } } } XmlNodeList extraordinaryEventsNodeList = xmlNode.SelectNodes("extraordinaryEvents"); if (extraordinaryEventsNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in extraordinaryEventsNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { extraordinaryEventsIDRef = item.Attributes["id"].Name; ExtraordinaryEvents ob = ExtraordinaryEvents(); IDManager.SetID(extraordinaryEventsIDRef, ob); } else if (item.Attributes.ToString() == "href") { extraordinaryEventsIDRef = item.Attributes["href"].Name; } else { extraordinaryEvents = new ExtraordinaryEvents(item); } } } }
public EquityDerivativeLongFormBase(XmlNode xmlNode) : base(xmlNode) { XmlNodeList dividendConditionsNodeList = xmlNode.SelectNodes("dividendConditions"); if (dividendConditionsNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in dividendConditionsNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { dividendConditionsIDRef = item.Attributes["id"].Name; DividendConditions ob = DividendConditions(); IDManager.SetID(dividendConditionsIDRef, ob); } else if (item.Attributes.ToString() == "href") { dividendConditionsIDRef = item.Attributes["href"].Name; } else { dividendConditions = new DividendConditions(item); } } } XmlNodeList methodOfAdjustmentNodeList = xmlNode.SelectNodes("methodOfAdjustment"); if (methodOfAdjustmentNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in methodOfAdjustmentNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { methodOfAdjustmentIDRef = item.Attributes["id"].Name; MethodOfAdjustmentEnum ob = MethodOfAdjustmentEnum(); IDManager.SetID(methodOfAdjustmentIDRef, ob); } else if (item.Attributes.ToString() == "href") { methodOfAdjustmentIDRef = item.Attributes["href"].Name; } else { methodOfAdjustment = new MethodOfAdjustmentEnum(item); } } } XmlNodeList extraordinaryEventsNodeList = xmlNode.SelectNodes("extraordinaryEvents"); if (extraordinaryEventsNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in extraordinaryEventsNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { extraordinaryEventsIDRef = item.Attributes["id"].Name; ExtraordinaryEvents ob = ExtraordinaryEvents(); IDManager.SetID(extraordinaryEventsIDRef, ob); } else if (item.Attributes.ToString() == "href") { extraordinaryEventsIDRef = item.Attributes["href"].Name; } else { extraordinaryEvents = new ExtraordinaryEvents(item); } } } }