Package com.opengamma.financial.security.bond

Examples of com.opengamma.financial.security.bond.InflationBondSecurity


        return bondSecurity;
      }
     
      @Override
      public BondSecurity visitInflationBondSecurity(InflationBondSecurity bond) {
        BondSecurity bondSecurity = new InflationBondSecurity(bean.getIssuerName(), bean.getIssuerType().getName(), bean.getIssuerDomicile(),
          bean.getMarket().getName(), currencyBeanToCurrency(bean.getCurrency()),
          yieldConventionBeanToYieldConvention(bean.getYieldConvention()), expiryBeanToExpiry(bean.getLastTradeDate()),
          bean.getCouponType().getName(), bean.getCouponRate(), frequencyBeanToFrequency(bean.getCouponFrequency()),
          dayCountBeanToDayCount(bean.getDayCountConvention()), zonedDateTimeBeanToDateTimeWithZone(bean.getInterestAccrualDate()),
          zonedDateTimeBeanToDateTimeWithZone(bean.getSettlementDate()),
          zonedDateTimeBeanToDateTimeWithZone(bean.getFirstCouponDate()),
          bean.getIssuancePrice(), bean.getTotalAmountIssued(), bean.getMinimumAmount(), bean.getMinimumIncrement(),
          bean.getParAmount(), bean.getRedemptionValue());
        bondSecurity.setBusinessDayConvention(businessDayConventionBeanToBusinessDayConvention(bean.getBusinessDayConvention()));
        bondSecurity.setAnnouncementDate(zonedDateTimeBeanToDateTimeWithZone(bean.getAnnouncementDate()));
        bondSecurity.setGuaranteeType(bean.getGuaranteeType() != null ? bean.getGuaranteeType().getName() : null);
        return bondSecurity;
      }

    });
  }
View Full Code Here


      String marketSector = validateAndGetStringField(fieldData, FIELD_MARKET_SECTOR_DES);
      String des = validateAndGetStringField(fieldData, FIELD_SECURITY_DES);
     
      ManageableSecurity bondSecurity;
      if ((inflationIndicator != null) && (inflationIndicator.trim().toUpperCase().startsWith("Y"))) {
        bondSecurity = new InflationBondSecurity(issuerName, issuerType, issuerDomicile, market, currency,
            yieldConvention, maturity, couponType, couponRate,
            couponFrequency, dayCount, interestAccrualDate, settlementDate, firstCouponDate, issuancePrice,
            totalAmountIssued, minimumAmount, minimumIncrement, parAmount,
            redemptionValue);
        ((BondSecurity) bondSecurity).setAnnouncementDate(announcementDate);
View Full Code Here

TOP

Related Classes of com.opengamma.financial.security.bond.InflationBondSecurity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.