@Test public void testRemovePrefixAndSuffix() { final String input = "duration(\"P1Y2M\")"; final String expected = "1Y2M"; final String actual = converter.removePrefixAndSuffix(input); assertEquals(expected, actual); }
String removePrefixAndSuffix(final String dmnString) { return DurationHelper.getFunctionParameter(dmnString).substring(1); }
YearsMonthsValueConverter { String removePrefixAndSuffix(final String dmnString) { return DurationHelper.getFunctionParameter(dmnString).substring(1); } }
YearsMonthsValueConverter { String removePrefixAndSuffix(final String dmnString) { return DurationHelper.getFunctionParameter(dmnString).substring(1); } @Inject  YearsMonthsValueConverter(final ClientTranslationService translationService); }
YearsMonthsValueConverter { String removePrefixAndSuffix(final String dmnString) { return DurationHelper.getFunctionParameter(dmnString).substring(1); } @Inject  YearsMonthsValueConverter(final ClientTranslationService translationService); YearsMonthsValue fromDMNString(final String dmnString); String toDMNString(final String years,
                              final String months); String toDisplayValue(final String dmnValue); }
YearsMonthsValueConverter { String removePrefixAndSuffix(final String dmnString) { return DurationHelper.getFunctionParameter(dmnString).substring(1); } @Inject  YearsMonthsValueConverter(final ClientTranslationService translationService); YearsMonthsValue fromDMNString(final String dmnString); String toDMNString(final String years,
                              final String months); String toDisplayValue(final String dmnValue);  }