public static final class FixedCouponBond.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FixedCouponBond>
FixedCouponBond.| Modifier and Type | Method and Description |
|---|---|
FixedCouponBond.Builder |
accrualSchedule(PeriodicSchedule accrualSchedule)
Sets the accrual schedule.
|
FixedCouponBond |
build() |
FixedCouponBond.Builder |
currency(Currency currency)
Sets the currency that the bond is traded in.
|
FixedCouponBond.Builder |
dayCount(DayCount dayCount)
Sets the day count convention applicable.
|
FixedCouponBond.Builder |
exCouponPeriod(DaysAdjustment exCouponPeriod)
Sets ex-coupon period.
|
FixedCouponBond.Builder |
fixedRate(double fixedRate)
Sets the fixed coupon rate.
|
Object |
get(String propertyName) |
FixedCouponBond.Builder |
legalEntityId(LegalEntityId legalEntityId)
Sets the legal entity identifier.
|
FixedCouponBond.Builder |
notional(double notional)
Sets the notional amount, must be positive.
|
FixedCouponBond.Builder |
securityId(SecurityId securityId)
Sets the security identifier.
|
FixedCouponBond.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
FixedCouponBond.Builder |
set(String propertyName,
Object newValue) |
FixedCouponBond.Builder |
settlementDateOffset(DaysAdjustment settlementDateOffset)
Sets the number of days between valuation date and settlement date.
|
String |
toString() |
FixedCouponBond.Builder |
yieldConvention(FixedCouponBondYieldConvention yieldConvention)
Sets yield convention.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<FixedCouponBond>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FixedCouponBond>public FixedCouponBond.Builder set(String propertyName, Object newValue)
public FixedCouponBond.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<FixedCouponBond>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FixedCouponBond>public FixedCouponBond build()
public FixedCouponBond.Builder securityId(SecurityId securityId)
This identifier uniquely identifies the security within the system.
securityId - the new value, not nullpublic FixedCouponBond.Builder currency(Currency currency)
currency - the new value, not nullpublic FixedCouponBond.Builder notional(double notional)
The notional expressed here must be positive.
The currency of the notional is specified by currency.
notional - the new valuepublic FixedCouponBond.Builder accrualSchedule(PeriodicSchedule accrualSchedule)
This is used to define the accrual periods. These are used directly or indirectly to determine other dates in the product.
accrualSchedule - the new value, not nullpublic FixedCouponBond.Builder fixedRate(double fixedRate)
The periodic payments are based on this fixed coupon rate.
fixedRate - the new valuepublic FixedCouponBond.Builder dayCount(DayCount dayCount)
The conversion from dates to a numerical value is made based on this day count. For the fixed bond, the day count convention is used to compute accrued interest.
Note that the year fraction of a coupon payment is computed based on the unadjusted dates in the schedule.
dayCount - the new value, not nullpublic FixedCouponBond.Builder yieldConvention(FixedCouponBondYieldConvention yieldConvention)
The convention defines how to convert from yield to price and inversely.
yieldConvention - the new value, not nullpublic FixedCouponBond.Builder legalEntityId(LegalEntityId legalEntityId)
This identifier is used for the legal entity that issues the bond.
legalEntityId - the new value, not nullpublic FixedCouponBond.Builder settlementDateOffset(DaysAdjustment settlementDateOffset)
This is used to compute clean price. The clean price is the relative price to be paid at the standard settlement date in exchange for the bond.
It is usually one business day for US treasuries and UK Gilts and three days for Euroland government bonds.
settlementDateOffset - the new value, not nullpublic FixedCouponBond.Builder exCouponPeriod(DaysAdjustment exCouponPeriod)
Some bonds trade ex-coupons before the coupon payment. The coupon is paid not to the owner of the bond on the payment date but to the owner of the bond on the detachment date. The difference between the two is the ex-coupon period (measured in days).
Because the detachment date is not after the coupon date, the number of days stored in this field should be zero or negative.
exCouponPeriod - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FixedCouponBond>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.