1 package org.opendaylight.controller.cluster.datastore.node.utils;
3 public class PathUtils {
4 public static String getParentPath(String currentElementPath){
5 String parentPath = "";
7 if(currentElementPath != null){
8 String[] parentPaths = currentElementPath.split("/");
9 if(parentPaths.length > 2){
10 for(int i=0;i<parentPaths.length-1;i++){
11 if(parentPaths[i].length() > 0){
12 parentPath += "/" + parentPaths[i];