@Test public void testPlaceholderNamesGetter() { final DynamicPathTemplate path = new DynamicPathTemplate("${foo:-f}/${bar:-b}/${baz:-bz}"); assertEquals(ImmutableList.of("foo", "bar", "baz"), path.getPlaceholderNames()); }
public List<String> getPlaceholderNames() { return placeholderNames; }
DynamicPathTemplate implements Serializable { public List<String> getPlaceholderNames() { return placeholderNames; } }
DynamicPathTemplate implements Serializable { public List<String> getPlaceholderNames() { return placeholderNames; } DynamicPathTemplate(String rawPath); }
DynamicPathTemplate implements Serializable { public List<String> getPlaceholderNames() { return placeholderNames; } DynamicPathTemplate(String rawPath); List<String> getPlaceholderNames(); Map<String, String> getPlaceholderAttributes(List<String> values); String replaceDynamicPart(List<String> values); List<String> extractValuesFrom(Map<String, String> attributes); }
DynamicPathTemplate implements Serializable { public List<String> getPlaceholderNames() { return placeholderNames; } DynamicPathTemplate(String rawPath); List<String> getPlaceholderNames(); Map<String, String> getPlaceholderAttributes(List<String> values); String replaceDynamicPart(List<String> values); List<String> extractValuesFrom(Map<String, String> attributes); final String staticPrefix; final String dynamicPart; }