示例#1
0
 /**
  * @param startTenor The start tenor, not null
  * @param maturityTenor The maturity tenor, not null
  * @param payLegConvention The pay leg convention, not null
  * @param receiveLegConvention The receive leg convention, not null
  * @param curveNodeIdMapperName The curve node id mapper name, not null
  */
 public SwapNode(
     final Tenor startTenor,
     final Tenor maturityTenor,
     final ExternalId payLegConvention,
     final ExternalId receiveLegConvention,
     final String curveNodeIdMapperName) {
   super(curveNodeIdMapperName);
   setStartTenor(startTenor);
   setMaturityTenor(maturityTenor);
   setPayLegConvention(payLegConvention);
   setReceiveLegConvention(receiveLegConvention);
   setUseFixings(true);
 }
示例#2
0
 @Override
 protected void propertySet(Bean bean, String propertyName, Object newValue, boolean quiet) {
   switch (propertyName.hashCode()) {
     case -1583746178: // startTenor
       ((SwapNode) bean).setStartTenor((Tenor) newValue);
       return;
     case 45907375: // maturityTenor
       ((SwapNode) bean).setMaturityTenor((Tenor) newValue);
       return;
     case 774631511: // payLegConvention
       ((SwapNode) bean).setPayLegConvention((ExternalId) newValue);
       return;
     case -560732676: // receiveLegConvention
       ((SwapNode) bean).setReceiveLegConvention((ExternalId) newValue);
       return;
     case 1829944031: // useFixings
       ((SwapNode) bean).setUseFixings((Boolean) newValue);
       return;
   }
   super.propertySet(bean, propertyName, newValue, quiet);
 }