public Notional(XmlNode xmlNode) { XmlNodeList notionalStepScheduleNodeList = xmlNode.SelectNodes("notionalStepSchedule"); if (notionalStepScheduleNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in notionalStepScheduleNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { notionalStepScheduleIDRef = item.Attributes["id"].Name; NonNegativeAmountSchedule ob = NonNegativeAmountSchedule(); IDManager.SetID(notionalStepScheduleIDRef, ob); } else if (item.Attributes.ToString() == "href") { notionalStepScheduleIDRef = item.Attributes["href"].Name; } else { notionalStepSchedule = new NonNegativeAmountSchedule(item); } } } XmlNodeList notionalStepParametersNodeList = xmlNode.SelectNodes("notionalStepParameters"); if (notionalStepParametersNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in notionalStepParametersNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { notionalStepParametersIDRef = item.Attributes["id"].Name; NotionalStepRule ob = NotionalStepRule(); IDManager.SetID(notionalStepParametersIDRef, ob); } else if (item.Attributes.ToString() == "href") { notionalStepParametersIDRef = item.Attributes["href"].Name; } else { notionalStepParameters = new NotionalStepRule(item); } } } }
public Notional(XmlNode xmlNode) { XmlNode notionalStepScheduleNode = xmlNode.SelectSingleNode("notionalStepSchedule"); if (notionalStepScheduleNode != null) { if (notionalStepScheduleNode.Attributes["href"] != null || notionalStepScheduleNode.Attributes["id"] != null) { if (notionalStepScheduleNode.Attributes["id"] != null) { notionalStepScheduleIDRef_ = notionalStepScheduleNode.Attributes["id"].Value; NonNegativeAmountSchedule ob = new NonNegativeAmountSchedule(notionalStepScheduleNode); IDManager.SetID(notionalStepScheduleIDRef_, ob); } else if (notionalStepScheduleNode.Attributes["href"] != null) { notionalStepScheduleIDRef_ = notionalStepScheduleNode.Attributes["href"].Value; } else { notionalStepSchedule_ = new NonNegativeAmountSchedule(notionalStepScheduleNode); } } else { notionalStepSchedule_ = new NonNegativeAmountSchedule(notionalStepScheduleNode); } } XmlNode notionalStepParametersNode = xmlNode.SelectSingleNode("notionalStepParameters"); if (notionalStepParametersNode != null) { if (notionalStepParametersNode.Attributes["href"] != null || notionalStepParametersNode.Attributes["id"] != null) { if (notionalStepParametersNode.Attributes["id"] != null) { notionalStepParametersIDRef_ = notionalStepParametersNode.Attributes["id"].Value; NotionalStepRule ob = new NotionalStepRule(notionalStepParametersNode); IDManager.SetID(notionalStepParametersIDRef_, ob); } else if (notionalStepParametersNode.Attributes["href"] != null) { notionalStepParametersIDRef_ = notionalStepParametersNode.Attributes["href"].Value; } else { notionalStepParameters_ = new NotionalStepRule(notionalStepParametersNode); } } else { notionalStepParameters_ = new NotionalStepRule(notionalStepParametersNode); } } }
public Notional(XmlNode xmlNode) { XmlNodeList notionalStepScheduleNodeList = xmlNode.SelectNodes("notionalStepSchedule"); if (notionalStepScheduleNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in notionalStepScheduleNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { notionalStepScheduleIDRef = item.Attributes["id"].Name; NonNegativeAmountSchedule ob = NonNegativeAmountSchedule(); IDManager.SetID(notionalStepScheduleIDRef, ob); } else if (item.Attributes.ToString() == "href") { notionalStepScheduleIDRef = item.Attributes["href"].Name; } else { notionalStepSchedule = new NonNegativeAmountSchedule(item); } } } XmlNodeList notionalStepParametersNodeList = xmlNode.SelectNodes("notionalStepParameters"); if (notionalStepParametersNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in notionalStepParametersNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { notionalStepParametersIDRef = item.Attributes["id"].Name; NotionalStepRule ob = NotionalStepRule(); IDManager.SetID(notionalStepParametersIDRef, ob); } else if (item.Attributes.ToString() == "href") { notionalStepParametersIDRef = item.Attributes["href"].Name; } else { notionalStepParameters = new NotionalStepRule(item); } } } }