diff --git a/model/src/main/java/one/nem/lacerta/model/PublicPath.java b/model/src/main/java/one/nem/lacerta/model/PublicPath.java index 0c8c67d2..de000fbc 100644 --- a/model/src/main/java/one/nem/lacerta/model/PublicPath.java +++ b/model/src/main/java/one/nem/lacerta/model/PublicPath.java @@ -41,6 +41,14 @@ public class PublicPath { } } + public PublicPath parse(String path) { + String[] pathArray = path.split("/"); + for (String p : pathArray) { + resolveInternal(p); + } + return this; + } + public PublicPath resolve(String path) { resolveInternal(path); return this;