public DateOffset(XmlNode xmlNode) : base(xmlNode) { XmlNode businessDayConventionNode = xmlNode.SelectSingleNode("businessDayConvention"); if (businessDayConventionNode != null) { if (businessDayConventionNode.Attributes["href"] != null || businessDayConventionNode.Attributes["id"] != null) { if (businessDayConventionNode.Attributes["id"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["id"].Value; BusinessDayConventionEnum ob = new BusinessDayConventionEnum(businessDayConventionNode); IDManager.SetID(businessDayConventionIDRef_, ob); } else if (businessDayConventionNode.Attributes["href"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["href"].Value; } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } }
public DateOffset(XmlNode xmlNode) : base(xmlNode) { XmlNodeList businessDayConventionNodeList = xmlNode.SelectNodes("businessDayConvention"); if (businessDayConventionNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in businessDayConventionNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { businessDayConventionIDRef = item.Attributes["id"].Name; BusinessDayConventionEnum ob = BusinessDayConventionEnum(); IDManager.SetID(businessDayConventionIDRef, ob); } else if (item.Attributes.ToString() == "href") { businessDayConventionIDRef = item.Attributes["href"].Name; } else { businessDayConvention = new BusinessDayConventionEnum(item); } } } }
public DateOffset(XmlNode xmlNode) : base(xmlNode) { XmlNode businessDayConventionNode = xmlNode.SelectSingleNode("businessDayConvention"); if (businessDayConventionNode != null) { if (businessDayConventionNode.Attributes["href"] != null || businessDayConventionNode.Attributes["id"] != null) { if (businessDayConventionNode.Attributes["id"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["id"].Value; BusinessDayConventionEnum ob = new BusinessDayConventionEnum(businessDayConventionNode); IDManager.SetID(businessDayConventionIDRef_, ob); } else if (businessDayConventionNode.Attributes["href"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["href"].Value; } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } }
public FinalCalculationPeriodDateAdjustment(XmlNode xmlNode) { XmlNode relevantUnderlyingDateReferenceNode = xmlNode.SelectSingleNode("relevantUnderlyingDateReference"); if (relevantUnderlyingDateReferenceNode != null) { if (relevantUnderlyingDateReferenceNode.Attributes["href"] != null || relevantUnderlyingDateReferenceNode.Attributes["id"] != null) { if (relevantUnderlyingDateReferenceNode.Attributes["id"] != null) { relevantUnderlyingDateReferenceIDRef_ = relevantUnderlyingDateReferenceNode.Attributes["id"].Value; RelevantUnderlyingDateReference ob = new RelevantUnderlyingDateReference(relevantUnderlyingDateReferenceNode); IDManager.SetID(relevantUnderlyingDateReferenceIDRef_, ob); } else if (relevantUnderlyingDateReferenceNode.Attributes["href"] != null) { relevantUnderlyingDateReferenceIDRef_ = relevantUnderlyingDateReferenceNode.Attributes["href"].Value; } else { relevantUnderlyingDateReference_ = new RelevantUnderlyingDateReference(relevantUnderlyingDateReferenceNode); } } else { relevantUnderlyingDateReference_ = new RelevantUnderlyingDateReference(relevantUnderlyingDateReferenceNode); } } XmlNode swapStreamReferenceNode = xmlNode.SelectSingleNode("swapStreamReference"); if (swapStreamReferenceNode != null) { if (swapStreamReferenceNode.Attributes["href"] != null || swapStreamReferenceNode.Attributes["id"] != null) { if (swapStreamReferenceNode.Attributes["id"] != null) { swapStreamReferenceIDRef_ = swapStreamReferenceNode.Attributes["id"].Value; InterestRateStreamReference ob = new InterestRateStreamReference(swapStreamReferenceNode); IDManager.SetID(swapStreamReferenceIDRef_, ob); } else if (swapStreamReferenceNode.Attributes["href"] != null) { swapStreamReferenceIDRef_ = swapStreamReferenceNode.Attributes["href"].Value; } else { swapStreamReference_ = new InterestRateStreamReference(swapStreamReferenceNode); } } else { swapStreamReference_ = new InterestRateStreamReference(swapStreamReferenceNode); } } XmlNode businessDayConventionNode = xmlNode.SelectSingleNode("businessDayConvention"); if (businessDayConventionNode != null) { if (businessDayConventionNode.Attributes["href"] != null || businessDayConventionNode.Attributes["id"] != null) { if (businessDayConventionNode.Attributes["id"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["id"].Value; BusinessDayConventionEnum ob = new BusinessDayConventionEnum(businessDayConventionNode); IDManager.SetID(businessDayConventionIDRef_, ob); } else if (businessDayConventionNode.Attributes["href"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["href"].Value; } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } }
public BusinessDateRange(XmlNode xmlNode) : base(xmlNode) { XmlNode businessDayConventionNode = xmlNode.SelectSingleNode("businessDayConvention"); if (businessDayConventionNode != null) { if (businessDayConventionNode.Attributes["href"] != null || businessDayConventionNode.Attributes["id"] != null) { if (businessDayConventionNode.Attributes["id"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["id"].Value; BusinessDayConventionEnum ob = new BusinessDayConventionEnum(businessDayConventionNode); IDManager.SetID(businessDayConventionIDRef_, ob); } else if (businessDayConventionNode.Attributes["href"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["href"].Value; } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } XmlNode businessCentersReferenceNode = xmlNode.SelectSingleNode("businessCentersReference"); if (businessCentersReferenceNode != null) { if (businessCentersReferenceNode.Attributes["href"] != null || businessCentersReferenceNode.Attributes["id"] != null) { if (businessCentersReferenceNode.Attributes["id"] != null) { businessCentersReferenceIDRef_ = businessCentersReferenceNode.Attributes["id"].Value; BusinessCentersReference ob = new BusinessCentersReference(businessCentersReferenceNode); IDManager.SetID(businessCentersReferenceIDRef_, ob); } else if (businessCentersReferenceNode.Attributes["href"] != null) { businessCentersReferenceIDRef_ = businessCentersReferenceNode.Attributes["href"].Value; } else { businessCentersReference_ = new BusinessCentersReference(businessCentersReferenceNode); } } else { businessCentersReference_ = new BusinessCentersReference(businessCentersReferenceNode); } } XmlNode businessCentersNode = xmlNode.SelectSingleNode("businessCenters"); if (businessCentersNode != null) { if (businessCentersNode.Attributes["href"] != null || businessCentersNode.Attributes["id"] != null) { if (businessCentersNode.Attributes["id"] != null) { businessCentersIDRef_ = businessCentersNode.Attributes["id"].Value; BusinessCenters ob = new BusinessCenters(businessCentersNode); IDManager.SetID(businessCentersIDRef_, ob); } else if (businessCentersNode.Attributes["href"] != null) { businessCentersIDRef_ = businessCentersNode.Attributes["href"].Value; } else { businessCenters_ = new BusinessCenters(businessCentersNode); } } else { businessCenters_ = new BusinessCenters(businessCentersNode); } } }
public FinalCalculationPeriodDateAdjustment(XmlNode xmlNode) { XmlNode relevantUnderlyingDateReferenceNode = xmlNode.SelectSingleNode("relevantUnderlyingDateReference"); if (relevantUnderlyingDateReferenceNode != null) { if (relevantUnderlyingDateReferenceNode.Attributes["href"] != null || relevantUnderlyingDateReferenceNode.Attributes["id"] != null) { if (relevantUnderlyingDateReferenceNode.Attributes["id"] != null) { relevantUnderlyingDateReferenceIDRef_ = relevantUnderlyingDateReferenceNode.Attributes["id"].Value; RelevantUnderlyingDateReference ob = new RelevantUnderlyingDateReference(relevantUnderlyingDateReferenceNode); IDManager.SetID(relevantUnderlyingDateReferenceIDRef_, ob); } else if (relevantUnderlyingDateReferenceNode.Attributes["href"] != null) { relevantUnderlyingDateReferenceIDRef_ = relevantUnderlyingDateReferenceNode.Attributes["href"].Value; } else { relevantUnderlyingDateReference_ = new RelevantUnderlyingDateReference(relevantUnderlyingDateReferenceNode); } } else { relevantUnderlyingDateReference_ = new RelevantUnderlyingDateReference(relevantUnderlyingDateReferenceNode); } } XmlNode swapStreamReferenceNode = xmlNode.SelectSingleNode("swapStreamReference"); if (swapStreamReferenceNode != null) { if (swapStreamReferenceNode.Attributes["href"] != null || swapStreamReferenceNode.Attributes["id"] != null) { if (swapStreamReferenceNode.Attributes["id"] != null) { swapStreamReferenceIDRef_ = swapStreamReferenceNode.Attributes["id"].Value; InterestRateStreamReference ob = new InterestRateStreamReference(swapStreamReferenceNode); IDManager.SetID(swapStreamReferenceIDRef_, ob); } else if (swapStreamReferenceNode.Attributes["href"] != null) { swapStreamReferenceIDRef_ = swapStreamReferenceNode.Attributes["href"].Value; } else { swapStreamReference_ = new InterestRateStreamReference(swapStreamReferenceNode); } } else { swapStreamReference_ = new InterestRateStreamReference(swapStreamReferenceNode); } } XmlNode businessDayConventionNode = xmlNode.SelectSingleNode("businessDayConvention"); if (businessDayConventionNode != null) { if (businessDayConventionNode.Attributes["href"] != null || businessDayConventionNode.Attributes["id"] != null) { if (businessDayConventionNode.Attributes["id"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["id"].Value; BusinessDayConventionEnum ob = new BusinessDayConventionEnum(businessDayConventionNode); IDManager.SetID(businessDayConventionIDRef_, ob); } else if (businessDayConventionNode.Attributes["href"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["href"].Value; } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } }
public StockIndex(XmlNode xmlNode) { XmlNodeList codeNodeList = xmlNode.SelectNodes("code"); if (codeNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in codeNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { codeIDRef = item.Attributes["id"].Name; XsdTypeToken ob = XsdTypeToken(); IDManager.SetID(codeIDRef, ob); } else if (item.Attributes.ToString() == "href") { codeIDRef = item.Attributes["href"].Name; } else { code = new XsdTypeToken(item); } } } XmlNodeList nameNodeList = xmlNode.SelectNodes("name"); if (nameNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in nameNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { nameIDRef = item.Attributes["id"].Name; XsdTypeToken ob = XsdTypeToken(); IDManager.SetID(nameIDRef, ob); } else if (item.Attributes.ToString() == "href") { nameIDRef = item.Attributes["href"].Name; } else { name = new XsdTypeToken(item); } } } XmlNodeList indexTypeNodeList = xmlNode.SelectNodes("indexType"); if (indexTypeNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in indexTypeNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { indexTypeIDRef = item.Attributes["id"].Name; XsdTypeToken ob = XsdTypeToken(); IDManager.SetID(indexTypeIDRef, ob); } else if (item.Attributes.ToString() == "href") { indexTypeIDRef = item.Attributes["href"].Name; } else { indexType = new XsdTypeToken(item); } } } XmlNodeList businessDayConventionNodeList = xmlNode.SelectNodes("businessDayConvention"); if (businessDayConventionNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in businessDayConventionNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { businessDayConventionIDRef = item.Attributes["id"].Name; BusinessDayConventionEnum ob = BusinessDayConventionEnum(); IDManager.SetID(businessDayConventionIDRef, ob); } else if (item.Attributes.ToString() == "href") { businessDayConventionIDRef = item.Attributes["href"].Name; } else { businessDayConvention = new BusinessDayConventionEnum(item); } } } XmlNodeList endOfMonthNodeList = xmlNode.SelectNodes("endOfMonth"); if (endOfMonthNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in endOfMonthNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { endOfMonthIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(endOfMonthIDRef, ob); } else if (item.Attributes.ToString() == "href") { endOfMonthIDRef = item.Attributes["href"].Name; } else { endOfMonth = new XsdTypeBoolean(item); } } } XmlNodeList dayCounterNodeList = xmlNode.SelectNodes("dayCounter"); if (dayCounterNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in dayCounterNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { dayCounterIDRef = item.Attributes["id"].Name; XsdTypeToken ob = XsdTypeToken(); IDManager.SetID(dayCounterIDRef, ob); } else if (item.Attributes.ToString() == "href") { dayCounterIDRef = item.Attributes["href"].Name; } else { dayCounter = new XsdTypeToken(item); } } } }
public RelativeDateOffset(XmlNode xmlNode) : base(xmlNode) { XmlNodeList businessDayConventionNodeList = xmlNode.SelectNodes("businessDayConvention"); if (businessDayConventionNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in businessDayConventionNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { businessDayConventionIDRef = item.Attributes["id"].Name; BusinessDayConventionEnum ob = BusinessDayConventionEnum(); IDManager.SetID(businessDayConventionIDRef, ob); } else if (item.Attributes.ToString() == "href") { businessDayConventionIDRef = item.Attributes["href"].Name; } else { businessDayConvention = new BusinessDayConventionEnum(item); } } } XmlNodeList businessCentersReferenceNodeList = xmlNode.SelectNodes("businessCentersReference"); if (businessCentersReferenceNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in businessCentersReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { businessCentersReferenceIDRef = item.Attributes["id"].Name; BusinessCentersReference ob = BusinessCentersReference(); IDManager.SetID(businessCentersReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { businessCentersReferenceIDRef = item.Attributes["href"].Name; } else { businessCentersReference = new BusinessCentersReference(item); } } } XmlNodeList businessCentersNodeList = xmlNode.SelectNodes("businessCenters"); if (businessCentersNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in businessCentersNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { businessCentersIDRef = item.Attributes["id"].Name; BusinessCenters ob = BusinessCenters(); IDManager.SetID(businessCentersIDRef, ob); } else if (item.Attributes.ToString() == "href") { businessCentersIDRef = item.Attributes["href"].Name; } else { businessCenters = new BusinessCenters(item); } } } XmlNodeList dateRelativeToNodeList = xmlNode.SelectNodes("dateRelativeTo"); if (dateRelativeToNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in dateRelativeToNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { dateRelativeToIDRef = item.Attributes["id"].Name; DateReference ob = DateReference(); IDManager.SetID(dateRelativeToIDRef, ob); } else if (item.Attributes.ToString() == "href") { dateRelativeToIDRef = item.Attributes["href"].Name; } else { dateRelativeTo = new DateReference(item); } } } XmlNodeList adjustedDateNodeList = xmlNode.SelectNodes("adjustedDate"); if (adjustedDateNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in adjustedDateNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { adjustedDateIDRef = item.Attributes["id"].Name; IdentifiedDate ob = IdentifiedDate(); IDManager.SetID(adjustedDateIDRef, ob); } else if (item.Attributes.ToString() == "href") { adjustedDateIDRef = item.Attributes["href"].Name; } else { adjustedDate = new IdentifiedDate(item); } } } }
public FinalCalculationPeriodDateAdjustment(XmlNode xmlNode) { XmlNodeList relevantUnderlyingDateReferenceNodeList = xmlNode.SelectNodes("relevantUnderlyingDateReference"); if (relevantUnderlyingDateReferenceNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in relevantUnderlyingDateReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { relevantUnderlyingDateReferenceIDRef = item.Attributes["id"].Name; RelevantUnderlyingDateReference ob = RelevantUnderlyingDateReference(); IDManager.SetID(relevantUnderlyingDateReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { relevantUnderlyingDateReferenceIDRef = item.Attributes["href"].Name; } else { relevantUnderlyingDateReference = new RelevantUnderlyingDateReference(item); } } } XmlNodeList swapStreamReferenceNodeList = xmlNode.SelectNodes("swapStreamReference"); if (swapStreamReferenceNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in swapStreamReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { swapStreamReferenceIDRef = item.Attributes["id"].Name; InterestRateStreamReference ob = InterestRateStreamReference(); IDManager.SetID(swapStreamReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { swapStreamReferenceIDRef = item.Attributes["href"].Name; } else { swapStreamReference = new InterestRateStreamReference(item); } } } XmlNodeList businessDayConventionNodeList = xmlNode.SelectNodes("businessDayConvention"); if (businessDayConventionNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in businessDayConventionNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { businessDayConventionIDRef = item.Attributes["id"].Name; BusinessDayConventionEnum ob = BusinessDayConventionEnum(); IDManager.SetID(businessDayConventionIDRef, ob); } else if (item.Attributes.ToString() == "href") { businessDayConventionIDRef = item.Attributes["href"].Name; } else { businessDayConvention = new BusinessDayConventionEnum(item); } } } }
public FxFixingDate(XmlNode xmlNode) : base(xmlNode) { XmlNode businessDayConventionNode = xmlNode.SelectSingleNode("businessDayConvention"); if (businessDayConventionNode != null) { if (businessDayConventionNode.Attributes["href"] != null || businessDayConventionNode.Attributes["id"] != null) { if (businessDayConventionNode.Attributes["id"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["id"].Value; BusinessDayConventionEnum ob = new BusinessDayConventionEnum(businessDayConventionNode); IDManager.SetID(businessDayConventionIDRef_, ob); } else if (businessDayConventionNode.Attributes["href"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["href"].Value; } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } XmlNode businessCentersReferenceNode = xmlNode.SelectSingleNode("businessCentersReference"); if (businessCentersReferenceNode != null) { if (businessCentersReferenceNode.Attributes["href"] != null || businessCentersReferenceNode.Attributes["id"] != null) { if (businessCentersReferenceNode.Attributes["id"] != null) { businessCentersReferenceIDRef_ = businessCentersReferenceNode.Attributes["id"].Value; BusinessCentersReference ob = new BusinessCentersReference(businessCentersReferenceNode); IDManager.SetID(businessCentersReferenceIDRef_, ob); } else if (businessCentersReferenceNode.Attributes["href"] != null) { businessCentersReferenceIDRef_ = businessCentersReferenceNode.Attributes["href"].Value; } else { businessCentersReference_ = new BusinessCentersReference(businessCentersReferenceNode); } } else { businessCentersReference_ = new BusinessCentersReference(businessCentersReferenceNode); } } XmlNode businessCentersNode = xmlNode.SelectSingleNode("businessCenters"); if (businessCentersNode != null) { if (businessCentersNode.Attributes["href"] != null || businessCentersNode.Attributes["id"] != null) { if (businessCentersNode.Attributes["id"] != null) { businessCentersIDRef_ = businessCentersNode.Attributes["id"].Value; BusinessCenters ob = new BusinessCenters(businessCentersNode); IDManager.SetID(businessCentersIDRef_, ob); } else if (businessCentersNode.Attributes["href"] != null) { businessCentersIDRef_ = businessCentersNode.Attributes["href"].Value; } else { businessCenters_ = new BusinessCenters(businessCentersNode); } } else { businessCenters_ = new BusinessCenters(businessCentersNode); } } XmlNode dateRelativeToPaymentDatesNode = xmlNode.SelectSingleNode("dateRelativeToPaymentDates"); if (dateRelativeToPaymentDatesNode != null) { if (dateRelativeToPaymentDatesNode.Attributes["href"] != null || dateRelativeToPaymentDatesNode.Attributes["id"] != null) { if (dateRelativeToPaymentDatesNode.Attributes["id"] != null) { dateRelativeToPaymentDatesIDRef_ = dateRelativeToPaymentDatesNode.Attributes["id"].Value; DateRelativeToPaymentDates ob = new DateRelativeToPaymentDates(dateRelativeToPaymentDatesNode); IDManager.SetID(dateRelativeToPaymentDatesIDRef_, ob); } else if (dateRelativeToPaymentDatesNode.Attributes["href"] != null) { dateRelativeToPaymentDatesIDRef_ = dateRelativeToPaymentDatesNode.Attributes["href"].Value; } else { dateRelativeToPaymentDates_ = new DateRelativeToPaymentDates(dateRelativeToPaymentDatesNode); } } else { dateRelativeToPaymentDates_ = new DateRelativeToPaymentDates(dateRelativeToPaymentDatesNode); } } XmlNode dateRelativeToCalculationPeriodDatesNode = xmlNode.SelectSingleNode("dateRelativeToCalculationPeriodDates"); if (dateRelativeToCalculationPeriodDatesNode != null) { if (dateRelativeToCalculationPeriodDatesNode.Attributes["href"] != null || dateRelativeToCalculationPeriodDatesNode.Attributes["id"] != null) { if (dateRelativeToCalculationPeriodDatesNode.Attributes["id"] != null) { dateRelativeToCalculationPeriodDatesIDRef_ = dateRelativeToCalculationPeriodDatesNode.Attributes["id"].Value; DateRelativeToCalculationPeriodDates ob = new DateRelativeToCalculationPeriodDates(dateRelativeToCalculationPeriodDatesNode); IDManager.SetID(dateRelativeToCalculationPeriodDatesIDRef_, ob); } else if (dateRelativeToCalculationPeriodDatesNode.Attributes["href"] != null) { dateRelativeToCalculationPeriodDatesIDRef_ = dateRelativeToCalculationPeriodDatesNode.Attributes["href"].Value; } else { dateRelativeToCalculationPeriodDates_ = new DateRelativeToCalculationPeriodDates(dateRelativeToCalculationPeriodDatesNode); } } else { dateRelativeToCalculationPeriodDates_ = new DateRelativeToCalculationPeriodDates(dateRelativeToCalculationPeriodDatesNode); } } }
public FxFixingDate(XmlNode xmlNode) : base(xmlNode) { XmlNode businessDayConventionNode = xmlNode.SelectSingleNode("businessDayConvention"); if (businessDayConventionNode != null) { if (businessDayConventionNode.Attributes["href"] != null || businessDayConventionNode.Attributes["id"] != null) { if (businessDayConventionNode.Attributes["id"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["id"].Value; BusinessDayConventionEnum ob = new BusinessDayConventionEnum(businessDayConventionNode); IDManager.SetID(businessDayConventionIDRef_, ob); } else if (businessDayConventionNode.Attributes["href"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["href"].Value; } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } XmlNode businessCentersReferenceNode = xmlNode.SelectSingleNode("businessCentersReference"); if (businessCentersReferenceNode != null) { if (businessCentersReferenceNode.Attributes["href"] != null || businessCentersReferenceNode.Attributes["id"] != null) { if (businessCentersReferenceNode.Attributes["id"] != null) { businessCentersReferenceIDRef_ = businessCentersReferenceNode.Attributes["id"].Value; BusinessCentersReference ob = new BusinessCentersReference(businessCentersReferenceNode); IDManager.SetID(businessCentersReferenceIDRef_, ob); } else if (businessCentersReferenceNode.Attributes["href"] != null) { businessCentersReferenceIDRef_ = businessCentersReferenceNode.Attributes["href"].Value; } else { businessCentersReference_ = new BusinessCentersReference(businessCentersReferenceNode); } } else { businessCentersReference_ = new BusinessCentersReference(businessCentersReferenceNode); } } XmlNode businessCentersNode = xmlNode.SelectSingleNode("businessCenters"); if (businessCentersNode != null) { if (businessCentersNode.Attributes["href"] != null || businessCentersNode.Attributes["id"] != null) { if (businessCentersNode.Attributes["id"] != null) { businessCentersIDRef_ = businessCentersNode.Attributes["id"].Value; BusinessCenters ob = new BusinessCenters(businessCentersNode); IDManager.SetID(businessCentersIDRef_, ob); } else if (businessCentersNode.Attributes["href"] != null) { businessCentersIDRef_ = businessCentersNode.Attributes["href"].Value; } else { businessCenters_ = new BusinessCenters(businessCentersNode); } } else { businessCenters_ = new BusinessCenters(businessCentersNode); } } XmlNode dateRelativeToPaymentDatesNode = xmlNode.SelectSingleNode("dateRelativeToPaymentDates"); if (dateRelativeToPaymentDatesNode != null) { if (dateRelativeToPaymentDatesNode.Attributes["href"] != null || dateRelativeToPaymentDatesNode.Attributes["id"] != null) { if (dateRelativeToPaymentDatesNode.Attributes["id"] != null) { dateRelativeToPaymentDatesIDRef_ = dateRelativeToPaymentDatesNode.Attributes["id"].Value; DateRelativeToPaymentDates ob = new DateRelativeToPaymentDates(dateRelativeToPaymentDatesNode); IDManager.SetID(dateRelativeToPaymentDatesIDRef_, ob); } else if (dateRelativeToPaymentDatesNode.Attributes["href"] != null) { dateRelativeToPaymentDatesIDRef_ = dateRelativeToPaymentDatesNode.Attributes["href"].Value; } else { dateRelativeToPaymentDates_ = new DateRelativeToPaymentDates(dateRelativeToPaymentDatesNode); } } else { dateRelativeToPaymentDates_ = new DateRelativeToPaymentDates(dateRelativeToPaymentDatesNode); } } XmlNode dateRelativeToCalculationPeriodDatesNode = xmlNode.SelectSingleNode("dateRelativeToCalculationPeriodDates"); if (dateRelativeToCalculationPeriodDatesNode != null) { if (dateRelativeToCalculationPeriodDatesNode.Attributes["href"] != null || dateRelativeToCalculationPeriodDatesNode.Attributes["id"] != null) { if (dateRelativeToCalculationPeriodDatesNode.Attributes["id"] != null) { dateRelativeToCalculationPeriodDatesIDRef_ = dateRelativeToCalculationPeriodDatesNode.Attributes["id"].Value; DateRelativeToCalculationPeriodDates ob = new DateRelativeToCalculationPeriodDates(dateRelativeToCalculationPeriodDatesNode); IDManager.SetID(dateRelativeToCalculationPeriodDatesIDRef_, ob); } else if (dateRelativeToCalculationPeriodDatesNode.Attributes["href"] != null) { dateRelativeToCalculationPeriodDatesIDRef_ = dateRelativeToCalculationPeriodDatesNode.Attributes["href"].Value; } else { dateRelativeToCalculationPeriodDates_ = new DateRelativeToCalculationPeriodDates(dateRelativeToCalculationPeriodDatesNode); } } else { dateRelativeToCalculationPeriodDates_ = new DateRelativeToCalculationPeriodDates(dateRelativeToCalculationPeriodDatesNode); } } }
public BusinessDayAdjustments(XmlNode xmlNode) { XmlNodeList businessDayConventionNodeList = xmlNode.SelectNodes("businessDayConvention"); if (businessDayConventionNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in businessDayConventionNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { businessDayConventionIDRef = item.Attributes["id"].Name; BusinessDayConventionEnum ob = BusinessDayConventionEnum(); IDManager.SetID(businessDayConventionIDRef, ob); } else if (item.Attributes.ToString() == "href") { businessDayConventionIDRef = item.Attributes["href"].Name; } else { businessDayConvention = new BusinessDayConventionEnum(item); } } } XmlNodeList businessCentersReferenceNodeList = xmlNode.SelectNodes("businessCentersReference"); if (businessCentersReferenceNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in businessCentersReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { businessCentersReferenceIDRef = item.Attributes["id"].Name; BusinessCentersReference ob = BusinessCentersReference(); IDManager.SetID(businessCentersReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { businessCentersReferenceIDRef = item.Attributes["href"].Name; } else { businessCentersReference = new BusinessCentersReference(item); } } } XmlNodeList businessCentersNodeList = xmlNode.SelectNodes("businessCenters"); if (businessCentersNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in businessCentersNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { businessCentersIDRef = item.Attributes["id"].Name; BusinessCenters ob = BusinessCenters(); IDManager.SetID(businessCentersIDRef, ob); } else if (item.Attributes.ToString() == "href") { businessCentersIDRef = item.Attributes["href"].Name; } else { businessCenters = new BusinessCenters(item); } } } }
public FxFixingDate(XmlNode xmlNode) : base(xmlNode) { XmlNodeList businessDayConventionNodeList = xmlNode.SelectNodes("businessDayConvention"); if (businessDayConventionNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in businessDayConventionNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { businessDayConventionIDRef = item.Attributes["id"].Name; BusinessDayConventionEnum ob = BusinessDayConventionEnum(); IDManager.SetID(businessDayConventionIDRef, ob); } else if (item.Attributes.ToString() == "href") { businessDayConventionIDRef = item.Attributes["href"].Name; } else { businessDayConvention = new BusinessDayConventionEnum(item); } } } XmlNodeList businessCentersReferenceNodeList = xmlNode.SelectNodes("businessCentersReference"); if (businessCentersReferenceNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in businessCentersReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { businessCentersReferenceIDRef = item.Attributes["id"].Name; BusinessCentersReference ob = BusinessCentersReference(); IDManager.SetID(businessCentersReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { businessCentersReferenceIDRef = item.Attributes["href"].Name; } else { businessCentersReference = new BusinessCentersReference(item); } } } XmlNodeList businessCentersNodeList = xmlNode.SelectNodes("businessCenters"); if (businessCentersNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in businessCentersNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { businessCentersIDRef = item.Attributes["id"].Name; BusinessCenters ob = BusinessCenters(); IDManager.SetID(businessCentersIDRef, ob); } else if (item.Attributes.ToString() == "href") { businessCentersIDRef = item.Attributes["href"].Name; } else { businessCenters = new BusinessCenters(item); } } } XmlNodeList dateRelativeToPaymentDatesNodeList = xmlNode.SelectNodes("dateRelativeToPaymentDates"); if (dateRelativeToPaymentDatesNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in dateRelativeToPaymentDatesNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { dateRelativeToPaymentDatesIDRef = item.Attributes["id"].Name; DateRelativeToPaymentDates ob = DateRelativeToPaymentDates(); IDManager.SetID(dateRelativeToPaymentDatesIDRef, ob); } else if (item.Attributes.ToString() == "href") { dateRelativeToPaymentDatesIDRef = item.Attributes["href"].Name; } else { dateRelativeToPaymentDates = new DateRelativeToPaymentDates(item); } } } XmlNodeList dateRelativeToCalculationPeriodDatesNodeList = xmlNode.SelectNodes("dateRelativeToCalculationPeriodDates"); if (dateRelativeToCalculationPeriodDatesNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in dateRelativeToCalculationPeriodDatesNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { dateRelativeToCalculationPeriodDatesIDRef = item.Attributes["id"].Name; DateRelativeToCalculationPeriodDates ob = DateRelativeToCalculationPeriodDates(); IDManager.SetID(dateRelativeToCalculationPeriodDatesIDRef, ob); } else if (item.Attributes.ToString() == "href") { dateRelativeToCalculationPeriodDatesIDRef = item.Attributes["href"].Name; } else { dateRelativeToCalculationPeriodDates = new DateRelativeToCalculationPeriodDates(item); } } } }
public StockIndex(XmlNode xmlNode) { XmlNode codeNode = xmlNode.SelectSingleNode("code"); if (codeNode != null) { if (codeNode.Attributes["href"] != null || codeNode.Attributes["id"] != null) { if (codeNode.Attributes["id"] != null) { codeIDRef_ = codeNode.Attributes["id"].Value; XsdTypeToken ob = new XsdTypeToken(codeNode); IDManager.SetID(codeIDRef_, ob); } else if (codeNode.Attributes["href"] != null) { codeIDRef_ = codeNode.Attributes["href"].Value; } else { code_ = new XsdTypeToken(codeNode); } } else { code_ = new XsdTypeToken(codeNode); } } XmlNode nameNode = xmlNode.SelectSingleNode("name"); if (nameNode != null) { if (nameNode.Attributes["href"] != null || nameNode.Attributes["id"] != null) { if (nameNode.Attributes["id"] != null) { nameIDRef_ = nameNode.Attributes["id"].Value; XsdTypeToken ob = new XsdTypeToken(nameNode); IDManager.SetID(nameIDRef_, ob); } else if (nameNode.Attributes["href"] != null) { nameIDRef_ = nameNode.Attributes["href"].Value; } else { name_ = new XsdTypeToken(nameNode); } } else { name_ = new XsdTypeToken(nameNode); } } XmlNode indexTypeNode = xmlNode.SelectSingleNode("indexType"); if (indexTypeNode != null) { if (indexTypeNode.Attributes["href"] != null || indexTypeNode.Attributes["id"] != null) { if (indexTypeNode.Attributes["id"] != null) { indexTypeIDRef_ = indexTypeNode.Attributes["id"].Value; XsdTypeToken ob = new XsdTypeToken(indexTypeNode); IDManager.SetID(indexTypeIDRef_, ob); } else if (indexTypeNode.Attributes["href"] != null) { indexTypeIDRef_ = indexTypeNode.Attributes["href"].Value; } else { indexType_ = new XsdTypeToken(indexTypeNode); } } else { indexType_ = new XsdTypeToken(indexTypeNode); } } XmlNode businessDayConventionNode = xmlNode.SelectSingleNode("businessDayConvention"); if (businessDayConventionNode != null) { if (businessDayConventionNode.Attributes["href"] != null || businessDayConventionNode.Attributes["id"] != null) { if (businessDayConventionNode.Attributes["id"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["id"].Value; BusinessDayConventionEnum ob = new BusinessDayConventionEnum(businessDayConventionNode); IDManager.SetID(businessDayConventionIDRef_, ob); } else if (businessDayConventionNode.Attributes["href"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["href"].Value; } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } XmlNode endOfMonthNode = xmlNode.SelectSingleNode("endOfMonth"); if (endOfMonthNode != null) { if (endOfMonthNode.Attributes["href"] != null || endOfMonthNode.Attributes["id"] != null) { if (endOfMonthNode.Attributes["id"] != null) { endOfMonthIDRef_ = endOfMonthNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(endOfMonthNode); IDManager.SetID(endOfMonthIDRef_, ob); } else if (endOfMonthNode.Attributes["href"] != null) { endOfMonthIDRef_ = endOfMonthNode.Attributes["href"].Value; } else { endOfMonth_ = new XsdTypeBoolean(endOfMonthNode); } } else { endOfMonth_ = new XsdTypeBoolean(endOfMonthNode); } } XmlNode dayCounterNode = xmlNode.SelectSingleNode("dayCounter"); if (dayCounterNode != null) { if (dayCounterNode.Attributes["href"] != null || dayCounterNode.Attributes["id"] != null) { if (dayCounterNode.Attributes["id"] != null) { dayCounterIDRef_ = dayCounterNode.Attributes["id"].Value; XsdTypeToken ob = new XsdTypeToken(dayCounterNode); IDManager.SetID(dayCounterIDRef_, ob); } else if (dayCounterNode.Attributes["href"] != null) { dayCounterIDRef_ = dayCounterNode.Attributes["href"].Value; } else { dayCounter_ = new XsdTypeToken(dayCounterNode); } } else { dayCounter_ = new XsdTypeToken(dayCounterNode); } } }
public RelativeDateOffset(XmlNode xmlNode) : base(xmlNode) { XmlNode businessDayConventionNode = xmlNode.SelectSingleNode("businessDayConvention"); if (businessDayConventionNode != null) { if (businessDayConventionNode.Attributes["href"] != null || businessDayConventionNode.Attributes["id"] != null) { if (businessDayConventionNode.Attributes["id"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["id"].Value; BusinessDayConventionEnum ob = new BusinessDayConventionEnum(businessDayConventionNode); IDManager.SetID(businessDayConventionIDRef_, ob); } else if (businessDayConventionNode.Attributes["href"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["href"].Value; } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } XmlNode businessCentersReferenceNode = xmlNode.SelectSingleNode("businessCentersReference"); if (businessCentersReferenceNode != null) { if (businessCentersReferenceNode.Attributes["href"] != null || businessCentersReferenceNode.Attributes["id"] != null) { if (businessCentersReferenceNode.Attributes["id"] != null) { businessCentersReferenceIDRef_ = businessCentersReferenceNode.Attributes["id"].Value; BusinessCentersReference ob = new BusinessCentersReference(businessCentersReferenceNode); IDManager.SetID(businessCentersReferenceIDRef_, ob); } else if (businessCentersReferenceNode.Attributes["href"] != null) { businessCentersReferenceIDRef_ = businessCentersReferenceNode.Attributes["href"].Value; } else { businessCentersReference_ = new BusinessCentersReference(businessCentersReferenceNode); } } else { businessCentersReference_ = new BusinessCentersReference(businessCentersReferenceNode); } } XmlNode businessCentersNode = xmlNode.SelectSingleNode("businessCenters"); if (businessCentersNode != null) { if (businessCentersNode.Attributes["href"] != null || businessCentersNode.Attributes["id"] != null) { if (businessCentersNode.Attributes["id"] != null) { businessCentersIDRef_ = businessCentersNode.Attributes["id"].Value; BusinessCenters ob = new BusinessCenters(businessCentersNode); IDManager.SetID(businessCentersIDRef_, ob); } else if (businessCentersNode.Attributes["href"] != null) { businessCentersIDRef_ = businessCentersNode.Attributes["href"].Value; } else { businessCenters_ = new BusinessCenters(businessCentersNode); } } else { businessCenters_ = new BusinessCenters(businessCentersNode); } } XmlNode dateRelativeToNode = xmlNode.SelectSingleNode("dateRelativeTo"); if (dateRelativeToNode != null) { if (dateRelativeToNode.Attributes["href"] != null || dateRelativeToNode.Attributes["id"] != null) { if (dateRelativeToNode.Attributes["id"] != null) { dateRelativeToIDRef_ = dateRelativeToNode.Attributes["id"].Value; DateReference ob = new DateReference(dateRelativeToNode); IDManager.SetID(dateRelativeToIDRef_, ob); } else if (dateRelativeToNode.Attributes["href"] != null) { dateRelativeToIDRef_ = dateRelativeToNode.Attributes["href"].Value; } else { dateRelativeTo_ = new DateReference(dateRelativeToNode); } } else { dateRelativeTo_ = new DateReference(dateRelativeToNode); } } XmlNode adjustedDateNode = xmlNode.SelectSingleNode("adjustedDate"); if (adjustedDateNode != null) { if (adjustedDateNode.Attributes["href"] != null || adjustedDateNode.Attributes["id"] != null) { if (adjustedDateNode.Attributes["id"] != null) { adjustedDateIDRef_ = adjustedDateNode.Attributes["id"].Value; IdentifiedDate ob = new IdentifiedDate(adjustedDateNode); IDManager.SetID(adjustedDateIDRef_, ob); } else if (adjustedDateNode.Attributes["href"] != null) { adjustedDateIDRef_ = adjustedDateNode.Attributes["href"].Value; } else { adjustedDate_ = new IdentifiedDate(adjustedDateNode); } } else { adjustedDate_ = new IdentifiedDate(adjustedDateNode); } } }
public StockIndex(XmlNode xmlNode) { XmlNode codeNode = xmlNode.SelectSingleNode("code"); if (codeNode != null) { if (codeNode.Attributes["href"] != null || codeNode.Attributes["id"] != null) { if (codeNode.Attributes["id"] != null) { codeIDRef_ = codeNode.Attributes["id"].Value; XsdTypeToken ob = new XsdTypeToken(codeNode); IDManager.SetID(codeIDRef_, ob); } else if (codeNode.Attributes["href"] != null) { codeIDRef_ = codeNode.Attributes["href"].Value; } else { code_ = new XsdTypeToken(codeNode); } } else { code_ = new XsdTypeToken(codeNode); } } XmlNode nameNode = xmlNode.SelectSingleNode("name"); if (nameNode != null) { if (nameNode.Attributes["href"] != null || nameNode.Attributes["id"] != null) { if (nameNode.Attributes["id"] != null) { nameIDRef_ = nameNode.Attributes["id"].Value; XsdTypeToken ob = new XsdTypeToken(nameNode); IDManager.SetID(nameIDRef_, ob); } else if (nameNode.Attributes["href"] != null) { nameIDRef_ = nameNode.Attributes["href"].Value; } else { name_ = new XsdTypeToken(nameNode); } } else { name_ = new XsdTypeToken(nameNode); } } XmlNode indexTypeNode = xmlNode.SelectSingleNode("indexType"); if (indexTypeNode != null) { if (indexTypeNode.Attributes["href"] != null || indexTypeNode.Attributes["id"] != null) { if (indexTypeNode.Attributes["id"] != null) { indexTypeIDRef_ = indexTypeNode.Attributes["id"].Value; XsdTypeToken ob = new XsdTypeToken(indexTypeNode); IDManager.SetID(indexTypeIDRef_, ob); } else if (indexTypeNode.Attributes["href"] != null) { indexTypeIDRef_ = indexTypeNode.Attributes["href"].Value; } else { indexType_ = new XsdTypeToken(indexTypeNode); } } else { indexType_ = new XsdTypeToken(indexTypeNode); } } XmlNode businessDayConventionNode = xmlNode.SelectSingleNode("businessDayConvention"); if (businessDayConventionNode != null) { if (businessDayConventionNode.Attributes["href"] != null || businessDayConventionNode.Attributes["id"] != null) { if (businessDayConventionNode.Attributes["id"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["id"].Value; BusinessDayConventionEnum ob = new BusinessDayConventionEnum(businessDayConventionNode); IDManager.SetID(businessDayConventionIDRef_, ob); } else if (businessDayConventionNode.Attributes["href"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["href"].Value; } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } XmlNode endOfMonthNode = xmlNode.SelectSingleNode("endOfMonth"); if (endOfMonthNode != null) { if (endOfMonthNode.Attributes["href"] != null || endOfMonthNode.Attributes["id"] != null) { if (endOfMonthNode.Attributes["id"] != null) { endOfMonthIDRef_ = endOfMonthNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(endOfMonthNode); IDManager.SetID(endOfMonthIDRef_, ob); } else if (endOfMonthNode.Attributes["href"] != null) { endOfMonthIDRef_ = endOfMonthNode.Attributes["href"].Value; } else { endOfMonth_ = new XsdTypeBoolean(endOfMonthNode); } } else { endOfMonth_ = new XsdTypeBoolean(endOfMonthNode); } } XmlNode dayCounterNode = xmlNode.SelectSingleNode("dayCounter"); if (dayCounterNode != null) { if (dayCounterNode.Attributes["href"] != null || dayCounterNode.Attributes["id"] != null) { if (dayCounterNode.Attributes["id"] != null) { dayCounterIDRef_ = dayCounterNode.Attributes["id"].Value; XsdTypeToken ob = new XsdTypeToken(dayCounterNode); IDManager.SetID(dayCounterIDRef_, ob); } else if (dayCounterNode.Attributes["href"] != null) { dayCounterIDRef_ = dayCounterNode.Attributes["href"].Value; } else { dayCounter_ = new XsdTypeToken(dayCounterNode); } } else { dayCounter_ = new XsdTypeToken(dayCounterNode); } } }
public BusinessDateRange(XmlNode xmlNode) : base(xmlNode) { XmlNode businessDayConventionNode = xmlNode.SelectSingleNode("businessDayConvention"); if (businessDayConventionNode != null) { if (businessDayConventionNode.Attributes["href"] != null || businessDayConventionNode.Attributes["id"] != null) { if (businessDayConventionNode.Attributes["id"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["id"].Value; BusinessDayConventionEnum ob = new BusinessDayConventionEnum(businessDayConventionNode); IDManager.SetID(businessDayConventionIDRef_, ob); } else if (businessDayConventionNode.Attributes["href"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["href"].Value; } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } XmlNode businessCentersReferenceNode = xmlNode.SelectSingleNode("businessCentersReference"); if (businessCentersReferenceNode != null) { if (businessCentersReferenceNode.Attributes["href"] != null || businessCentersReferenceNode.Attributes["id"] != null) { if (businessCentersReferenceNode.Attributes["id"] != null) { businessCentersReferenceIDRef_ = businessCentersReferenceNode.Attributes["id"].Value; BusinessCentersReference ob = new BusinessCentersReference(businessCentersReferenceNode); IDManager.SetID(businessCentersReferenceIDRef_, ob); } else if (businessCentersReferenceNode.Attributes["href"] != null) { businessCentersReferenceIDRef_ = businessCentersReferenceNode.Attributes["href"].Value; } else { businessCentersReference_ = new BusinessCentersReference(businessCentersReferenceNode); } } else { businessCentersReference_ = new BusinessCentersReference(businessCentersReferenceNode); } } XmlNode businessCentersNode = xmlNode.SelectSingleNode("businessCenters"); if (businessCentersNode != null) { if (businessCentersNode.Attributes["href"] != null || businessCentersNode.Attributes["id"] != null) { if (businessCentersNode.Attributes["id"] != null) { businessCentersIDRef_ = businessCentersNode.Attributes["id"].Value; BusinessCenters ob = new BusinessCenters(businessCentersNode); IDManager.SetID(businessCentersIDRef_, ob); } else if (businessCentersNode.Attributes["href"] != null) { businessCentersIDRef_ = businessCentersNode.Attributes["href"].Value; } else { businessCenters_ = new BusinessCenters(businessCentersNode); } } else { businessCenters_ = new BusinessCenters(businessCentersNode); } } }
public RelativeDateOffset(XmlNode xmlNode) : base(xmlNode) { XmlNode businessDayConventionNode = xmlNode.SelectSingleNode("businessDayConvention"); if (businessDayConventionNode != null) { if (businessDayConventionNode.Attributes["href"] != null || businessDayConventionNode.Attributes["id"] != null) { if (businessDayConventionNode.Attributes["id"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["id"].Value; BusinessDayConventionEnum ob = new BusinessDayConventionEnum(businessDayConventionNode); IDManager.SetID(businessDayConventionIDRef_, ob); } else if (businessDayConventionNode.Attributes["href"] != null) { businessDayConventionIDRef_ = businessDayConventionNode.Attributes["href"].Value; } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } else { businessDayConvention_ = new BusinessDayConventionEnum(businessDayConventionNode); } } XmlNode businessCentersReferenceNode = xmlNode.SelectSingleNode("businessCentersReference"); if (businessCentersReferenceNode != null) { if (businessCentersReferenceNode.Attributes["href"] != null || businessCentersReferenceNode.Attributes["id"] != null) { if (businessCentersReferenceNode.Attributes["id"] != null) { businessCentersReferenceIDRef_ = businessCentersReferenceNode.Attributes["id"].Value; BusinessCentersReference ob = new BusinessCentersReference(businessCentersReferenceNode); IDManager.SetID(businessCentersReferenceIDRef_, ob); } else if (businessCentersReferenceNode.Attributes["href"] != null) { businessCentersReferenceIDRef_ = businessCentersReferenceNode.Attributes["href"].Value; } else { businessCentersReference_ = new BusinessCentersReference(businessCentersReferenceNode); } } else { businessCentersReference_ = new BusinessCentersReference(businessCentersReferenceNode); } } XmlNode businessCentersNode = xmlNode.SelectSingleNode("businessCenters"); if (businessCentersNode != null) { if (businessCentersNode.Attributes["href"] != null || businessCentersNode.Attributes["id"] != null) { if (businessCentersNode.Attributes["id"] != null) { businessCentersIDRef_ = businessCentersNode.Attributes["id"].Value; BusinessCenters ob = new BusinessCenters(businessCentersNode); IDManager.SetID(businessCentersIDRef_, ob); } else if (businessCentersNode.Attributes["href"] != null) { businessCentersIDRef_ = businessCentersNode.Attributes["href"].Value; } else { businessCenters_ = new BusinessCenters(businessCentersNode); } } else { businessCenters_ = new BusinessCenters(businessCentersNode); } } XmlNode dateRelativeToNode = xmlNode.SelectSingleNode("dateRelativeTo"); if (dateRelativeToNode != null) { if (dateRelativeToNode.Attributes["href"] != null || dateRelativeToNode.Attributes["id"] != null) { if (dateRelativeToNode.Attributes["id"] != null) { dateRelativeToIDRef_ = dateRelativeToNode.Attributes["id"].Value; DateReference ob = new DateReference(dateRelativeToNode); IDManager.SetID(dateRelativeToIDRef_, ob); } else if (dateRelativeToNode.Attributes["href"] != null) { dateRelativeToIDRef_ = dateRelativeToNode.Attributes["href"].Value; } else { dateRelativeTo_ = new DateReference(dateRelativeToNode); } } else { dateRelativeTo_ = new DateReference(dateRelativeToNode); } } XmlNode adjustedDateNode = xmlNode.SelectSingleNode("adjustedDate"); if (adjustedDateNode != null) { if (adjustedDateNode.Attributes["href"] != null || adjustedDateNode.Attributes["id"] != null) { if (adjustedDateNode.Attributes["id"] != null) { adjustedDateIDRef_ = adjustedDateNode.Attributes["id"].Value; IdentifiedDate ob = new IdentifiedDate(adjustedDateNode); IDManager.SetID(adjustedDateIDRef_, ob); } else if (adjustedDateNode.Attributes["href"] != null) { adjustedDateIDRef_ = adjustedDateNode.Attributes["href"].Value; } else { adjustedDate_ = new IdentifiedDate(adjustedDateNode); } } else { adjustedDate_ = new IdentifiedDate(adjustedDateNode); } } }