@Test public void regexInformationCanBeRetrievedForParameter() { Element element = buildElement("{id: [0-9]*}/subpath"); PathDetails pathDetails = new PathDetails(element); assertThat(pathDetails.getRegex("id")).isEqualTo("[0-9]*"); }
public String getRegex(String paramName) { return regexes.get(paramName); }
PathDetails { public String getRegex(String paramName) { return regexes.get(paramName); } }
PathDetails { public String getRegex(String paramName) { return regexes.get(paramName); } PathDetails(Element element);  PathDetails(
            Element element,
            PathDetails basePath); }
PathDetails { public String getRegex(String paramName) { return regexes.get(paramName); } PathDetails(Element element);  PathDetails(
            Element element,
            PathDetails basePath); String getValue(); String getRegex(String paramName); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
PathDetails { public String getRegex(String paramName) { return regexes.get(paramName); } PathDetails(Element element);  PathDetails(
            Element element,
            PathDetails basePath); String getValue(); String getRegex(String paramName); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }