本文整理汇总了C#中FpmlSerializedCSharp.XsdTypeToken类的典型用法代码示例。如果您正苦于以下问题:C# XsdTypeToken类的具体用法?C# XsdTypeToken怎么用?C# XsdTypeToken使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XsdTypeToken类属于FpmlSerializedCSharp命名空间,在下文中一共展示了XsdTypeToken类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ClearQueue
public ClearQueue(XmlNode xmlNode)
: base(xmlNode)
{
XmlNode actionTypeNode = xmlNode.SelectSingleNode("actionType");
if (actionTypeNode != null)
{
if (actionTypeNode.Attributes["href"] != null || actionTypeNode.Attributes["id"] != null)
{
if (actionTypeNode.Attributes["id"] != null)
{
actionTypeIDRef_ = actionTypeNode.Attributes["id"].Value;
XsdTypeToken ob = new XsdTypeToken(actionTypeNode);
IDManager.SetID(actionTypeIDRef_, ob);
}
else if (actionTypeNode.Attributes["href"] != null)
{
actionTypeIDRef_ = actionTypeNode.Attributes["href"].Value;
}
else
{
actionType_ = new XsdTypeToken(actionTypeNode);
}
}
else
{
actionType_ = new XsdTypeToken(actionTypeNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:32,代码来源:ClearQueue.cs
示例2: Excel_hifive_subtype
public Excel_hifive_subtype(XmlNode xmlNode)
: base(xmlNode)
{
XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");
if (excel_typeNode != null)
{
if (excel_typeNode.Attributes["href"] != null || excel_typeNode.Attributes["id"] != null)
{
if (excel_typeNode.Attributes["id"] != null)
{
excel_typeIDRef_ = excel_typeNode.Attributes["id"].Value;
XsdTypeToken ob = new XsdTypeToken(excel_typeNode);
IDManager.SetID(excel_typeIDRef_, ob);
}
else if (excel_typeNode.Attributes["href"] != null)
{
excel_typeIDRef_ = excel_typeNode.Attributes["href"].Value;
}
else
{
excel_type_ = new XsdTypeToken(excel_typeNode);
}
}
else
{
excel_type_ = new XsdTypeToken(excel_typeNode);
}
}
XmlNode excel_hifive_stepDown_kiNode = xmlNode.SelectSingleNode("excel_hifive_stepDown_ki");
if (excel_hifive_stepDown_kiNode != null)
{
if (excel_hifive_stepDown_kiNode.Attributes["href"] != null || excel_hifive_stepDown_kiNode.Attributes["id"] != null)
{
if (excel_hifive_stepDown_kiNode.Attributes["id"] != null)
{
excel_hifive_stepDown_kiIDRef_ = excel_hifive_stepDown_kiNode.Attributes["id"].Value;
Excel_hifive_stepDown_ki ob = new Excel_hifive_stepDown_ki(excel_hifive_stepDown_kiNode);
IDManager.SetID(excel_hifive_stepDown_kiIDRef_, ob);
}
else if (excel_hifive_stepDown_kiNode.Attributes["href"] != null)
{
excel_hifive_stepDown_kiIDRef_ = excel_hifive_stepDown_kiNode.Attributes["href"].Value;
}
else
{
excel_hifive_stepDown_ki_ = new Excel_hifive_stepDown_ki(excel_hifive_stepDown_kiNode);
}
}
else
{
excel_hifive_stepDown_ki_ = new Excel_hifive_stepDown_ki(excel_hifive_stepDown_kiNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:60,代码来源:Excel_hifive_subtype.cs
示例3: General_scheduleDetail_fixedAmount
public General_scheduleDetail_fixedAmount(XmlNode xmlNode)
: base(xmlNode)
{
XmlNode fixedAmountNode = xmlNode.SelectSingleNode("fixedAmount");
if (fixedAmountNode != null)
{
if (fixedAmountNode.Attributes["href"] != null || fixedAmountNode.Attributes["id"] != null)
{
if (fixedAmountNode.Attributes["id"] != null)
{
fixedAmountIDRef_ = fixedAmountNode.Attributes["id"].Value;
XsdTypeToken ob = new XsdTypeToken(fixedAmountNode);
IDManager.SetID(fixedAmountIDRef_, ob);
}
else if (fixedAmountNode.Attributes["href"] != null)
{
fixedAmountIDRef_ = fixedAmountNode.Attributes["href"].Value;
}
else
{
fixedAmount_ = new XsdTypeToken(fixedAmountNode);
}
}
else
{
fixedAmount_ = new XsdTypeToken(fixedAmountNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:32,代码来源:General_scheduleDetail_fixedAmount.cs
示例4: PreDefinedVariableInfo
public PreDefinedVariableInfo(XmlNode xmlNode)
: base(xmlNode)
{
XmlNode refInstanceNameNode = xmlNode.SelectSingleNode("refInstanceName");
if (refInstanceNameNode != null)
{
if (refInstanceNameNode.Attributes["href"] != null || refInstanceNameNode.Attributes["id"] != null)
{
if (refInstanceNameNode.Attributes["id"] != null)
{
refInstanceNameIDRef_ = refInstanceNameNode.Attributes["id"].Value;
XsdTypeToken ob = new XsdTypeToken(refInstanceNameNode);
IDManager.SetID(refInstanceNameIDRef_, ob);
}
else if (refInstanceNameNode.Attributes["href"] != null)
{
refInstanceNameIDRef_ = refInstanceNameNode.Attributes["href"].Value;
}
else
{
refInstanceName_ = new XsdTypeToken(refInstanceNameNode);
}
}
else
{
refInstanceName_ = new XsdTypeToken(refInstanceNameNode);
}
}
XmlNode fixingInformationNode = xmlNode.SelectSingleNode("fixingInformation");
if (fixingInformationNode != null)
{
if (fixingInformationNode.Attributes["href"] != null || fixingInformationNode.Attributes["id"] != null)
{
if (fixingInformationNode.Attributes["id"] != null)
{
fixingInformationIDRef_ = fixingInformationNode.Attributes["id"].Value;
FixingInformation ob = new FixingInformation(fixingInformationNode);
IDManager.SetID(fixingInformationIDRef_, ob);
}
else if (fixingInformationNode.Attributes["href"] != null)
{
fixingInformationIDRef_ = fixingInformationNode.Attributes["href"].Value;
}
else
{
fixingInformation_ = new FixingInformation(fixingInformationNode);
}
}
else
{
fixingInformation_ = new FixingInformation(fixingInformationNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:60,代码来源:PreDefinedVariableInfo.cs
示例5: ReferenceEntity
public ReferenceEntity(XmlNode xmlNode)
: base(xmlNode)
{
XmlNode entityNameNode = xmlNode.SelectSingleNode("entityName");
if (entityNameNode != null)
{
if (entityNameNode.Attributes["href"] != null || entityNameNode.Attributes["id"] != null)
{
if (entityNameNode.Attributes["id"] != null)
{
entityNameIDRef_ = entityNameNode.Attributes["id"].Value;
XsdTypeToken ob = new XsdTypeToken(entityNameNode);
IDManager.SetID(entityNameIDRef_, ob);
}
else if (entityNameNode.Attributes["href"] != null)
{
entityNameIDRef_ = entityNameNode.Attributes["href"].Value;
}
else
{
entityName_ = new XsdTypeToken(entityNameNode);
}
}
else
{
entityName_ = new XsdTypeToken(entityNameNode);
}
}
XmlNode entityIdNode = xmlNode.SelectSingleNode("entityId");
if (entityIdNode != null)
{
if (entityIdNode.Attributes["href"] != null || entityIdNode.Attributes["id"] != null)
{
if (entityIdNode.Attributes["id"] != null)
{
entityIdIDRef_ = entityIdNode.Attributes["id"].Value;
XsdTypeToken ob = new XsdTypeToken(entityIdNode);
IDManager.SetID(entityIdIDRef_, ob);
}
else if (entityIdNode.Attributes["href"] != null)
{
entityIdIDRef_ = entityIdNode.Attributes["href"].Value;
}
else
{
entityId_ = new XsdTypeToken(entityIdNode);
}
}
else
{
entityId_ = new XsdTypeToken(entityIdNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:60,代码来源:ReferenceEntity.cs
示例6: PricingParameter
public PricingParameter(XmlNode xmlNode)
: base(xmlNode)
{
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;
XsdTypeToken ob = new XsdTypeToken(typeNode);
IDManager.SetID(typeIDRef_, ob);
}
else if (typeNode.Attributes["href"] != null)
{
typeIDRef_ = typeNode.Attributes["href"].Value;
}
else
{
type_ = new XsdTypeToken(typeNode);
}
}
else
{
type_ = new XsdTypeToken(typeNode);
}
}
XmlNode methodNode = xmlNode.SelectSingleNode("method");
if (methodNode != null)
{
if (methodNode.Attributes["href"] != null || methodNode.Attributes["id"] != null)
{
if (methodNode.Attributes["id"] != null)
{
methodIDRef_ = methodNode.Attributes["id"].Value;
Method ob = new Method(methodNode);
IDManager.SetID(methodIDRef_, ob);
}
else if (methodNode.Attributes["href"] != null)
{
methodIDRef_ = methodNode.Attributes["href"].Value;
}
else
{
method_ = new Method(methodNode);
}
}
else
{
method_ = new Method(methodNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:60,代码来源:PricingParameter.cs
示例7: Variable
public Variable(XmlNode xmlNode)
{
XmlNode symbolNameNode = xmlNode.SelectSingleNode("symbolName");
if (symbolNameNode != null)
{
if (symbolNameNode.Attributes["href"] != null || symbolNameNode.Attributes["id"] != null)
{
if (symbolNameNode.Attributes["id"] != null)
{
symbolNameIDRef_ = symbolNameNode.Attributes["id"].Value;
XsdTypeToken ob = new XsdTypeToken(symbolNameNode);
IDManager.SetID(symbolNameIDRef_, ob);
}
else if (symbolNameNode.Attributes["href"] != null)
{
symbolNameIDRef_ = symbolNameNode.Attributes["href"].Value;
}
else
{
symbolName_ = new XsdTypeToken(symbolNameNode);
}
}
else
{
symbolName_ = new XsdTypeToken(symbolNameNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:31,代码来源:Variable.cs
示例8: InterestRateIndex
public InterestRateIndex(XmlNode xmlNode)
: base(xmlNode)
{
XmlNode tenorNode = xmlNode.SelectSingleNode("tenor");
if (tenorNode != null)
{
if (tenorNode.Attributes["href"] != null || tenorNode.Attributes["id"] != null)
{
if (tenorNode.Attributes["id"] != null)
{
tenorIDRef_ = tenorNode.Attributes["id"].Value;
XsdTypeToken ob = new XsdTypeToken(tenorNode);
IDManager.SetID(tenorIDRef_, ob);
}
else if (tenorNode.Attributes["href"] != null)
{
tenorIDRef_ = tenorNode.Attributes["href"].Value;
}
else
{
tenor_ = new XsdTypeToken(tenorNode);
}
}
else
{
tenor_ = new XsdTypeToken(tenorNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:32,代码来源:InterestRateIndex.cs
示例9: General_TerminationEventDetail_target
public General_TerminationEventDetail_target(XmlNode xmlNode)
: base(xmlNode)
{
XmlNode targetNode = xmlNode.SelectSingleNode("target");
if (targetNode != null)
{
if (targetNode.Attributes["href"] != null || targetNode.Attributes["id"] != null)
{
if (targetNode.Attributes["id"] != null)
{
targetIDRef_ = targetNode.Attributes["id"].Value;
XsdTypeToken ob = new XsdTypeToken(targetNode);
IDManager.SetID(targetIDRef_, ob);
}
else if (targetNode.Attributes["href"] != null)
{
targetIDRef_ = targetNode.Attributes["href"].Value;
}
else
{
target_ = new XsdTypeToken(targetNode);
}
}
else
{
target_ = new XsdTypeToken(targetNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:32,代码来源:General_TerminationEventDetail_target.cs
示例10: ChoiceReferenceCal
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);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:60,代码来源:ChoiceReferenceCal.cs
示例11: PayoffInfoAnalytic
public PayoffInfoAnalytic(XmlNode xmlNode)
: base(xmlNode)
{
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;
XsdTypeToken ob = new XsdTypeToken(typeNode);
IDManager.SetID(typeIDRef_, ob);
}
else if (typeNode.Attributes["href"] != null)
{
typeIDRef_ = typeNode.Attributes["href"].Value;
}
else
{
type_ = new XsdTypeToken(typeNode);
}
}
else
{
type_ = new XsdTypeToken(typeNode);
}
}
XmlNode standardPayoff_ANode = xmlNode.SelectSingleNode("standardPayoff_A");
if (standardPayoff_ANode != null)
{
if (standardPayoff_ANode.Attributes["href"] != null || standardPayoff_ANode.Attributes["id"] != null)
{
if (standardPayoff_ANode.Attributes["id"] != null)
{
standardPayoff_AIDRef_ = standardPayoff_ANode.Attributes["id"].Value;
StandardPayoff_A ob = new StandardPayoff_A(standardPayoff_ANode);
IDManager.SetID(standardPayoff_AIDRef_, ob);
}
else if (standardPayoff_ANode.Attributes["href"] != null)
{
standardPayoff_AIDRef_ = standardPayoff_ANode.Attributes["href"].Value;
}
else
{
standardPayoff_A_ = new StandardPayoff_A(standardPayoff_ANode);
}
}
else
{
standardPayoff_A_ = new StandardPayoff_A(standardPayoff_ANode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:60,代码来源:PayoffInfoAnalytic.cs
示例12: CouponPart
public CouponPart(XmlNode xmlNode)
: base(xmlNode)
{
XmlNode payRecieveNode = xmlNode.SelectSingleNode("payRecieve");
if (payRecieveNode != null)
{
if (payRecieveNode.Attributes["href"] != null || payRecieveNode.Attributes["id"] != null)
{
if (payRecieveNode.Attributes["id"] != null)
{
payRecieveIDRef_ = payRecieveNode.Attributes["id"].Value;
XsdTypeToken ob = new XsdTypeToken(payRecieveNode);
IDManager.SetID(payRecieveIDRef_, ob);
}
else if (payRecieveNode.Attributes["href"] != null)
{
payRecieveIDRef_ = payRecieveNode.Attributes["href"].Value;
}
else
{
payRecieve_ = new XsdTypeToken(payRecieveNode);
}
}
else
{
payRecieve_ = new XsdTypeToken(payRecieveNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:32,代码来源:CouponPart.cs
示例13: Excel_dualBarrierEventCal
public Excel_dualBarrierEventCal(XmlNode xmlNode)
: base(xmlNode)
{
XmlNode lowerRngNode = xmlNode.SelectSingleNode("lowerRng");
if (lowerRngNode != null)
{
if (lowerRngNode.Attributes["href"] != null || lowerRngNode.Attributes["id"] != null)
{
if (lowerRngNode.Attributes["id"] != null)
{
lowerRngIDRef_ = lowerRngNode.Attributes["id"].Value;
XsdTypeToken ob = new XsdTypeToken(lowerRngNode);
IDManager.SetID(lowerRngIDRef_, ob);
}
else if (lowerRngNode.Attributes["href"] != null)
{
lowerRngIDRef_ = lowerRngNode.Attributes["href"].Value;
}
else
{
lowerRng_ = new XsdTypeToken(lowerRngNode);
}
}
else
{
lowerRng_ = new XsdTypeToken(lowerRngNode);
}
}
XmlNode upperRngNode = xmlNode.SelectSingleNode("upperRng");
if (upperRngNode != null)
{
if (upperRngNode.Attributes["href"] != null || upperRngNode.Attributes["id"] != null)
{
if (upperRngNode.Attributes["id"] != null)
{
upperRngIDRef_ = upperRngNode.Attributes["id"].Value;
XsdTypeToken ob = new XsdTypeToken(upperRngNode);
IDManager.SetID(upperRngIDRef_, ob);
}
else if (upperRngNode.Attributes["href"] != null)
{
upperRngIDRef_ = upperRngNode.Attributes["href"].Value;
}
else
{
upperRng_ = new XsdTypeToken(upperRngNode);
}
}
else
{
upperRng_ = new XsdTypeToken(upperRngNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:60,代码来源:Excel_dualBarrierEventCal.cs
示例14: CashFlowInfoResult
public CashFlowInfoResult(XmlNode xmlNode)
: base(xmlNode)
{
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;
XsdTypeToken ob = new XsdTypeToken(typeNode);
IDManager.SetID(typeIDRef_, ob);
}
else if (typeNode.Attributes["href"] != null)
{
typeIDRef_ = typeNode.Attributes["href"].Value;
}
else
{
type_ = new XsdTypeToken(typeNode);
}
}
else
{
type_ = new XsdTypeToken(typeNode);
}
}
XmlNode simpleCashFlowResultNode = xmlNode.SelectSingleNode("simpleCashFlowResult");
if (simpleCashFlowResultNode != null)
{
if (simpleCashFlowResultNode.Attributes["href"] != null || simpleCashFlowResultNode.Attributes["id"] != null)
{
if (simpleCashFlowResultNode.Attributes["id"] != null)
{
simpleCashFlowResultIDRef_ = simpleCashFlowResultNode.Attributes["id"].Value;
SimpleCashFlowResult ob = new SimpleCashFlowResult(simpleCashFlowResultNode);
IDManager.SetID(simpleCashFlowResultIDRef_, ob);
}
else if (simpleCashFlowResultNode.Attributes["href"] != null)
{
simpleCashFlowResultIDRef_ = simpleCashFlowResultNode.Attributes["href"].Value;
}
else
{
simpleCashFlowResult_ = new SimpleCashFlowResult(simpleCashFlowResultNode);
}
}
else
{
simpleCashFlowResult_ = new SimpleCashFlowResult(simpleCashFlowResultNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:60,代码来源:CashFlowInfoResult.cs
示例15: Excel_vanillaFloatingBond_subtype
public Excel_vanillaFloatingBond_subtype(XmlNode xmlNode)
: base(xmlNode)
{
XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");
if (excel_typeNode != null)
{
if (excel_typeNode.Attributes["href"] != null || excel_typeNode.Attributes["id"] != null)
{
if (excel_typeNode.Attributes["id"] != null)
{
excel_typeIDRef_ = excel_typeNode.Attributes["id"].Value;
XsdTypeToken ob = new XsdTypeToken(excel_typeNode);
IDManager.SetID(excel_typeIDRef_, ob);
}
else if (excel_typeNode.Attributes["href"] != null)
{
excel_typeIDRef_ = excel_typeNode.Attributes["href"].Value;
}
else
{
excel_type_ = new XsdTypeToken(excel_typeNode);
}
}
else
{
excel_type_ = new XsdTypeToken(excel_typeNode);
}
}
XmlNode excel_vanillaFloatingBond_simpleNode = xmlNode.SelectSingleNode("excel_vanillaFloatingBond_simple");
if (excel_vanillaFloatingBond_simpleNode != null)
{
if (excel_vanillaFloatingBond_simpleNode.Attributes["href"] != null || excel_vanillaFloatingBond_simpleNode.Attributes["id"] != null)
{
if (excel_vanillaFloatingBond_simpleNode.Attributes["id"] != null)
{
excel_vanillaFloatingBond_simpleIDRef_ = excel_vanillaFloatingBond_simpleNode.Attributes["id"].Value;
Excel_vanillaFloatingBond_simple ob = new Excel_vanillaFloatingBond_simple(excel_vanillaFloatingBond_simpleNode);
IDManager.SetID(excel_vanillaFloatingBond_simpleIDRef_, ob);
}
else if (excel_vanillaFloatingBond_simpleNode.Attributes["href"] != null)
{
excel_vanillaFloatingBond_simpleIDRef_ = excel_vanillaFloatingBond_simpleNode.Attributes["href"].Value;
}
else
{
excel_vanillaFloatingBond_simple_ = new Excel_vanillaFloatingBond_simple(excel_vanillaFloatingBond_simpleNode);
}
}
else
{
excel_vanillaFloatingBond_simple_ = new Excel_vanillaFloatingBond_simple(excel_vanillaFloatingBond_simpleNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:60,代码来源:Excel_vanillaFloatingBond_subtype.cs
示例16: CreditPayoffInfo
public CreditPayoffInfo(XmlNode xmlNode)
: base(xmlNode)
{
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;
XsdTypeToken ob = new XsdTypeToken(typeNode);
IDManager.SetID(typeIDRef_, ob);
}
else if (typeNode.Attributes["href"] != null)
{
typeIDRef_ = typeNode.Attributes["href"].Value;
}
else
{
type_ = new XsdTypeToken(typeNode);
}
}
else
{
type_ = new XsdTypeToken(typeNode);
}
}
XmlNode creditDefaultSwapNode = xmlNode.SelectSingleNode("creditDefaultSwap");
if (creditDefaultSwapNode != null)
{
if (creditDefaultSwapNode.Attributes["href"] != null || creditDefaultSwapNode.Attributes["id"] != null)
{
if (creditDefaultSwapNode.Attributes["id"] != null)
{
creditDefaultSwapIDRef_ = creditDefaultSwapNode.Attributes["id"].Value;
CreditDefaultSwap ob = new CreditDefaultSwap(creditDefaultSwapNode);
IDManager.SetID(creditDefaultSwapIDRef_, ob);
}
else if (creditDefaultSwapNode.Attributes["href"] != null)
{
creditDefaultSwapIDRef_ = creditDefaultSwapNode.Attributes["href"].Value;
}
else
{
creditDefaultSwap_ = new CreditDefaultSwap(creditDefaultSwapNode);
}
}
else
{
creditDefaultSwap_ = new CreditDefaultSwap(creditDefaultSwapNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:60,代码来源:CreditPayoffInfo.cs
示例17: RefVariableReferenceCal
public RefVariableReferenceCal(XmlNode xmlNode)
: base(xmlNode)
{
XmlNode refNameNode = xmlNode.SelectSingleNode("refName");
if (refNameNode != null)
{
if (refNameNode.Attributes["href"] != null || refNameNode.Attributes["id"] != null)
{
if (refNameNode.Attributes["id"] != null)
{
refNameIDRef_ = refNameNode.Attributes["id"].Value;
XsdTypeToken ob = new XsdTypeToken(refNameNode);
IDManager.SetID(refNameIDRef_, ob);
}
else if (refNameNode.Attributes["href"] != null)
{
refNameIDRef_ = refNameNode.Attributes["href"].Value;
}
else
{
refName_ = new XsdTypeToken(refNameNode);
}
}
else
{
refName_ = new XsdTypeToken(refNameNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:32,代码来源:RefVariableReferenceCal.cs
示例18: Excel_fixedBond_subtype
public Excel_fixedBond_subtype(XmlNode xmlNode)
: base(xmlNode)
{
XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");
if (excel_typeNode != null)
{
if (excel_typeNode.Attributes["href"] != null || excel_typeNode.Attributes["id"] != null)
{
if (excel_typeNode.Attributes["id"] != null)
{
excel_typeIDRef_ = excel_typeNode.Attributes["id"].Value;
XsdTypeToken ob = new XsdTypeToken(excel_typeNode);
IDManager.SetID(excel_typeIDRef_, ob);
}
else if (excel_typeNode.Attributes["href"] != null)
{
excel_typeIDRef_ = excel_typeNode.Attributes["href"].Value;
}
else
{
excel_type_ = new XsdTypeToken(excel_typeNode);
}
}
else
{
excel_type_ = new XsdTypeToken(excel_typeNode);
}
}
XmlNode excel_fixedBond_constantRateNode = xmlNode.SelectSingleNode("excel_fixedBond_constantRate");
if (excel_fixedBond_constantRateNode != null)
{
if (excel_fixedBond_constantRateNode.Attributes["href"] != null || excel_fixedBond_constantRateNode.Attributes["id"] != null)
{
if (excel_fixedBond_constantRateNode.Attributes["id"] != null)
{
excel_fixedBond_constantRateIDRef_ = excel_fixedBond_constantRateNode.Attributes["id"].Value;
Excel_fixedBond_constantRate ob = new Excel_fixedBond_constantRate(excel_fixedBond_constantRateNode);
IDManager.SetID(excel_fixedBond_constantRateIDRef_, ob);
}
else if (excel_fixedBond_constantRateNode.Attributes["href"] != null)
{
excel_fixedBond_constantRateIDRef_ = excel_fixedBond_constantRateNode.Attributes["href"].Value;
}
else
{
excel_fixedBond_constantRate_ = new Excel_fixedBond_constantRate(excel_fixedBond_constantRateNode);
}
}
else
{
excel_fixedBond_constantRate_ = new Excel_fixedBond_constantRate(excel_fixedBond_constantRateNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:60,代码来源:Excel_fixedBond_subtype.cs
示例19: Excel_referenceSet
public Excel_referenceSet(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 usingTFNode = xmlNode.SelectSingleNode("usingTF");
if (usingTFNode != null)
{
if (usingTFNode.Attributes["href"] != null || usingTFNode.Attributes["id"] != null)
{
if (usingTFNode.Attributes["id"] != null)
{
usingTFIDRef_ = usingTFNode.Attributes["id"].Value;
XsdTypeToken ob = new XsdTypeToken(usingTFNode);
IDManager.SetID(usingTFIDRef_, ob);
}
else if (usingTFNode.Attributes["href"] != null)
{
usingTFIDRef_ = usingTFNode.Attributes["href"].Value;
}
else
{
usingTF_ = new XsdTypeToken(usingTFNode);
}
}
else
{
usingTF_ = new XsdTypeToken(usingTFNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:60,代码来源:Excel_referenceSet.cs
示例20: JointProbabilityTrait
public JointProbabilityTrait(XmlNode xmlNode)
: base(xmlNode)
{
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;
XsdTypeToken ob = new XsdTypeToken(typeNode);
IDManager.SetID(typeIDRef_, ob);
}
else if (typeNode.Attributes["href"] != null)
{
typeIDRef_ = typeNode.Attributes["href"].Value;
}
else
{
type_ = new XsdTypeToken(typeNode);
}
}
else
{
type_ = new XsdTypeToken(typeNode);
}
}
XmlNode nthDefaultTraitNode = xmlNode.SelectSingleNode("nthDefaultTrait");
if (nthDefaultTraitNode != null)
{
if (nthDefaultTraitNode.Attributes["href"] != null || nthDefaultTraitNode.Attributes["id"] != null)
{
if (nthDefaultTraitNode.Attributes["id"] != null)
{
nthDefaultTraitIDRef_ = nthDefaultTraitNode.Attributes["id"].Value;
NthDefaultTrait ob = new NthDefaultTrait(nthDefaultTraitNode);
IDManager.SetID(nthDefaultTraitIDRef_, ob);
}
else if (nthDefaultTraitNode.Attributes["href"] != null)
{
nthDefaultTraitIDRef_ = nthDefaultTraitNode.Attributes["href"].Value;
}
else
{
nthDefaultTrait_ = new NthDefaultTrait(nthDefaultTraitNode);
}
}
else
{
nthDefaultTrait_ = new NthDefaultTrait(nthDefaultTraitNode);
}
}
}
开发者ID:minikie,项目名称:OTCDerivativesCalculatorModule,代码行数:60,代码来源:JointProbabilityTrait.cs
注:本文中的FpmlSerializedCSharp.XsdTypeToken类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论