@Test public void testGetDurationDayTimeSelector() { final TypedValueSelector actual = selector.makeSelectorForType(DURATION_DAYS_TIME.getName()); assertEquals(dayTimeSelector, actual); }
public TypedValueSelector makeSelectorForType(final String type) { if (isEqual(type, DATE)) { return dateSelector; } if (isEqual(type, DURATION_DAYS_TIME)) { return dayTimeSelector; } if (isEqual(type, DURATION_YEAR_MONTH)) { return yearsMosSelector; } if (isEqual(type, STRING)) { return stringSelector; } if (isEqual(type, NUMBER)) { return numberSelector; } if (isEqual(type, TIME)) { return timeSelector; } if (isEqual(type, DATE_TIME)) { return dateTimeSelector; } return genericSelector; }
TypedValueComponentSelector { public TypedValueSelector makeSelectorForType(final String type) { if (isEqual(type, DATE)) { return dateSelector; } if (isEqual(type, DURATION_DAYS_TIME)) { return dayTimeSelector; } if (isEqual(type, DURATION_YEAR_MONTH)) { return yearsMosSelector; } if (isEqual(type, STRING)) { return stringSelector; } if (isEqual(type, NUMBER)) { return numberSelector; } if (isEqual(type, TIME)) { return timeSelector; } if (isEqual(type, DATE_TIME)) { return dateTimeSelector; } return genericSelector; } }
TypedValueComponentSelector { public TypedValueSelector makeSelectorForType(final String type) { if (isEqual(type, DATE)) { return dateSelector; } if (isEqual(type, DURATION_DAYS_TIME)) { return dayTimeSelector; } if (isEqual(type, DURATION_YEAR_MONTH)) { return yearsMosSelector; } if (isEqual(type, STRING)) { return stringSelector; } if (isEqual(type, NUMBER)) { return numberSelector; } if (isEqual(type, TIME)) { return timeSelector; } if (isEqual(type, DATE_TIME)) { return dateTimeSelector; } return genericSelector; } @Inject  TypedValueComponentSelector(final GenericSelector genericSelector,
                                       final DateSelector dateSelector,
                                       final DayTimeSelector dayTimeSelector,
                                       final YearsMonthsSelector yearsMosSelector,
                                       final StringSelector stringSelector,
                                       final NumberSelector numberSelector,
                                       final TimeSelector timeSelector,
                                       final DateTimeSelector dateTimeSelector); }
TypedValueComponentSelector { public TypedValueSelector makeSelectorForType(final String type) { if (isEqual(type, DATE)) { return dateSelector; } if (isEqual(type, DURATION_DAYS_TIME)) { return dayTimeSelector; } if (isEqual(type, DURATION_YEAR_MONTH)) { return yearsMosSelector; } if (isEqual(type, STRING)) { return stringSelector; } if (isEqual(type, NUMBER)) { return numberSelector; } if (isEqual(type, TIME)) { return timeSelector; } if (isEqual(type, DATE_TIME)) { return dateTimeSelector; } return genericSelector; } @Inject  TypedValueComponentSelector(final GenericSelector genericSelector,
                                       final DateSelector dateSelector,
                                       final DayTimeSelector dayTimeSelector,
                                       final YearsMonthsSelector yearsMosSelector,
                                       final StringSelector stringSelector,
                                       final NumberSelector numberSelector,
                                       final TimeSelector timeSelector,
                                       final DateTimeSelector dateTimeSelector); TypedValueSelector makeSelectorForType(final String type); }
TypedValueComponentSelector { public TypedValueSelector makeSelectorForType(final String type) { if (isEqual(type, DATE)) { return dateSelector; } if (isEqual(type, DURATION_DAYS_TIME)) { return dayTimeSelector; } if (isEqual(type, DURATION_YEAR_MONTH)) { return yearsMosSelector; } if (isEqual(type, STRING)) { return stringSelector; } if (isEqual(type, NUMBER)) { return numberSelector; } if (isEqual(type, TIME)) { return timeSelector; } if (isEqual(type, DATE_TIME)) { return dateTimeSelector; } return genericSelector; } @Inject  TypedValueComponentSelector(final GenericSelector genericSelector,
                                       final DateSelector dateSelector,
                                       final DayTimeSelector dayTimeSelector,
                                       final YearsMonthsSelector yearsMosSelector,
                                       final StringSelector stringSelector,
                                       final NumberSelector numberSelector,
                                       final TimeSelector timeSelector,
                                       final DateTimeSelector dateTimeSelector); TypedValueSelector makeSelectorForType(final String type);  }