public IdentityReferenceCal(XmlNode xmlNode) : base(xmlNode) { XmlNode krCodeNode = xmlNode.SelectSingleNode("krCode"); if (krCodeNode != null) { if (krCodeNode.Attributes["href"] != null || krCodeNode.Attributes["id"] != null) { if (krCodeNode.Attributes["id"] != null) { krCodeIDRef_ = krCodeNode.Attributes["id"].Value; XsdTypeToken ob = new XsdTypeToken(krCodeNode); IDManager.SetID(krCodeIDRef_, ob); } else if (krCodeNode.Attributes["href"] != null) { krCodeIDRef_ = krCodeNode.Attributes["href"].Value; } else { krCode_ = new XsdTypeToken(krCodeNode); } } else { krCode_ = new XsdTypeToken(krCodeNode); } } XmlNode fixingDateInfoNode = xmlNode.SelectSingleNode("fixingDateInfo"); if (fixingDateInfoNode != null) { if (fixingDateInfoNode.Attributes["href"] != null || fixingDateInfoNode.Attributes["id"] != null) { if (fixingDateInfoNode.Attributes["id"] != null) { fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["id"].Value; FixingDateInfo ob = new FixingDateInfo(fixingDateInfoNode); IDManager.SetID(fixingDateInfoIDRef_, ob); } else if (fixingDateInfoNode.Attributes["href"] != null) { fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["href"].Value; } else { fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode); } } else { fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode); } } }
public ChoiceReferenceCal(XmlNode xmlNode) : base(xmlNode) { XmlNode selectedUnderNameNode = xmlNode.SelectSingleNode("selectedUnderName"); if (selectedUnderNameNode != null) { if (selectedUnderNameNode.Attributes["href"] != null || selectedUnderNameNode.Attributes["id"] != null) { if (selectedUnderNameNode.Attributes["id"] != null) { selectedUnderNameIDRef_ = selectedUnderNameNode.Attributes["id"].Value; XsdTypeToken ob = new XsdTypeToken(selectedUnderNameNode); IDManager.SetID(selectedUnderNameIDRef_, ob); } else if (selectedUnderNameNode.Attributes["href"] != null) { selectedUnderNameIDRef_ = selectedUnderNameNode.Attributes["href"].Value; } else { selectedUnderName_ = new XsdTypeToken(selectedUnderNameNode); } } else { selectedUnderName_ = new XsdTypeToken(selectedUnderNameNode); } } XmlNode fixingDateInfoNode = xmlNode.SelectSingleNode("fixingDateInfo"); if (fixingDateInfoNode != null) { if (fixingDateInfoNode.Attributes["href"] != null || fixingDateInfoNode.Attributes["id"] != null) { if (fixingDateInfoNode.Attributes["id"] != null) { fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["id"].Value; FixingDateInfo ob = new FixingDateInfo(fixingDateInfoNode); IDManager.SetID(fixingDateInfoIDRef_, ob); } else if (fixingDateInfoNode.Attributes["href"] != null) { fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["href"].Value; } else { fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode); } } else { fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode); } } }
public PayoffDateInfo(XmlNode xmlNode) : base(xmlNode) { XmlNode fixingDateInfoNode = xmlNode.SelectSingleNode("fixingDateInfo"); if (fixingDateInfoNode != null) { if (fixingDateInfoNode.Attributes["href"] != null || fixingDateInfoNode.Attributes["id"] != null) { if (fixingDateInfoNode.Attributes["id"] != null) { fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["id"].Value; FixingDateInfo ob = new FixingDateInfo(fixingDateInfoNode); IDManager.SetID(fixingDateInfoIDRef_, ob); } else if (fixingDateInfoNode.Attributes["href"] != null) { fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["href"].Value; } else { fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode); } } else { fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode); } } }
public CompositeSumOptionPayoff(XmlNode xmlNode) : base(xmlNode) { XmlNode fixingDateInfoNode = xmlNode.SelectSingleNode("fixingDateInfo"); if (fixingDateInfoNode != null) { if (fixingDateInfoNode.Attributes["href"] != null || fixingDateInfoNode.Attributes["id"] != null) { if (fixingDateInfoNode.Attributes["id"] != null) { fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["id"].Value; FixingDateInfo ob = new FixingDateInfo(fixingDateInfoNode); IDManager.SetID(fixingDateInfoIDRef_, ob); } else if (fixingDateInfoNode.Attributes["href"] != null) { fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["href"].Value; } else { fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode); } } else { fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode); } } XmlNode payoffDateInfoNode = xmlNode.SelectSingleNode("payoffDateInfo"); if (payoffDateInfoNode != null) { if (payoffDateInfoNode.Attributes["href"] != null || payoffDateInfoNode.Attributes["id"] != null) { if (payoffDateInfoNode.Attributes["id"] != null) { payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["id"].Value; PayoffDateInfo ob = new PayoffDateInfo(payoffDateInfoNode); IDManager.SetID(payoffDateInfoIDRef_, ob); } else if (payoffDateInfoNode.Attributes["href"] != null) { payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["href"].Value; } else { payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode); } } else { payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode); } } XmlNode referenceCalculationInfoNode = xmlNode.SelectSingleNode("referenceCalculationInfo"); if (referenceCalculationInfoNode != null) { if (referenceCalculationInfoNode.Attributes["href"] != null || referenceCalculationInfoNode.Attributes["id"] != null) { if (referenceCalculationInfoNode.Attributes["id"] != null) { referenceCalculationInfoIDRef_ = referenceCalculationInfoNode.Attributes["id"].Value; ReferenceCalculationInfo ob = new ReferenceCalculationInfo(referenceCalculationInfoNode); IDManager.SetID(referenceCalculationInfoIDRef_, ob); } else if (referenceCalculationInfoNode.Attributes["href"] != null) { referenceCalculationInfoIDRef_ = referenceCalculationInfoNode.Attributes["href"].Value; } else { referenceCalculationInfo_ = new ReferenceCalculationInfo(referenceCalculationInfoNode); } } else { referenceCalculationInfo_ = new ReferenceCalculationInfo(referenceCalculationInfoNode); } } XmlNodeList standardOptionNodeList = xmlNode.SelectNodes("standardOption"); if (standardOptionNodeList != null) { this.standardOption_ = new List<StandardOption>(); foreach (XmlNode item in standardOptionNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { standardOptionIDRef_ = item.Attributes["id"].Value; standardOption_.Add(new StandardOption(item)); IDManager.SetID(standardOptionIDRef_, standardOption_[standardOption_.Count - 1 ]); } else if (item.Attributes["href"] != null) { standardOptionIDRef_ = item.Attributes["href"].Value; } else { standardOption_.Add(new StandardOption(item)); } } else { standardOption_.Add(new StandardOption(item)); } } } }
public MinimumReferenceCal(XmlNode xmlNode) : base(xmlNode) { XmlNode nthNode = xmlNode.SelectSingleNode("nth"); if (nthNode != null) { if (nthNode.Attributes["href"] != null || nthNode.Attributes["id"] != null) { if (nthNode.Attributes["id"] != null) { nthIDRef_ = nthNode.Attributes["id"].Value; XsdTypeDouble ob = new XsdTypeDouble(nthNode); IDManager.SetID(nthIDRef_, ob); } else if (nthNode.Attributes["href"] != null) { nthIDRef_ = nthNode.Attributes["href"].Value; } else { nth_ = new XsdTypeDouble(nthNode); } } else { nth_ = new XsdTypeDouble(nthNode); } } XmlNodeList selectedUnderNameNodeList = xmlNode.SelectNodes("selectedUnderName"); if (selectedUnderNameNodeList != null) { this.selectedUnderName_ = new List <XsdTypeToken>(); foreach (XmlNode item in selectedUnderNameNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { selectedUnderNameIDRef_ = item.Attributes["id"].Value; selectedUnderName_.Add(new XsdTypeToken(item)); IDManager.SetID(selectedUnderNameIDRef_, selectedUnderName_[selectedUnderName_.Count - 1]); } else if (item.Attributes["href"] != null) { selectedUnderNameIDRef_ = item.Attributes["href"].Value; } else { selectedUnderName_.Add(new XsdTypeToken(item)); } } else { selectedUnderName_.Add(new XsdTypeToken(item)); } } } XmlNode fixingDateInfoNode = xmlNode.SelectSingleNode("fixingDateInfo"); if (fixingDateInfoNode != null) { if (fixingDateInfoNode.Attributes["href"] != null || fixingDateInfoNode.Attributes["id"] != null) { if (fixingDateInfoNode.Attributes["id"] != null) { fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["id"].Value; FixingDateInfo ob = new FixingDateInfo(fixingDateInfoNode); IDManager.SetID(fixingDateInfoIDRef_, ob); } else if (fixingDateInfoNode.Attributes["href"] != null) { fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["href"].Value; } else { fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode); } } else { fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode); } } }
public AutoCallConstReturnTrigger(XmlNode xmlNode) : base(xmlNode) { XmlNode dateOrderNode = xmlNode.SelectSingleNode("dateOrder"); if (dateOrderNode != null) { if (dateOrderNode.Attributes["href"] != null || dateOrderNode.Attributes["id"] != null) { if (dateOrderNode.Attributes["id"] != null) { dateOrderIDRef_ = dateOrderNode.Attributes["id"].Value; XsdTypeInteger ob = new XsdTypeInteger(dateOrderNode); IDManager.SetID(dateOrderIDRef_, ob); } else if (dateOrderNode.Attributes["href"] != null) { dateOrderIDRef_ = dateOrderNode.Attributes["href"].Value; } else { dateOrder_ = new XsdTypeInteger(dateOrderNode); } } else { dateOrder_ = new XsdTypeInteger(dateOrderNode); } } XmlNode fixingDateInfoNode = xmlNode.SelectSingleNode("fixingDateInfo"); if (fixingDateInfoNode != null) { if (fixingDateInfoNode.Attributes["href"] != null || fixingDateInfoNode.Attributes["id"] != null) { if (fixingDateInfoNode.Attributes["id"] != null) { fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["id"].Value; FixingDateInfo ob = new FixingDateInfo(fixingDateInfoNode); IDManager.SetID(fixingDateInfoIDRef_, ob); } else if (fixingDateInfoNode.Attributes["href"] != null) { fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["href"].Value; } else { fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode); } } else { fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode); } } XmlNode payoffDateInfoNode = xmlNode.SelectSingleNode("payoffDateInfo"); if (payoffDateInfoNode != null) { if (payoffDateInfoNode.Attributes["href"] != null || payoffDateInfoNode.Attributes["id"] != null) { if (payoffDateInfoNode.Attributes["id"] != null) { payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["id"].Value; PayoffDateInfo ob = new PayoffDateInfo(payoffDateInfoNode); IDManager.SetID(payoffDateInfoIDRef_, ob); } else if (payoffDateInfoNode.Attributes["href"] != null) { payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["href"].Value; } else { payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode); } } else { payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode); } } XmlNode triggerNode = xmlNode.SelectSingleNode("trigger"); if (triggerNode != null) { if (triggerNode.Attributes["href"] != null || triggerNode.Attributes["id"] != null) { if (triggerNode.Attributes["id"] != null) { triggerIDRef_ = triggerNode.Attributes["id"].Value; XsdTypeDouble ob = new XsdTypeDouble(triggerNode); IDManager.SetID(triggerIDRef_, ob); } else if (triggerNode.Attributes["href"] != null) { triggerIDRef_ = triggerNode.Attributes["href"].Value; } else { trigger_ = new XsdTypeDouble(triggerNode); } } else { trigger_ = new XsdTypeDouble(triggerNode); } } XmlNode returnNode = xmlNode.SelectSingleNode("return"); if (returnNode != null) { if (returnNode.Attributes["href"] != null || returnNode.Attributes["id"] != null) { if (returnNode.Attributes["id"] != null) { returnIDRef_ = returnNode.Attributes["id"].Value; XsdTypeDouble ob = new XsdTypeDouble(returnNode); IDManager.SetID(returnIDRef_, ob); } else if (returnNode.Attributes["href"] != null) { returnIDRef_ = returnNode.Attributes["href"].Value; } else { return_ = new XsdTypeDouble(returnNode); } } else { return_ = new XsdTypeDouble(returnNode); } } XmlNode averageDaysNode = xmlNode.SelectSingleNode("averageDays"); if (averageDaysNode != null) { if (averageDaysNode.Attributes["href"] != null || averageDaysNode.Attributes["id"] != null) { if (averageDaysNode.Attributes["id"] != null) { averageDaysIDRef_ = averageDaysNode.Attributes["id"].Value; XsdTypeInteger ob = new XsdTypeInteger(averageDaysNode); IDManager.SetID(averageDaysIDRef_, ob); } else if (averageDaysNode.Attributes["href"] != null) { averageDaysIDRef_ = averageDaysNode.Attributes["href"].Value; } else { averageDays_ = new XsdTypeInteger(averageDaysNode); } } else { averageDays_ = new XsdTypeInteger(averageDaysNode); } } XmlNode isExpiredNode = xmlNode.SelectSingleNode("isExpired"); if (isExpiredNode != null) { if (isExpiredNode.Attributes["href"] != null || isExpiredNode.Attributes["id"] != null) { if (isExpiredNode.Attributes["id"] != null) { isExpiredIDRef_ = isExpiredNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(isExpiredNode); IDManager.SetID(isExpiredIDRef_, ob); } else if (isExpiredNode.Attributes["href"] != null) { isExpiredIDRef_ = isExpiredNode.Attributes["href"].Value; } else { isExpired_ = new XsdTypeBoolean(isExpiredNode); } } else { isExpired_ = new XsdTypeBoolean(isExpiredNode); } } }
public MaximumReferenceCal(XmlNode xmlNode) : base(xmlNode) { XmlNode nthNode = xmlNode.SelectSingleNode("nth"); if (nthNode != null) { if (nthNode.Attributes["href"] != null || nthNode.Attributes["id"] != null) { if (nthNode.Attributes["id"] != null) { nthIDRef_ = nthNode.Attributes["id"].Value; XsdTypeDouble ob = new XsdTypeDouble(nthNode); IDManager.SetID(nthIDRef_, ob); } else if (nthNode.Attributes["href"] != null) { nthIDRef_ = nthNode.Attributes["href"].Value; } else { nth_ = new XsdTypeDouble(nthNode); } } else { nth_ = new XsdTypeDouble(nthNode); } } XmlNodeList selectedUnderNameNodeList = xmlNode.SelectNodes("selectedUnderName"); if (selectedUnderNameNodeList != null) { this.selectedUnderName_ = new List<XsdTypeToken>(); foreach (XmlNode item in selectedUnderNameNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { selectedUnderNameIDRef_ = item.Attributes["id"].Value; selectedUnderName_.Add(new XsdTypeToken(item)); IDManager.SetID(selectedUnderNameIDRef_, selectedUnderName_[selectedUnderName_.Count - 1 ]); } else if (item.Attributes["href"] != null) { selectedUnderNameIDRef_ = item.Attributes["href"].Value; } else { selectedUnderName_.Add(new XsdTypeToken(item)); } } else { selectedUnderName_.Add(new XsdTypeToken(item)); } } } XmlNode fixingDateInfoNode = xmlNode.SelectSingleNode("fixingDateInfo"); if (fixingDateInfoNode != null) { if (fixingDateInfoNode.Attributes["href"] != null || fixingDateInfoNode.Attributes["id"] != null) { if (fixingDateInfoNode.Attributes["id"] != null) { fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["id"].Value; FixingDateInfo ob = new FixingDateInfo(fixingDateInfoNode); IDManager.SetID(fixingDateInfoIDRef_, ob); } else if (fixingDateInfoNode.Attributes["href"] != null) { fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["href"].Value; } else { fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode); } } else { fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode); } } }
public CompositeSumOptionPayoff(XmlNode xmlNode) : base(xmlNode) { XmlNode fixingDateInfoNode = xmlNode.SelectSingleNode("fixingDateInfo"); if (fixingDateInfoNode != null) { if (fixingDateInfoNode.Attributes["href"] != null || fixingDateInfoNode.Attributes["id"] != null) { if (fixingDateInfoNode.Attributes["id"] != null) { fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["id"].Value; FixingDateInfo ob = new FixingDateInfo(fixingDateInfoNode); IDManager.SetID(fixingDateInfoIDRef_, ob); } else if (fixingDateInfoNode.Attributes["href"] != null) { fixingDateInfoIDRef_ = fixingDateInfoNode.Attributes["href"].Value; } else { fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode); } } else { fixingDateInfo_ = new FixingDateInfo(fixingDateInfoNode); } } XmlNode payoffDateInfoNode = xmlNode.SelectSingleNode("payoffDateInfo"); if (payoffDateInfoNode != null) { if (payoffDateInfoNode.Attributes["href"] != null || payoffDateInfoNode.Attributes["id"] != null) { if (payoffDateInfoNode.Attributes["id"] != null) { payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["id"].Value; PayoffDateInfo ob = new PayoffDateInfo(payoffDateInfoNode); IDManager.SetID(payoffDateInfoIDRef_, ob); } else if (payoffDateInfoNode.Attributes["href"] != null) { payoffDateInfoIDRef_ = payoffDateInfoNode.Attributes["href"].Value; } else { payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode); } } else { payoffDateInfo_ = new PayoffDateInfo(payoffDateInfoNode); } } XmlNode referenceCalculationInfoNode = xmlNode.SelectSingleNode("referenceCalculationInfo"); if (referenceCalculationInfoNode != null) { if (referenceCalculationInfoNode.Attributes["href"] != null || referenceCalculationInfoNode.Attributes["id"] != null) { if (referenceCalculationInfoNode.Attributes["id"] != null) { referenceCalculationInfoIDRef_ = referenceCalculationInfoNode.Attributes["id"].Value; ReferenceCalculationInfo ob = new ReferenceCalculationInfo(referenceCalculationInfoNode); IDManager.SetID(referenceCalculationInfoIDRef_, ob); } else if (referenceCalculationInfoNode.Attributes["href"] != null) { referenceCalculationInfoIDRef_ = referenceCalculationInfoNode.Attributes["href"].Value; } else { referenceCalculationInfo_ = new ReferenceCalculationInfo(referenceCalculationInfoNode); } } else { referenceCalculationInfo_ = new ReferenceCalculationInfo(referenceCalculationInfoNode); } } XmlNodeList standardOptionNodeList = xmlNode.SelectNodes("standardOption"); if (standardOptionNodeList != null) { this.standardOption_ = new List <StandardOption>(); foreach (XmlNode item in standardOptionNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { standardOptionIDRef_ = item.Attributes["id"].Value; standardOption_.Add(new StandardOption(item)); IDManager.SetID(standardOptionIDRef_, standardOption_[standardOption_.Count - 1]); } else if (item.Attributes["href"] != null) { standardOptionIDRef_ = item.Attributes["href"].Value; } else { standardOption_.Add(new StandardOption(item)); } } else { standardOption_.Add(new StandardOption(item)); } } } }