Ejemplo n.º 1
0
 @Nullable
 public PackagingElementNode<?> findCompositeNodeByPath(String parentPath) {
   PackagingElementNode<?> node = getRootPackagingNode();
   for (String name : StringUtil.split(parentPath, "/")) {
     final CompositePackagingElementNode child = node.findCompositeChild(name);
     if (child == null) {
       return null;
     }
     node = child;
   }
   return node;
 }