示例#1
0
 @Override
 protected void validate(Bean bean) {
   JodaBeanUtils.notNull(((SwapNode) bean)._startTenor, "startTenor");
   JodaBeanUtils.notNull(((SwapNode) bean)._maturityTenor, "maturityTenor");
   JodaBeanUtils.notNull(((SwapNode) bean)._payLegConvention, "payLegConvention");
   JodaBeanUtils.notNull(((SwapNode) bean)._receiveLegConvention, "receiveLegConvention");
   super.validate(bean);
 }
示例#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);
 }