public VolatilityRepresentation(XmlNode xmlNode) : base(xmlNode) { XmlNode assetNode = xmlNode.SelectSingleNode("asset"); if (assetNode != null) { if (assetNode.Attributes["href"] != null || assetNode.Attributes["id"] != null) { if (assetNode.Attributes["id"] != null) { assetIDRef_ = assetNode.Attributes["id"].Value; AnyAssetReference ob = new AnyAssetReference(assetNode); IDManager.SetID(assetIDRef_, ob); } else if (assetNode.Attributes["href"] != null) { assetIDRef_ = assetNode.Attributes["href"].Value; } else { asset_ = new AnyAssetReference(assetNode); } } else { asset_ = new AnyAssetReference(assetNode); } } }
public VolatilityRepresentation(XmlNode xmlNode) : base(xmlNode) { XmlNodeList assetNodeList = xmlNode.SelectNodes("asset"); if (assetNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in assetNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { assetIDRef = item.Attributes["id"].Name; AnyAssetReference ob = AnyAssetReference(); IDManager.SetID(assetIDRef, ob); } else if (item.Attributes.ToString() == "href") { assetIDRef = item.Attributes["href"].Name; } else { asset = new AnyAssetReference(item); } } } }
public VolatilityRepresentation(XmlNode xmlNode) : base(xmlNode) { XmlNodeList assetNodeList = xmlNode.SelectNodes("asset"); if (assetNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in assetNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { assetIDRef = item.Attributes["id"].Name; AnyAssetReference ob = AnyAssetReference(); IDManager.SetID(assetIDRef, ob); } else if (item.Attributes.ToString() == "href") { assetIDRef = item.Attributes["href"].Name; } else { asset = new AnyAssetReference(item); } } } }
public Valuation(XmlNode xmlNode) { XmlNodeList objectReferenceNodeList = xmlNode.SelectNodes("objectReference"); if (objectReferenceNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in objectReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { objectReferenceIDRef = item.Attributes["id"].Name; AnyAssetReference ob = AnyAssetReference(); IDManager.SetID(objectReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { objectReferenceIDRef = item.Attributes["href"].Name; } else { objectReference = new AnyAssetReference(item); } } } XmlNodeList valuationScenarioReferenceNodeList = xmlNode.SelectNodes("valuationScenarioReference"); if (valuationScenarioReferenceNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in valuationScenarioReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { valuationScenarioReferenceIDRef = item.Attributes["id"].Name; ValuationScenarioReference ob = ValuationScenarioReference(); IDManager.SetID(valuationScenarioReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { valuationScenarioReferenceIDRef = item.Attributes["href"].Name; } else { valuationScenarioReference = new ValuationScenarioReference(item); } } } }
public PricingMethod(XmlNode xmlNode) { XmlNode assetReferenceNode = xmlNode.SelectSingleNode("assetReference"); if (assetReferenceNode != null) { if (assetReferenceNode.Attributes["href"] != null || assetReferenceNode.Attributes["id"] != null) { if (assetReferenceNode.Attributes["id"] != null) { assetReferenceIDRef_ = assetReferenceNode.Attributes["id"].Value; AnyAssetReference ob = new AnyAssetReference(assetReferenceNode); IDManager.SetID(assetReferenceIDRef_, ob); } else if (assetReferenceNode.Attributes["href"] != null) { assetReferenceIDRef_ = assetReferenceNode.Attributes["href"].Value; } else { assetReference_ = new AnyAssetReference(assetReferenceNode); } } else { assetReference_ = new AnyAssetReference(assetReferenceNode); } } XmlNode pricingInputReferenceNode = xmlNode.SelectSingleNode("pricingInputReference"); if (pricingInputReferenceNode != null) { if (pricingInputReferenceNode.Attributes["href"] != null || pricingInputReferenceNode.Attributes["id"] != null) { if (pricingInputReferenceNode.Attributes["id"] != null) { pricingInputReferenceIDRef_ = pricingInputReferenceNode.Attributes["id"].Value; PricingStructureReference ob = new PricingStructureReference(pricingInputReferenceNode); IDManager.SetID(pricingInputReferenceIDRef_, ob); } else if (pricingInputReferenceNode.Attributes["href"] != null) { pricingInputReferenceIDRef_ = pricingInputReferenceNode.Attributes["href"].Value; } else { pricingInputReference_ = new PricingStructureReference(pricingInputReferenceNode); } } else { pricingInputReference_ = new PricingStructureReference(pricingInputReferenceNode); } } }
public PricingMethod(XmlNode xmlNode) { XmlNodeList assetReferenceNodeList = xmlNode.SelectNodes("assetReference"); if (assetReferenceNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in assetReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { assetReferenceIDRef = item.Attributes["id"].Name; AnyAssetReference ob = AnyAssetReference(); IDManager.SetID(assetReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { assetReferenceIDRef = item.Attributes["href"].Name; } else { assetReference = new AnyAssetReference(item); } } } XmlNodeList pricingInputReferenceNodeList = xmlNode.SelectNodes("pricingInputReference"); if (pricingInputReferenceNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in pricingInputReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { pricingInputReferenceIDRef = item.Attributes["id"].Name; PricingStructureReference ob = PricingStructureReference(); IDManager.SetID(pricingInputReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { pricingInputReferenceIDRef = item.Attributes["href"].Name; } else { pricingInputReference = new PricingStructureReference(item); } } } }
public Valuation(XmlNode xmlNode) { XmlNodeList objectReferenceNodeList = xmlNode.SelectNodes("objectReference"); if (objectReferenceNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in objectReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { objectReferenceIDRef = item.Attributes["id"].Name; AnyAssetReference ob = AnyAssetReference(); IDManager.SetID(objectReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { objectReferenceIDRef = item.Attributes["href"].Name; } else { objectReference = new AnyAssetReference(item); } } } XmlNodeList valuationScenarioReferenceNodeList = xmlNode.SelectNodes("valuationScenarioReference"); if (valuationScenarioReferenceNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in valuationScenarioReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { valuationScenarioReferenceIDRef = item.Attributes["id"].Name; ValuationScenarioReference ob = ValuationScenarioReference(); IDManager.SetID(valuationScenarioReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { valuationScenarioReferenceIDRef = item.Attributes["href"].Name; } else { valuationScenarioReference = new ValuationScenarioReference(item); } } } }
public Valuation(XmlNode xmlNode) { XmlNode objectReferenceNode = xmlNode.SelectSingleNode("objectReference"); if (objectReferenceNode != null) { if (objectReferenceNode.Attributes["href"] != null || objectReferenceNode.Attributes["id"] != null) { if (objectReferenceNode.Attributes["id"] != null) { objectReferenceIDRef_ = objectReferenceNode.Attributes["id"].Value; AnyAssetReference ob = new AnyAssetReference(objectReferenceNode); IDManager.SetID(objectReferenceIDRef_, ob); } else if (objectReferenceNode.Attributes["href"] != null) { objectReferenceIDRef_ = objectReferenceNode.Attributes["href"].Value; } else { objectReference_ = new AnyAssetReference(objectReferenceNode); } } else { objectReference_ = new AnyAssetReference(objectReferenceNode); } } XmlNode valuationScenarioReferenceNode = xmlNode.SelectSingleNode("valuationScenarioReference"); if (valuationScenarioReferenceNode != null) { if (valuationScenarioReferenceNode.Attributes["href"] != null || valuationScenarioReferenceNode.Attributes["id"] != null) { if (valuationScenarioReferenceNode.Attributes["id"] != null) { valuationScenarioReferenceIDRef_ = valuationScenarioReferenceNode.Attributes["id"].Value; ValuationScenarioReference ob = new ValuationScenarioReference(valuationScenarioReferenceNode); IDManager.SetID(valuationScenarioReferenceIDRef_, ob); } else if (valuationScenarioReferenceNode.Attributes["href"] != null) { valuationScenarioReferenceIDRef_ = valuationScenarioReferenceNode.Attributes["href"].Value; } else { valuationScenarioReference_ = new ValuationScenarioReference(valuationScenarioReferenceNode); } } else { valuationScenarioReference_ = new ValuationScenarioReference(valuationScenarioReferenceNode); } } }
public PricingMethod(XmlNode xmlNode) { XmlNodeList assetReferenceNodeList = xmlNode.SelectNodes("assetReference"); if (assetReferenceNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in assetReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { assetReferenceIDRef = item.Attributes["id"].Name; AnyAssetReference ob = AnyAssetReference(); IDManager.SetID(assetReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { assetReferenceIDRef = item.Attributes["href"].Name; } else { assetReference = new AnyAssetReference(item); } } } XmlNodeList pricingInputReferenceNodeList = xmlNode.SelectNodes("pricingInputReference"); if (pricingInputReferenceNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in pricingInputReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { pricingInputReferenceIDRef = item.Attributes["id"].Name; PricingStructureReference ob = PricingStructureReference(); IDManager.SetID(pricingInputReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { pricingInputReferenceIDRef = item.Attributes["href"].Name; } else { pricingInputReference = new PricingStructureReference(item); } } } }
public ScheduledDate(XmlNode xmlNode) { XmlNode unadjustedDateNode = xmlNode.SelectSingleNode("unadjustedDate"); if (unadjustedDateNode != null) { if (unadjustedDateNode.Attributes["href"] != null || unadjustedDateNode.Attributes["id"] != null) { if (unadjustedDateNode.Attributes["id"] != null) { unadjustedDateIDRef_ = unadjustedDateNode.Attributes["id"].Value; XsdTypeDate ob = new XsdTypeDate(unadjustedDateNode); IDManager.SetID(unadjustedDateIDRef_, ob); } else if (unadjustedDateNode.Attributes["href"] != null) { unadjustedDateIDRef_ = unadjustedDateNode.Attributes["href"].Value; } else { unadjustedDate_ = new XsdTypeDate(unadjustedDateNode); } } else { unadjustedDate_ = new XsdTypeDate(unadjustedDateNode); } } 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; XsdTypeDate ob = new XsdTypeDate(adjustedDateNode); IDManager.SetID(adjustedDateIDRef_, ob); } else if (adjustedDateNode.Attributes["href"] != null) { adjustedDateIDRef_ = adjustedDateNode.Attributes["href"].Value; } else { adjustedDate_ = new XsdTypeDate(adjustedDateNode); } } else { adjustedDate_ = new XsdTypeDate(adjustedDateNode); } } XmlNode typeNode = xmlNode.SelectSingleNode("type"); if (typeNode != null) { if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null) { if (typeNode.Attributes["id"] != null) { typeIDRef_ = typeNode.Attributes["id"].Value; ScheduledDateType ob = new ScheduledDateType(typeNode); IDManager.SetID(typeIDRef_, ob); } else if (typeNode.Attributes["href"] != null) { typeIDRef_ = typeNode.Attributes["href"].Value; } else { type_ = new ScheduledDateType(typeNode); } } else { type_ = new ScheduledDateType(typeNode); } } XmlNode assetReferenceNode = xmlNode.SelectSingleNode("assetReference"); if (assetReferenceNode != null) { if (assetReferenceNode.Attributes["href"] != null || assetReferenceNode.Attributes["id"] != null) { if (assetReferenceNode.Attributes["id"] != null) { assetReferenceIDRef_ = assetReferenceNode.Attributes["id"].Value; AnyAssetReference ob = new AnyAssetReference(assetReferenceNode); IDManager.SetID(assetReferenceIDRef_, ob); } else if (assetReferenceNode.Attributes["href"] != null) { assetReferenceIDRef_ = assetReferenceNode.Attributes["href"].Value; } else { assetReference_ = new AnyAssetReference(assetReferenceNode); } } else { assetReference_ = new AnyAssetReference(assetReferenceNode); } } XmlNode associatedValueNode = xmlNode.SelectSingleNode("associatedValue"); if (associatedValueNode != null) { if (associatedValueNode.Attributes["href"] != null || associatedValueNode.Attributes["id"] != null) { if (associatedValueNode.Attributes["id"] != null) { associatedValueIDRef_ = associatedValueNode.Attributes["id"].Value; AssetValuation ob = new AssetValuation(associatedValueNode); IDManager.SetID(associatedValueIDRef_, ob); } else if (associatedValueNode.Attributes["href"] != null) { associatedValueIDRef_ = associatedValueNode.Attributes["href"].Value; } else { associatedValue_ = new AssetValuation(associatedValueNode); } } else { associatedValue_ = new AssetValuation(associatedValueNode); } } XmlNode associatedValueReferenceNode = xmlNode.SelectSingleNode("associatedValueReference"); if (associatedValueReferenceNode != null) { if (associatedValueReferenceNode.Attributes["href"] != null || associatedValueReferenceNode.Attributes["id"] != null) { if (associatedValueReferenceNode.Attributes["id"] != null) { associatedValueReferenceIDRef_ = associatedValueReferenceNode.Attributes["id"].Value; ValuationReference ob = new ValuationReference(associatedValueReferenceNode); IDManager.SetID(associatedValueReferenceIDRef_, ob); } else if (associatedValueReferenceNode.Attributes["href"] != null) { associatedValueReferenceIDRef_ = associatedValueReferenceNode.Attributes["href"].Value; } else { associatedValueReference_ = new ValuationReference(associatedValueReferenceNode); } } else { associatedValueReference_ = new ValuationReference(associatedValueReferenceNode); } } }
public ScheduledDate(XmlNode xmlNode) { XmlNodeList unadjustedDateNodeList = xmlNode.SelectNodes("unadjustedDate"); if (unadjustedDateNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in unadjustedDateNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { unadjustedDateIDRef = item.Attributes["id"].Name; XsdTypeDate ob = XsdTypeDate(); IDManager.SetID(unadjustedDateIDRef, ob); } else if (item.Attributes.ToString() == "href") { unadjustedDateIDRef = item.Attributes["href"].Name; } else { unadjustedDate = new XsdTypeDate(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; XsdTypeDate ob = XsdTypeDate(); IDManager.SetID(adjustedDateIDRef, ob); } else if (item.Attributes.ToString() == "href") { adjustedDateIDRef = item.Attributes["href"].Name; } else { adjustedDate = new XsdTypeDate(item); } } } XmlNodeList typeNodeList = xmlNode.SelectNodes("type"); if (typeNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in typeNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { typeIDRef = item.Attributes["id"].Name; ScheduledDateType ob = ScheduledDateType(); IDManager.SetID(typeIDRef, ob); } else if (item.Attributes.ToString() == "href") { typeIDRef = item.Attributes["href"].Name; } else { type = new ScheduledDateType(item); } } } XmlNodeList assetReferenceNodeList = xmlNode.SelectNodes("assetReference"); if (assetReferenceNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in assetReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { assetReferenceIDRef = item.Attributes["id"].Name; AnyAssetReference ob = AnyAssetReference(); IDManager.SetID(assetReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { assetReferenceIDRef = item.Attributes["href"].Name; } else { assetReference = new AnyAssetReference(item); } } } XmlNodeList associatedValueNodeList = xmlNode.SelectNodes("associatedValue"); if (associatedValueNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in associatedValueNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { associatedValueIDRef = item.Attributes["id"].Name; AssetValuation ob = AssetValuation(); IDManager.SetID(associatedValueIDRef, ob); } else if (item.Attributes.ToString() == "href") { associatedValueIDRef = item.Attributes["href"].Name; } else { associatedValue = new AssetValuation(item); } } } XmlNodeList associatedValueReferenceNodeList = xmlNode.SelectNodes("associatedValueReference"); if (associatedValueReferenceNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in associatedValueReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { associatedValueReferenceIDRef = item.Attributes["id"].Name; ValuationReference ob = ValuationReference(); IDManager.SetID(associatedValueReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { associatedValueReferenceIDRef = item.Attributes["href"].Name; } else { associatedValueReference = new ValuationReference(item); } } } }
public ScheduledDate(XmlNode xmlNode) { XmlNodeList unadjustedDateNodeList = xmlNode.SelectNodes("unadjustedDate"); if (unadjustedDateNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in unadjustedDateNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { unadjustedDateIDRef = item.Attributes["id"].Name; XsdTypeDate ob = XsdTypeDate(); IDManager.SetID(unadjustedDateIDRef, ob); } else if (item.Attributes.ToString() == "href") { unadjustedDateIDRef = item.Attributes["href"].Name; } else { unadjustedDate = new XsdTypeDate(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; XsdTypeDate ob = XsdTypeDate(); IDManager.SetID(adjustedDateIDRef, ob); } else if (item.Attributes.ToString() == "href") { adjustedDateIDRef = item.Attributes["href"].Name; } else { adjustedDate = new XsdTypeDate(item); } } } XmlNodeList typeNodeList = xmlNode.SelectNodes("type"); if (typeNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in typeNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { typeIDRef = item.Attributes["id"].Name; ScheduledDateType ob = ScheduledDateType(); IDManager.SetID(typeIDRef, ob); } else if (item.Attributes.ToString() == "href") { typeIDRef = item.Attributes["href"].Name; } else { type = new ScheduledDateType(item); } } } XmlNodeList assetReferenceNodeList = xmlNode.SelectNodes("assetReference"); if (assetReferenceNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in assetReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { assetReferenceIDRef = item.Attributes["id"].Name; AnyAssetReference ob = AnyAssetReference(); IDManager.SetID(assetReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { assetReferenceIDRef = item.Attributes["href"].Name; } else { assetReference = new AnyAssetReference(item); } } } XmlNodeList associatedValueNodeList = xmlNode.SelectNodes("associatedValue"); if (associatedValueNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in associatedValueNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { associatedValueIDRef = item.Attributes["id"].Name; AssetValuation ob = AssetValuation(); IDManager.SetID(associatedValueIDRef, ob); } else if (item.Attributes.ToString() == "href") { associatedValueIDRef = item.Attributes["href"].Name; } else { associatedValue = new AssetValuation(item); } } } XmlNodeList associatedValueReferenceNodeList = xmlNode.SelectNodes("associatedValueReference"); if (associatedValueReferenceNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in associatedValueReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { associatedValueReferenceIDRef = item.Attributes["id"].Name; ValuationReference ob = ValuationReference(); IDManager.SetID(associatedValueReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { associatedValueReferenceIDRef = item.Attributes["href"].Name; } else { associatedValueReference = new ValuationReference(item); } } } }