}
@Override
public ConventionBundle buildObject(final FudgeDeserializer deserializer, final FudgeMsg msg) {
final SimpleConventionBundle obj = new SimpleConventionBundle();
FudgeField field;
//CSOFF
if ((field = msg.getByName("uniqueId")) != null) {
obj._uniqueId = deserializer.fieldValueToObject(UniqueId.class, field);
}
if ((field = msg.getByName("identifiers")) != null) {
obj._identifiers = deserializer.fieldValueToObject(ExternalIdBundle.class, field);
}
if ((field = msg.getByName("name")) != null) {
obj._name = deserializer.fieldValueToObject(String.class, field);
}
if ((field = msg.getByName("dayCount")) != null) {
obj._dayCount = deserializer.fieldValueToObject(DayCount.class, field);
}
if ((field = msg.getByName("businessDayConvention")) != null) {
obj._businessDayConvention = deserializer.fieldValueToObject(BusinessDayConvention.class, field);
}
if ((field = msg.getByName("region")) != null) {
obj._region = deserializer.fieldValueToObject(ExternalId.class, field);
}
if ((field = msg.getByName("frequency")) != null) {
obj._frequency = deserializer.fieldValueToObject(Frequency.class, field);
}
if ((field = msg.getByName("settlementDays")) != null) {
obj._settlementDays = deserializer.fieldValueToObject(Integer.class, field);
}
if ((field = msg.getByName("cutoffTenor")) != null) {
obj._cutoffTenor = deserializer.fieldValueToObject(Tenor.class, field);
}
if ((field = msg.getByName("shortSettlementDays")) != null) {
obj._shortSettlementDays = deserializer.fieldValueToObject(Integer.class, field);
}
if ((field = msg.getByName("longSettlementDays")) != null) {
obj._longSettlementDays = deserializer.fieldValueToObject(Integer.class, field);
}
if ((field = msg.getByName("futureYearFraction")) != null) {
obj._futureYearFraction = deserializer.fieldValueToObject(Double.class, field);
}
if ((field = msg.getByName("swapFixedLegDayCount")) != null) {
obj._swapFixedLegDayCount = deserializer.fieldValueToObject(DayCount.class, field);
}
if ((field = msg.getByName("swapFixedLegBusinessDayConvention")) != null) {
obj._swapFixedLegBusinessDayConvention = deserializer.fieldValueToObject(BusinessDayConvention.class, field);
}
if ((field = msg.getByName("swapFixedLegFrequency")) != null) {
obj._swapFixedLegPaymentFrequency = deserializer.fieldValueToObject(Frequency.class, field);
}
if ((field = msg.getByName("swapFixedLegCompoundingFrequency")) != null) {
obj._swapFixedLegCompoundingFrequency = deserializer.fieldValueToObject(Frequency.class, field);
}
if ((field = msg.getByName("swapFixedLegCompoundingType")) != null) {
obj._swapFixedLegCompoundingType = InterestRate.Type.valueOf((String) field.getValue());
}
if ((field = msg.getByName("swapFixedLegSettlementDays")) != null) {
obj._swapFixedLegSettlementDays = deserializer.fieldValueToObject(Integer.class, field);
}
if ((field = msg.getByName("swapFixedLegRegion")) != null) {
obj._swapFixedLegRegion = deserializer.fieldValueToObject(ExternalId.class, field);
}
if ((field = msg.getByName("swapFloatingLegDayCount")) != null) {
obj._swapFloatingLegDayCount = deserializer.fieldValueToObject(DayCount.class, field);
}
if ((field = msg.getByName("swapFloatingLegBusinessDayConvention")) != null) {
obj._swapFloatingLegBusinessDayConvention = deserializer.fieldValueToObject(BusinessDayConvention.class, field);
}
if ((field = msg.getByName("swapFloatingLegFrequency")) != null) {
obj._swapFloatingLegPaymentFrequency = deserializer.fieldValueToObject(Frequency.class, field);
}
if ((field = msg.getByName("swapFloatingLegCompoundingFrequency")) != null) {
obj._swapFloatingLegCompoundingFrequency = deserializer.fieldValueToObject(Frequency.class, field);
}
if ((field = msg.getByName("swapFloatingLegCompoundingType")) != null) {
obj._swapFloatingLegCompoundingType = InterestRate.Type.valueOf((String) field.getValue());
}
if ((field = msg.getByName("swapFloatingLegSettlementDays")) != null) {
obj._swapFloatingLegSettlementDays = deserializer.fieldValueToObject(Integer.class, field);
}
if ((field = msg.getByName("swapFloatingLegInitialRate")) != null) {