public static final class ImmutableCdsConvention.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableCdsConvention>
ImmutableCdsConvention.| Modifier and Type | Method and Description |
|---|---|
ImmutableCdsConvention |
build() |
ImmutableCdsConvention.Builder |
businessDayAdjustment(BusinessDayAdjustment businessDayAdjustment)
Sets the business day adjustment to apply to payment schedule dates.
|
ImmutableCdsConvention.Builder |
currency(Currency currency)
Sets the currency of the CDS.
|
ImmutableCdsConvention.Builder |
dayCount(DayCount dayCount)
Sets the day count convention applicable.
|
ImmutableCdsConvention.Builder |
endDateBusinessDayAdjustment(BusinessDayAdjustment endDateBusinessDayAdjustment)
Sets the business day adjustment to apply to the end date, optional with defaulting getter.
|
Object |
get(String propertyName) |
ImmutableCdsConvention.Builder |
name(String name)
Sets the convention name.
|
ImmutableCdsConvention.Builder |
paymentFrequency(Frequency paymentFrequency)
Sets the periodic frequency of payments.
|
ImmutableCdsConvention.Builder |
paymentOnDefault(PaymentOnDefault paymentOnDefault)
Sets the payment on default.
|
ImmutableCdsConvention.Builder |
protectionStart(ProtectionStartOfDay protectionStart)
Sets the protection start of the day.
|
ImmutableCdsConvention.Builder |
rollConvention(RollConvention rollConvention)
Sets the convention defining how to roll dates, optional with defaulting getter.
|
ImmutableCdsConvention.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ImmutableCdsConvention.Builder |
set(String propertyName,
Object newValue) |
ImmutableCdsConvention.Builder |
settlementDateOffset(DaysAdjustment settlementDateOffset)
Sets the number of days between valuation date and settlement date.
|
ImmutableCdsConvention.Builder |
startDateBusinessDayAdjustment(BusinessDayAdjustment startDateBusinessDayAdjustment)
Sets the business day adjustment to apply to the start date, optional with defaulting getter.
|
ImmutableCdsConvention.Builder |
stepinDateOffset(DaysAdjustment stepinDateOffset)
Sets the number of days between valuation date and step-in date.
|
ImmutableCdsConvention.Builder |
stubConvention(StubConvention stubConvention)
Sets the convention defining how to handle stubs, optional with defaulting getter.
|
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<ImmutableCdsConvention>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableCdsConvention>public ImmutableCdsConvention.Builder set(String propertyName, Object newValue)
public ImmutableCdsConvention.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<ImmutableCdsConvention>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableCdsConvention>public ImmutableCdsConvention build()
public ImmutableCdsConvention.Builder name(String name)
name - the new value, not nullpublic ImmutableCdsConvention.Builder currency(Currency currency)
The amounts of the notional are expressed in terms of this currency.
currency - the new value, not nullpublic ImmutableCdsConvention.Builder dayCount(DayCount dayCount)
This is used to convert schedule period dates to a numerical value.
dayCount - the new value, not nullpublic ImmutableCdsConvention.Builder paymentFrequency(Frequency paymentFrequency)
Regular payments will be made at the specified periodic frequency. This also defines the accrual periodic frequency.
paymentFrequency - the new value, not nullpublic ImmutableCdsConvention.Builder businessDayAdjustment(BusinessDayAdjustment businessDayAdjustment)
Each date in the calculated schedule is determined without taking into account weekends and holidays. The adjustment specified here is used to convert those dates to valid business days.
The start date and end date may have their own business day adjustment rules. If those are not present, then this adjustment is used instead.
businessDayAdjustment - the new value, not nullpublic ImmutableCdsConvention.Builder startDateBusinessDayAdjustment(BusinessDayAdjustment startDateBusinessDayAdjustment)
The start date property is an unadjusted date and as such might be a weekend or holiday. The adjustment specified here is used to convert the start date to a valid business day.
This will default to the businessDayAdjustment if not specified.
startDateBusinessDayAdjustment - the new valuepublic ImmutableCdsConvention.Builder endDateBusinessDayAdjustment(BusinessDayAdjustment endDateBusinessDayAdjustment)
The end date property is an unadjusted date and as such might be a weekend or holiday. The adjustment specified here is used to convert the end date to a valid business day.
This will default to the 'None' if not specified.
endDateBusinessDayAdjustment - the new valuepublic ImmutableCdsConvention.Builder stubConvention(StubConvention stubConvention)
The stub convention is used during schedule construction to determine whether the irregular remaining period occurs at the start or end of the schedule. It also determines whether the irregular period is shorter or longer than the regular period.
This will default to 'SmartInitial' if not specified.
stubConvention - the new value, not nullpublic ImmutableCdsConvention.Builder rollConvention(RollConvention rollConvention)
The schedule periods are determined at the high level by repeatedly adding the frequency to the start date, or subtracting it from the end date. The roll convention provides the detailed rule to adjust the day-of-month or day-of-week.
This will default to 'Day20' if not specified.
rollConvention - the new value, not nullpublic ImmutableCdsConvention.Builder paymentOnDefault(PaymentOnDefault paymentOnDefault)
Whether the accrued premium is paid in the event of a default.
This will default to 'accrued premium' if not specified.
paymentOnDefault - the new value, not nullpublic ImmutableCdsConvention.Builder protectionStart(ProtectionStartOfDay protectionStart)
When the protection starts on the start date.
This will default to 'beginning of the start day' if not specified.
protectionStart - the new value, not nullpublic ImmutableCdsConvention.Builder stepinDateOffset(DaysAdjustment stepinDateOffset)
The step-in date is also called protection effective date.
This will default to '1 calendar day' if not specified.
stepinDateOffset - the new value, not nullpublic ImmutableCdsConvention.Builder settlementDateOffset(DaysAdjustment settlementDateOffset)
It is usually 3 business days for standardised CDS contracts.
settlementDateOffset - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableCdsConvention>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.