/** * Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.masterdb.security.hibernate.cds; import java.util.Map; import org.joda.beans.Bean; import org.joda.beans.BeanBuilder; import org.joda.beans.BeanDefinition; import org.joda.beans.JodaBeanUtils; import org.joda.beans.MetaProperty; import org.joda.beans.Property; import org.joda.beans.PropertyDefinition; import org.joda.beans.impl.direct.DirectBeanBuilder; import org.joda.beans.impl.direct.DirectMetaProperty; import org.joda.beans.impl.direct.DirectMetaPropertyMap; import com.opengamma.financial.security.cds.CreditDefaultSwapIndexSecurity; import com.opengamma.masterdb.security.hibernate.BusinessDayConventionBean; import com.opengamma.masterdb.security.hibernate.DayCountBean; import com.opengamma.masterdb.security.hibernate.ExternalIdBean; import com.opengamma.masterdb.security.hibernate.FrequencyBean; import com.opengamma.masterdb.security.hibernate.SecurityBean; import com.opengamma.masterdb.security.hibernate.StubTypeBean; import com.opengamma.masterdb.security.hibernate.ZonedDateTimeBean; import com.opengamma.masterdb.security.hibernate.swap.NotionalBean; /** * A Hibernate bean representation of {@link CreditDefaultSwapIndexSecurity}. */ @BeanDefinition public class CreditDefaultSwapIndexSecurityBean extends SecurityBean { @PropertyDefinition private Boolean _buy; @PropertyDefinition private ExternalIdBean _protectionBuyer; @PropertyDefinition private ExternalIdBean _protectionSeller; @PropertyDefinition private ExternalIdBean _index; @PropertyDefinition private ZonedDateTimeBean _startDate; @PropertyDefinition private ZonedDateTimeBean _effectiveDate; @PropertyDefinition private ZonedDateTimeBean _maturityDate; @PropertyDefinition private ZonedDateTimeBean _settlementDate; @PropertyDefinition private StubTypeBean _stubType; @PropertyDefinition private FrequencyBean _couponFrequency; @PropertyDefinition private DayCountBean _dayCount; @PropertyDefinition private BusinessDayConventionBean _businessDayConvention; @PropertyDefinition private Boolean _immAdjustMaturityDate; @PropertyDefinition private Boolean _adjustEffectiveDate; @PropertyDefinition private Boolean _adjustMaturityDate; @PropertyDefinition private Boolean _adjustSettlementDate; @PropertyDefinition private NotionalBean _notional; @PropertyDefinition private Boolean _includeAccruedPremium; @PropertyDefinition private Boolean _protectionStart; @PropertyDefinition private NotionalBean _upfrontPayment; @PropertyDefinition private double _indexCoupon; //------------------------- AUTOGENERATED START ------------------------- ///CLOVER:OFF /** * The meta-bean for {@code CreditDefaultSwapIndexSecurityBean}. * @return the meta-bean, not null */ public static CreditDefaultSwapIndexSecurityBean.Meta meta() { return CreditDefaultSwapIndexSecurityBean.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(CreditDefaultSwapIndexSecurityBean.Meta.INSTANCE); } @Override public CreditDefaultSwapIndexSecurityBean.Meta metaBean() { return CreditDefaultSwapIndexSecurityBean.Meta.INSTANCE; } //----------------------------------------------------------------------- /** * Gets the buy. * @return the value of the property */ public Boolean getBuy() { return _buy; } /** * Sets the buy. * @param buy the new value of the property */ public void setBuy(Boolean buy) { this._buy = buy; } /** * Gets the the {@code buy} property. * @return the property, not null */ public final Property<Boolean> buy() { return metaBean().buy().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the protectionBuyer. * @return the value of the property */ public ExternalIdBean getProtectionBuyer() { return _protectionBuyer; } /** * Sets the protectionBuyer. * @param protectionBuyer the new value of the property */ public void setProtectionBuyer(ExternalIdBean protectionBuyer) { this._protectionBuyer = protectionBuyer; } /** * Gets the the {@code protectionBuyer} property. * @return the property, not null */ public final Property<ExternalIdBean> protectionBuyer() { return metaBean().protectionBuyer().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the protectionSeller. * @return the value of the property */ public ExternalIdBean getProtectionSeller() { return _protectionSeller; } /** * Sets the protectionSeller. * @param protectionSeller the new value of the property */ public void setProtectionSeller(ExternalIdBean protectionSeller) { this._protectionSeller = protectionSeller; } /** * Gets the the {@code protectionSeller} property. * @return the property, not null */ public final Property<ExternalIdBean> protectionSeller() { return metaBean().protectionSeller().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the index. * @return the value of the property */ public ExternalIdBean getIndex() { return _index; } /** * Sets the index. * @param index the new value of the property */ public void setIndex(ExternalIdBean index) { this._index = index; } /** * Gets the the {@code index} property. * @return the property, not null */ public final Property<ExternalIdBean> index() { return metaBean().index().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the startDate. * @return the value of the property */ public ZonedDateTimeBean getStartDate() { return _startDate; } /** * Sets the startDate. * @param startDate the new value of the property */ public void setStartDate(ZonedDateTimeBean startDate) { this._startDate = startDate; } /** * Gets the the {@code startDate} property. * @return the property, not null */ public final Property<ZonedDateTimeBean> startDate() { return metaBean().startDate().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the effectiveDate. * @return the value of the property */ public ZonedDateTimeBean getEffectiveDate() { return _effectiveDate; } /** * Sets the effectiveDate. * @param effectiveDate the new value of the property */ public void setEffectiveDate(ZonedDateTimeBean effectiveDate) { this._effectiveDate = effectiveDate; } /** * Gets the the {@code effectiveDate} property. * @return the property, not null */ public final Property<ZonedDateTimeBean> effectiveDate() { return metaBean().effectiveDate().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the maturityDate. * @return the value of the property */ public ZonedDateTimeBean getMaturityDate() { return _maturityDate; } /** * Sets the maturityDate. * @param maturityDate the new value of the property */ public void setMaturityDate(ZonedDateTimeBean maturityDate) { this._maturityDate = maturityDate; } /** * Gets the the {@code maturityDate} property. * @return the property, not null */ public final Property<ZonedDateTimeBean> maturityDate() { return metaBean().maturityDate().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the settlementDate. * @return the value of the property */ public ZonedDateTimeBean getSettlementDate() { return _settlementDate; } /** * Sets the settlementDate. * @param settlementDate the new value of the property */ public void setSettlementDate(ZonedDateTimeBean settlementDate) { this._settlementDate = settlementDate; } /** * Gets the the {@code settlementDate} property. * @return the property, not null */ public final Property<ZonedDateTimeBean> settlementDate() { return metaBean().settlementDate().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the stubType. * @return the value of the property */ public StubTypeBean getStubType() { return _stubType; } /** * Sets the stubType. * @param stubType the new value of the property */ public void setStubType(StubTypeBean stubType) { this._stubType = stubType; } /** * Gets the the {@code stubType} property. * @return the property, not null */ public final Property<StubTypeBean> stubType() { return metaBean().stubType().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the couponFrequency. * @return the value of the property */ public FrequencyBean getCouponFrequency() { return _couponFrequency; } /** * Sets the couponFrequency. * @param couponFrequency the new value of the property */ public void setCouponFrequency(FrequencyBean couponFrequency) { this._couponFrequency = couponFrequency; } /** * Gets the the {@code couponFrequency} property. * @return the property, not null */ public final Property<FrequencyBean> couponFrequency() { return metaBean().couponFrequency().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the dayCount. * @return the value of the property */ public DayCountBean getDayCount() { return _dayCount; } /** * Sets the dayCount. * @param dayCount the new value of the property */ public void setDayCount(DayCountBean dayCount) { this._dayCount = dayCount; } /** * Gets the the {@code dayCount} property. * @return the property, not null */ public final Property<DayCountBean> dayCount() { return metaBean().dayCount().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the businessDayConvention. * @return the value of the property */ public BusinessDayConventionBean getBusinessDayConvention() { return _businessDayConvention; } /** * Sets the businessDayConvention. * @param businessDayConvention the new value of the property */ public void setBusinessDayConvention(BusinessDayConventionBean businessDayConvention) { this._businessDayConvention = businessDayConvention; } /** * Gets the the {@code businessDayConvention} property. * @return the property, not null */ public final Property<BusinessDayConventionBean> businessDayConvention() { return metaBean().businessDayConvention().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the immAdjustMaturityDate. * @return the value of the property */ public Boolean getImmAdjustMaturityDate() { return _immAdjustMaturityDate; } /** * Sets the immAdjustMaturityDate. * @param immAdjustMaturityDate the new value of the property */ public void setImmAdjustMaturityDate(Boolean immAdjustMaturityDate) { this._immAdjustMaturityDate = immAdjustMaturityDate; } /** * Gets the the {@code immAdjustMaturityDate} property. * @return the property, not null */ public final Property<Boolean> immAdjustMaturityDate() { return metaBean().immAdjustMaturityDate().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the adjustEffectiveDate. * @return the value of the property */ public Boolean getAdjustEffectiveDate() { return _adjustEffectiveDate; } /** * Sets the adjustEffectiveDate. * @param adjustEffectiveDate the new value of the property */ public void setAdjustEffectiveDate(Boolean adjustEffectiveDate) { this._adjustEffectiveDate = adjustEffectiveDate; } /** * Gets the the {@code adjustEffectiveDate} property. * @return the property, not null */ public final Property<Boolean> adjustEffectiveDate() { return metaBean().adjustEffectiveDate().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the adjustMaturityDate. * @return the value of the property */ public Boolean getAdjustMaturityDate() { return _adjustMaturityDate; } /** * Sets the adjustMaturityDate. * @param adjustMaturityDate the new value of the property */ public void setAdjustMaturityDate(Boolean adjustMaturityDate) { this._adjustMaturityDate = adjustMaturityDate; } /** * Gets the the {@code adjustMaturityDate} property. * @return the property, not null */ public final Property<Boolean> adjustMaturityDate() { return metaBean().adjustMaturityDate().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the adjustSettlementDate. * @return the value of the property */ public Boolean getAdjustSettlementDate() { return _adjustSettlementDate; } /** * Sets the adjustSettlementDate. * @param adjustSettlementDate the new value of the property */ public void setAdjustSettlementDate(Boolean adjustSettlementDate) { this._adjustSettlementDate = adjustSettlementDate; } /** * Gets the the {@code adjustSettlementDate} property. * @return the property, not null */ public final Property<Boolean> adjustSettlementDate() { return metaBean().adjustSettlementDate().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the notional. * @return the value of the property */ public NotionalBean getNotional() { return _notional; } /** * Sets the notional. * @param notional the new value of the property */ public void setNotional(NotionalBean notional) { this._notional = notional; } /** * Gets the the {@code notional} property. * @return the property, not null */ public final Property<NotionalBean> notional() { return metaBean().notional().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the includeAccruedPremium. * @return the value of the property */ public Boolean getIncludeAccruedPremium() { return _includeAccruedPremium; } /** * Sets the includeAccruedPremium. * @param includeAccruedPremium the new value of the property */ public void setIncludeAccruedPremium(Boolean includeAccruedPremium) { this._includeAccruedPremium = includeAccruedPremium; } /** * Gets the the {@code includeAccruedPremium} property. * @return the property, not null */ public final Property<Boolean> includeAccruedPremium() { return metaBean().includeAccruedPremium().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the protectionStart. * @return the value of the property */ public Boolean getProtectionStart() { return _protectionStart; } /** * Sets the protectionStart. * @param protectionStart the new value of the property */ public void setProtectionStart(Boolean protectionStart) { this._protectionStart = protectionStart; } /** * Gets the the {@code protectionStart} property. * @return the property, not null */ public final Property<Boolean> protectionStart() { return metaBean().protectionStart().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the upfrontPayment. * @return the value of the property */ public NotionalBean getUpfrontPayment() { return _upfrontPayment; } /** * Sets the upfrontPayment. * @param upfrontPayment the new value of the property */ public void setUpfrontPayment(NotionalBean upfrontPayment) { this._upfrontPayment = upfrontPayment; } /** * Gets the the {@code upfrontPayment} property. * @return the property, not null */ public final Property<NotionalBean> upfrontPayment() { return metaBean().upfrontPayment().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the indexCoupon. * @return the value of the property */ public double getIndexCoupon() { return _indexCoupon; } /** * Sets the indexCoupon. * @param indexCoupon the new value of the property */ public void setIndexCoupon(double indexCoupon) { this._indexCoupon = indexCoupon; } /** * Gets the the {@code indexCoupon} property. * @return the property, not null */ public final Property<Double> indexCoupon() { return metaBean().indexCoupon().createProperty(this); } //----------------------------------------------------------------------- @Override public CreditDefaultSwapIndexSecurityBean clone() { return JodaBeanUtils.cloneAlways(this); } @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj != null && obj.getClass() == this.getClass()) { CreditDefaultSwapIndexSecurityBean other = (CreditDefaultSwapIndexSecurityBean) obj; return JodaBeanUtils.equal(getBuy(), other.getBuy()) && JodaBeanUtils.equal(getProtectionBuyer(), other.getProtectionBuyer()) && JodaBeanUtils.equal(getProtectionSeller(), other.getProtectionSeller()) && JodaBeanUtils.equal(getIndex(), other.getIndex()) && JodaBeanUtils.equal(getStartDate(), other.getStartDate()) && JodaBeanUtils.equal(getEffectiveDate(), other.getEffectiveDate()) && JodaBeanUtils.equal(getMaturityDate(), other.getMaturityDate()) && JodaBeanUtils.equal(getSettlementDate(), other.getSettlementDate()) && JodaBeanUtils.equal(getStubType(), other.getStubType()) && JodaBeanUtils.equal(getCouponFrequency(), other.getCouponFrequency()) && JodaBeanUtils.equal(getDayCount(), other.getDayCount()) && JodaBeanUtils.equal(getBusinessDayConvention(), other.getBusinessDayConvention()) && JodaBeanUtils.equal(getImmAdjustMaturityDate(), other.getImmAdjustMaturityDate()) && JodaBeanUtils.equal(getAdjustEffectiveDate(), other.getAdjustEffectiveDate()) && JodaBeanUtils.equal(getAdjustMaturityDate(), other.getAdjustMaturityDate()) && JodaBeanUtils.equal(getAdjustSettlementDate(), other.getAdjustSettlementDate()) && JodaBeanUtils.equal(getNotional(), other.getNotional()) && JodaBeanUtils.equal(getIncludeAccruedPremium(), other.getIncludeAccruedPremium()) && JodaBeanUtils.equal(getProtectionStart(), other.getProtectionStart()) && JodaBeanUtils.equal(getUpfrontPayment(), other.getUpfrontPayment()) && JodaBeanUtils.equal(getIndexCoupon(), other.getIndexCoupon()) && super.equals(obj); } return false; } @Override public int hashCode() { int hash = 7; hash = hash * 31 + JodaBeanUtils.hashCode(getBuy()); hash = hash * 31 + JodaBeanUtils.hashCode(getProtectionBuyer()); hash = hash * 31 + JodaBeanUtils.hashCode(getProtectionSeller()); hash = hash * 31 + JodaBeanUtils.hashCode(getIndex()); hash = hash * 31 + JodaBeanUtils.hashCode(getStartDate()); hash = hash * 31 + JodaBeanUtils.hashCode(getEffectiveDate()); hash = hash * 31 + JodaBeanUtils.hashCode(getMaturityDate()); hash = hash * 31 + JodaBeanUtils.hashCode(getSettlementDate()); hash = hash * 31 + JodaBeanUtils.hashCode(getStubType()); hash = hash * 31 + JodaBeanUtils.hashCode(getCouponFrequency()); hash = hash * 31 + JodaBeanUtils.hashCode(getDayCount()); hash = hash * 31 + JodaBeanUtils.hashCode(getBusinessDayConvention()); hash = hash * 31 + JodaBeanUtils.hashCode(getImmAdjustMaturityDate()); hash = hash * 31 + JodaBeanUtils.hashCode(getAdjustEffectiveDate()); hash = hash * 31 + JodaBeanUtils.hashCode(getAdjustMaturityDate()); hash = hash * 31 + JodaBeanUtils.hashCode(getAdjustSettlementDate()); hash = hash * 31 + JodaBeanUtils.hashCode(getNotional()); hash = hash * 31 + JodaBeanUtils.hashCode(getIncludeAccruedPremium()); hash = hash * 31 + JodaBeanUtils.hashCode(getProtectionStart()); hash = hash * 31 + JodaBeanUtils.hashCode(getUpfrontPayment()); hash = hash * 31 + JodaBeanUtils.hashCode(getIndexCoupon()); return hash ^ super.hashCode(); } @Override public String toString() { StringBuilder buf = new StringBuilder(704); buf.append("CreditDefaultSwapIndexSecurityBean{"); int len = buf.length(); toString(buf); if (buf.length() > len) { buf.setLength(buf.length() - 2); } buf.append('}'); return buf.toString(); } @Override protected void toString(StringBuilder buf) { super.toString(buf); buf.append("buy").append('=').append(JodaBeanUtils.toString(getBuy())).append(',').append(' '); buf.append("protectionBuyer").append('=').append(JodaBeanUtils.toString(getProtectionBuyer())).append(',').append(' '); buf.append("protectionSeller").append('=').append(JodaBeanUtils.toString(getProtectionSeller())).append(',').append(' '); buf.append("index").append('=').append(JodaBeanUtils.toString(getIndex())).append(',').append(' '); buf.append("startDate").append('=').append(JodaBeanUtils.toString(getStartDate())).append(',').append(' '); buf.append("effectiveDate").append('=').append(JodaBeanUtils.toString(getEffectiveDate())).append(',').append(' '); buf.append("maturityDate").append('=').append(JodaBeanUtils.toString(getMaturityDate())).append(',').append(' '); buf.append("settlementDate").append('=').append(JodaBeanUtils.toString(getSettlementDate())).append(',').append(' '); buf.append("stubType").append('=').append(JodaBeanUtils.toString(getStubType())).append(',').append(' '); buf.append("couponFrequency").append('=').append(JodaBeanUtils.toString(getCouponFrequency())).append(',').append(' '); buf.append("dayCount").append('=').append(JodaBeanUtils.toString(getDayCount())).append(',').append(' '); buf.append("businessDayConvention").append('=').append(JodaBeanUtils.toString(getBusinessDayConvention())).append(',').append(' '); buf.append("immAdjustMaturityDate").append('=').append(JodaBeanUtils.toString(getImmAdjustMaturityDate())).append(',').append(' '); buf.append("adjustEffectiveDate").append('=').append(JodaBeanUtils.toString(getAdjustEffectiveDate())).append(',').append(' '); buf.append("adjustMaturityDate").append('=').append(JodaBeanUtils.toString(getAdjustMaturityDate())).append(',').append(' '); buf.append("adjustSettlementDate").append('=').append(JodaBeanUtils.toString(getAdjustSettlementDate())).append(',').append(' '); buf.append("notional").append('=').append(JodaBeanUtils.toString(getNotional())).append(',').append(' '); buf.append("includeAccruedPremium").append('=').append(JodaBeanUtils.toString(getIncludeAccruedPremium())).append(',').append(' '); buf.append("protectionStart").append('=').append(JodaBeanUtils.toString(getProtectionStart())).append(',').append(' '); buf.append("upfrontPayment").append('=').append(JodaBeanUtils.toString(getUpfrontPayment())).append(',').append(' '); buf.append("indexCoupon").append('=').append(JodaBeanUtils.toString(getIndexCoupon())).append(',').append(' '); } //----------------------------------------------------------------------- /** * The meta-bean for {@code CreditDefaultSwapIndexSecurityBean}. */ public static class Meta extends SecurityBean.Meta { /** * The singleton instance of the meta-bean. */ static final Meta INSTANCE = new Meta(); /** * The meta-property for the {@code buy} property. */ private final MetaProperty<Boolean> _buy = DirectMetaProperty.ofReadWrite( this, "buy", CreditDefaultSwapIndexSecurityBean.class, Boolean.class); /** * The meta-property for the {@code protectionBuyer} property. */ private final MetaProperty<ExternalIdBean> _protectionBuyer = DirectMetaProperty.ofReadWrite( this, "protectionBuyer", CreditDefaultSwapIndexSecurityBean.class, ExternalIdBean.class); /** * The meta-property for the {@code protectionSeller} property. */ private final MetaProperty<ExternalIdBean> _protectionSeller = DirectMetaProperty.ofReadWrite( this, "protectionSeller", CreditDefaultSwapIndexSecurityBean.class, ExternalIdBean.class); /** * The meta-property for the {@code index} property. */ private final MetaProperty<ExternalIdBean> _index = DirectMetaProperty.ofReadWrite( this, "index", CreditDefaultSwapIndexSecurityBean.class, ExternalIdBean.class); /** * The meta-property for the {@code startDate} property. */ private final MetaProperty<ZonedDateTimeBean> _startDate = DirectMetaProperty.ofReadWrite( this, "startDate", CreditDefaultSwapIndexSecurityBean.class, ZonedDateTimeBean.class); /** * The meta-property for the {@code effectiveDate} property. */ private final MetaProperty<ZonedDateTimeBean> _effectiveDate = DirectMetaProperty.ofReadWrite( this, "effectiveDate", CreditDefaultSwapIndexSecurityBean.class, ZonedDateTimeBean.class); /** * The meta-property for the {@code maturityDate} property. */ private final MetaProperty<ZonedDateTimeBean> _maturityDate = DirectMetaProperty.ofReadWrite( this, "maturityDate", CreditDefaultSwapIndexSecurityBean.class, ZonedDateTimeBean.class); /** * The meta-property for the {@code settlementDate} property. */ private final MetaProperty<ZonedDateTimeBean> _settlementDate = DirectMetaProperty.ofReadWrite( this, "settlementDate", CreditDefaultSwapIndexSecurityBean.class, ZonedDateTimeBean.class); /** * The meta-property for the {@code stubType} property. */ private final MetaProperty<StubTypeBean> _stubType = DirectMetaProperty.ofReadWrite( this, "stubType", CreditDefaultSwapIndexSecurityBean.class, StubTypeBean.class); /** * The meta-property for the {@code couponFrequency} property. */ private final MetaProperty<FrequencyBean> _couponFrequency = DirectMetaProperty.ofReadWrite( this, "couponFrequency", CreditDefaultSwapIndexSecurityBean.class, FrequencyBean.class); /** * The meta-property for the {@code dayCount} property. */ private final MetaProperty<DayCountBean> _dayCount = DirectMetaProperty.ofReadWrite( this, "dayCount", CreditDefaultSwapIndexSecurityBean.class, DayCountBean.class); /** * The meta-property for the {@code businessDayConvention} property. */ private final MetaProperty<BusinessDayConventionBean> _businessDayConvention = DirectMetaProperty.ofReadWrite( this, "businessDayConvention", CreditDefaultSwapIndexSecurityBean.class, BusinessDayConventionBean.class); /** * The meta-property for the {@code immAdjustMaturityDate} property. */ private final MetaProperty<Boolean> _immAdjustMaturityDate = DirectMetaProperty.ofReadWrite( this, "immAdjustMaturityDate", CreditDefaultSwapIndexSecurityBean.class, Boolean.class); /** * The meta-property for the {@code adjustEffectiveDate} property. */ private final MetaProperty<Boolean> _adjustEffectiveDate = DirectMetaProperty.ofReadWrite( this, "adjustEffectiveDate", CreditDefaultSwapIndexSecurityBean.class, Boolean.class); /** * The meta-property for the {@code adjustMaturityDate} property. */ private final MetaProperty<Boolean> _adjustMaturityDate = DirectMetaProperty.ofReadWrite( this, "adjustMaturityDate", CreditDefaultSwapIndexSecurityBean.class, Boolean.class); /** * The meta-property for the {@code adjustSettlementDate} property. */ private final MetaProperty<Boolean> _adjustSettlementDate = DirectMetaProperty.ofReadWrite( this, "adjustSettlementDate", CreditDefaultSwapIndexSecurityBean.class, Boolean.class); /** * The meta-property for the {@code notional} property. */ private final MetaProperty<NotionalBean> _notional = DirectMetaProperty.ofReadWrite( this, "notional", CreditDefaultSwapIndexSecurityBean.class, NotionalBean.class); /** * The meta-property for the {@code includeAccruedPremium} property. */ private final MetaProperty<Boolean> _includeAccruedPremium = DirectMetaProperty.ofReadWrite( this, "includeAccruedPremium", CreditDefaultSwapIndexSecurityBean.class, Boolean.class); /** * The meta-property for the {@code protectionStart} property. */ private final MetaProperty<Boolean> _protectionStart = DirectMetaProperty.ofReadWrite( this, "protectionStart", CreditDefaultSwapIndexSecurityBean.class, Boolean.class); /** * The meta-property for the {@code upfrontPayment} property. */ private final MetaProperty<NotionalBean> _upfrontPayment = DirectMetaProperty.ofReadWrite( this, "upfrontPayment", CreditDefaultSwapIndexSecurityBean.class, NotionalBean.class); /** * The meta-property for the {@code indexCoupon} property. */ private final MetaProperty<Double> _indexCoupon = DirectMetaProperty.ofReadWrite( this, "indexCoupon", CreditDefaultSwapIndexSecurityBean.class, Double.TYPE); /** * The meta-properties. */ private final Map<String, MetaProperty<?>> _metaPropertyMap$ = new DirectMetaPropertyMap( this, (DirectMetaPropertyMap) super.metaPropertyMap(), "buy", "protectionBuyer", "protectionSeller", "index", "startDate", "effectiveDate", "maturityDate", "settlementDate", "stubType", "couponFrequency", "dayCount", "businessDayConvention", "immAdjustMaturityDate", "adjustEffectiveDate", "adjustMaturityDate", "adjustSettlementDate", "notional", "includeAccruedPremium", "protectionStart", "upfrontPayment", "indexCoupon"); /** * Restricted constructor. */ protected Meta() { } @Override protected MetaProperty<?> metaPropertyGet(String propertyName) { switch (propertyName.hashCode()) { case 97926: // buy return _buy; case 2087835226: // protectionBuyer return _protectionBuyer; case 769920952: // protectionSeller return _protectionSeller; case 100346066: // index return _index; case -2129778896: // startDate return _startDate; case -930389515: // effectiveDate return _effectiveDate; case -414641441: // maturityDate return _maturityDate; case -295948169: // settlementDate return _settlementDate; case 1873675528: // stubType return _stubType; case 144480214: // couponFrequency return _couponFrequency; case 1905311443: // dayCount return _dayCount; case -1002835891: // businessDayConvention return _businessDayConvention; case -1168632905: // immAdjustMaturityDate return _immAdjustMaturityDate; case -490317146: // adjustEffectiveDate return _adjustEffectiveDate; case -261898226: // adjustMaturityDate return _adjustMaturityDate; case 461393382: // adjustSettlementDate return _adjustSettlementDate; case 1585636160: // notional return _notional; case 2100149628: // includeAccruedPremium return _includeAccruedPremium; case 2103482633: // protectionStart return _protectionStart; case -638821960: // upfrontPayment return _upfrontPayment; case 880904088: // indexCoupon return _indexCoupon; } return super.metaPropertyGet(propertyName); } @Override public BeanBuilder<? extends CreditDefaultSwapIndexSecurityBean> builder() { return new DirectBeanBuilder<CreditDefaultSwapIndexSecurityBean>(new CreditDefaultSwapIndexSecurityBean()); } @Override public Class<? extends CreditDefaultSwapIndexSecurityBean> beanType() { return CreditDefaultSwapIndexSecurityBean.class; } @Override public Map<String, MetaProperty<?>> metaPropertyMap() { return _metaPropertyMap$; } //----------------------------------------------------------------------- /** * The meta-property for the {@code buy} property. * @return the meta-property, not null */ public final MetaProperty<Boolean> buy() { return _buy; } /** * The meta-property for the {@code protectionBuyer} property. * @return the meta-property, not null */ public final MetaProperty<ExternalIdBean> protectionBuyer() { return _protectionBuyer; } /** * The meta-property for the {@code protectionSeller} property. * @return the meta-property, not null */ public final MetaProperty<ExternalIdBean> protectionSeller() { return _protectionSeller; } /** * The meta-property for the {@code index} property. * @return the meta-property, not null */ public final MetaProperty<ExternalIdBean> index() { return _index; } /** * The meta-property for the {@code startDate} property. * @return the meta-property, not null */ public final MetaProperty<ZonedDateTimeBean> startDate() { return _startDate; } /** * The meta-property for the {@code effectiveDate} property. * @return the meta-property, not null */ public final MetaProperty<ZonedDateTimeBean> effectiveDate() { return _effectiveDate; } /** * The meta-property for the {@code maturityDate} property. * @return the meta-property, not null */ public final MetaProperty<ZonedDateTimeBean> maturityDate() { return _maturityDate; } /** * The meta-property for the {@code settlementDate} property. * @return the meta-property, not null */ public final MetaProperty<ZonedDateTimeBean> settlementDate() { return _settlementDate; } /** * The meta-property for the {@code stubType} property. * @return the meta-property, not null */ public final MetaProperty<StubTypeBean> stubType() { return _stubType; } /** * The meta-property for the {@code couponFrequency} property. * @return the meta-property, not null */ public final MetaProperty<FrequencyBean> couponFrequency() { return _couponFrequency; } /** * The meta-property for the {@code dayCount} property. * @return the meta-property, not null */ public final MetaProperty<DayCountBean> dayCount() { return _dayCount; } /** * The meta-property for the {@code businessDayConvention} property. * @return the meta-property, not null */ public final MetaProperty<BusinessDayConventionBean> businessDayConvention() { return _businessDayConvention; } /** * The meta-property for the {@code immAdjustMaturityDate} property. * @return the meta-property, not null */ public final MetaProperty<Boolean> immAdjustMaturityDate() { return _immAdjustMaturityDate; } /** * The meta-property for the {@code adjustEffectiveDate} property. * @return the meta-property, not null */ public final MetaProperty<Boolean> adjustEffectiveDate() { return _adjustEffectiveDate; } /** * The meta-property for the {@code adjustMaturityDate} property. * @return the meta-property, not null */ public final MetaProperty<Boolean> adjustMaturityDate() { return _adjustMaturityDate; } /** * The meta-property for the {@code adjustSettlementDate} property. * @return the meta-property, not null */ public final MetaProperty<Boolean> adjustSettlementDate() { return _adjustSettlementDate; } /** * The meta-property for the {@code notional} property. * @return the meta-property, not null */ public final MetaProperty<NotionalBean> notional() { return _notional; } /** * The meta-property for the {@code includeAccruedPremium} property. * @return the meta-property, not null */ public final MetaProperty<Boolean> includeAccruedPremium() { return _includeAccruedPremium; } /** * The meta-property for the {@code protectionStart} property. * @return the meta-property, not null */ public final MetaProperty<Boolean> protectionStart() { return _protectionStart; } /** * The meta-property for the {@code upfrontPayment} property. * @return the meta-property, not null */ public final MetaProperty<NotionalBean> upfrontPayment() { return _upfrontPayment; } /** * The meta-property for the {@code indexCoupon} property. * @return the meta-property, not null */ public final MetaProperty<Double> indexCoupon() { return _indexCoupon; } //----------------------------------------------------------------------- @Override protected Object propertyGet(Bean bean, String propertyName, boolean quiet) { switch (propertyName.hashCode()) { case 97926: // buy return ((CreditDefaultSwapIndexSecurityBean) bean).getBuy(); case 2087835226: // protectionBuyer return ((CreditDefaultSwapIndexSecurityBean) bean).getProtectionBuyer(); case 769920952: // protectionSeller return ((CreditDefaultSwapIndexSecurityBean) bean).getProtectionSeller(); case 100346066: // index return ((CreditDefaultSwapIndexSecurityBean) bean).getIndex(); case -2129778896: // startDate return ((CreditDefaultSwapIndexSecurityBean) bean).getStartDate(); case -930389515: // effectiveDate return ((CreditDefaultSwapIndexSecurityBean) bean).getEffectiveDate(); case -414641441: // maturityDate return ((CreditDefaultSwapIndexSecurityBean) bean).getMaturityDate(); case -295948169: // settlementDate return ((CreditDefaultSwapIndexSecurityBean) bean).getSettlementDate(); case 1873675528: // stubType return ((CreditDefaultSwapIndexSecurityBean) bean).getStubType(); case 144480214: // couponFrequency return ((CreditDefaultSwapIndexSecurityBean) bean).getCouponFrequency(); case 1905311443: // dayCount return ((CreditDefaultSwapIndexSecurityBean) bean).getDayCount(); case -1002835891: // businessDayConvention return ((CreditDefaultSwapIndexSecurityBean) bean).getBusinessDayConvention(); case -1168632905: // immAdjustMaturityDate return ((CreditDefaultSwapIndexSecurityBean) bean).getImmAdjustMaturityDate(); case -490317146: // adjustEffectiveDate return ((CreditDefaultSwapIndexSecurityBean) bean).getAdjustEffectiveDate(); case -261898226: // adjustMaturityDate return ((CreditDefaultSwapIndexSecurityBean) bean).getAdjustMaturityDate(); case 461393382: // adjustSettlementDate return ((CreditDefaultSwapIndexSecurityBean) bean).getAdjustSettlementDate(); case 1585636160: // notional return ((CreditDefaultSwapIndexSecurityBean) bean).getNotional(); case 2100149628: // includeAccruedPremium return ((CreditDefaultSwapIndexSecurityBean) bean).getIncludeAccruedPremium(); case 2103482633: // protectionStart return ((CreditDefaultSwapIndexSecurityBean) bean).getProtectionStart(); case -638821960: // upfrontPayment return ((CreditDefaultSwapIndexSecurityBean) bean).getUpfrontPayment(); case 880904088: // indexCoupon return ((CreditDefaultSwapIndexSecurityBean) bean).getIndexCoupon(); } return super.propertyGet(bean, propertyName, quiet); } @Override protected void propertySet(Bean bean, String propertyName, Object newValue, boolean quiet) { switch (propertyName.hashCode()) { case 97926: // buy ((CreditDefaultSwapIndexSecurityBean) bean).setBuy((Boolean) newValue); return; case 2087835226: // protectionBuyer ((CreditDefaultSwapIndexSecurityBean) bean).setProtectionBuyer((ExternalIdBean) newValue); return; case 769920952: // protectionSeller ((CreditDefaultSwapIndexSecurityBean) bean).setProtectionSeller((ExternalIdBean) newValue); return; case 100346066: // index ((CreditDefaultSwapIndexSecurityBean) bean).setIndex((ExternalIdBean) newValue); return; case -2129778896: // startDate ((CreditDefaultSwapIndexSecurityBean) bean).setStartDate((ZonedDateTimeBean) newValue); return; case -930389515: // effectiveDate ((CreditDefaultSwapIndexSecurityBean) bean).setEffectiveDate((ZonedDateTimeBean) newValue); return; case -414641441: // maturityDate ((CreditDefaultSwapIndexSecurityBean) bean).setMaturityDate((ZonedDateTimeBean) newValue); return; case -295948169: // settlementDate ((CreditDefaultSwapIndexSecurityBean) bean).setSettlementDate((ZonedDateTimeBean) newValue); return; case 1873675528: // stubType ((CreditDefaultSwapIndexSecurityBean) bean).setStubType((StubTypeBean) newValue); return; case 144480214: // couponFrequency ((CreditDefaultSwapIndexSecurityBean) bean).setCouponFrequency((FrequencyBean) newValue); return; case 1905311443: // dayCount ((CreditDefaultSwapIndexSecurityBean) bean).setDayCount((DayCountBean) newValue); return; case -1002835891: // businessDayConvention ((CreditDefaultSwapIndexSecurityBean) bean).setBusinessDayConvention((BusinessDayConventionBean) newValue); return; case -1168632905: // immAdjustMaturityDate ((CreditDefaultSwapIndexSecurityBean) bean).setImmAdjustMaturityDate((Boolean) newValue); return; case -490317146: // adjustEffectiveDate ((CreditDefaultSwapIndexSecurityBean) bean).setAdjustEffectiveDate((Boolean) newValue); return; case -261898226: // adjustMaturityDate ((CreditDefaultSwapIndexSecurityBean) bean).setAdjustMaturityDate((Boolean) newValue); return; case 461393382: // adjustSettlementDate ((CreditDefaultSwapIndexSecurityBean) bean).setAdjustSettlementDate((Boolean) newValue); return; case 1585636160: // notional ((CreditDefaultSwapIndexSecurityBean) bean).setNotional((NotionalBean) newValue); return; case 2100149628: // includeAccruedPremium ((CreditDefaultSwapIndexSecurityBean) bean).setIncludeAccruedPremium((Boolean) newValue); return; case 2103482633: // protectionStart ((CreditDefaultSwapIndexSecurityBean) bean).setProtectionStart((Boolean) newValue); return; case -638821960: // upfrontPayment ((CreditDefaultSwapIndexSecurityBean) bean).setUpfrontPayment((NotionalBean) newValue); return; case 880904088: // indexCoupon ((CreditDefaultSwapIndexSecurityBean) bean).setIndexCoupon((Double) newValue); return; } super.propertySet(bean, propertyName, newValue, quiet); } } ///CLOVER:ON //-------------------------- AUTOGENERATED END -------------------------- }