in src/main/java/com/epam/eco/commons/avro/avpath/PathUtils.java [42:61]
public static String templatePathToPlain(String templatePath, String separator) {
if (templatePath == null) {
return null;
}
String[] parts = StringUtils.split(templatePath, (char)GET_RECORD_FIELD_BEGIN_CH);
StringBuilder plainPath = new StringBuilder();
for (String part : parts) {
if (StringUtils.isEmpty(part)) {
continue;
}
part = StringUtils.substringBefore(part, ELEMENT_SELECTOR_MATCH_ALL);
if (plainPath.length() > 0) {
plainPath.append(separator);
}
plainPath.append(part);
}
return plainPath.toString();
}