コード例 #1
0
 /**
  * Creates an instance.
  *
  * @param name the convention name, not null
  * @param externalIdBundle the external identifiers for this convention, not null
  * @param overnightIndexConvention the underlying overnight index convention, not null
  * @param paymentTenor the reset tenor, not null
  * @param stubType the stub type, not null
  * @param isExchangeNotional true if notional is to be exchanged
  * @param paymentLag the payment lag in days
  */
 public ONCompoundedLegRollDateConvention(
     final String name,
     final ExternalIdBundle externalIdBundle,
     final ExternalId overnightIndexConvention,
     final Tenor paymentTenor,
     final StubType stubType,
     final boolean isExchangeNotional,
     final int paymentLag) {
   super(name, externalIdBundle);
   setOvernightIndexConvention(overnightIndexConvention);
   setPaymentTenor(paymentTenor);
   setStubType(stubType);
   setIsExchangeNotional(isExchangeNotional);
   setPaymentLag(paymentLag);
 }
コード例 #2
0
 @Override
 protected void propertySet(Bean bean, String propertyName, Object newValue, boolean quiet) {
   switch (propertyName.hashCode()) {
     case -1218695809: // overnightIndexConvention
       ((ONCompoundedLegRollDateConvention) bean)
           .setOvernightIndexConvention((ExternalId) newValue);
       return;
     case -507548582: // paymentTenor
       ((ONCompoundedLegRollDateConvention) bean).setPaymentTenor((Tenor) newValue);
       return;
     case 1873675528: // stubType
       ((ONCompoundedLegRollDateConvention) bean).setStubType((StubType) newValue);
       return;
     case 348962765: // isExchangeNotional
       ((ONCompoundedLegRollDateConvention) bean).setIsExchangeNotional((Boolean) newValue);
       return;
     case 1612870060: // paymentLag
       ((ONCompoundedLegRollDateConvention) bean).setPaymentLag((Integer) newValue);
       return;
   }
   super.propertySet(bean, propertyName, newValue, quiet);
 }