@Test public void testGetPathOneLevel() { Assert.assertTrue(JsonPath.getSplitPath("_mgt").isEmpty()); }
public static List<String> getSplitPath(String objectNameForHistory) { if (Strings.isNullOrEmpty(objectNameForHistory)) { return null; } List<String> splitPathList = new ArrayList<>(); String splitPath[] = objectNameForHistory.split(REG_EXP_SEPARATOR); for (int index = 0; index < splitPath.length - 1; ++index) { splitPathList.add(splitPath[index]); } return splitPathList; }
JsonPath { public static List<String> getSplitPath(String objectNameForHistory) { if (Strings.isNullOrEmpty(objectNameForHistory)) { return null; } List<String> splitPathList = new ArrayList<>(); String splitPath[] = objectNameForHistory.split(REG_EXP_SEPARATOR); for (int index = 0; index < splitPath.length - 1; ++index) { splitPathList.add(splitPath[index]); } return splitPathList; } }
JsonPath { public static List<String> getSplitPath(String objectNameForHistory) { if (Strings.isNullOrEmpty(objectNameForHistory)) { return null; } List<String> splitPathList = new ArrayList<>(); String splitPath[] = objectNameForHistory.split(REG_EXP_SEPARATOR); for (int index = 0; index < splitPath.length - 1; ++index) { splitPathList.add(splitPath[index]); } return splitPathList; }  }
JsonPath { public static List<String> getSplitPath(String objectNameForHistory) { if (Strings.isNullOrEmpty(objectNameForHistory)) { return null; } List<String> splitPathList = new ArrayList<>(); String splitPath[] = objectNameForHistory.split(REG_EXP_SEPARATOR); for (int index = 0; index < splitPath.length - 1; ++index) { splitPathList.add(splitPath[index]); } return splitPathList; }  static String getTargetOfPath(String path); static List<String> getSplitPath(String objectNameForHistory); }
JsonPath { public static List<String> getSplitPath(String objectNameForHistory) { if (Strings.isNullOrEmpty(objectNameForHistory)) { return null; } List<String> splitPathList = new ArrayList<>(); String splitPath[] = objectNameForHistory.split(REG_EXP_SEPARATOR); for (int index = 0; index < splitPath.length - 1; ++index) { splitPathList.add(splitPath[index]); } return splitPathList; }  static String getTargetOfPath(String path); static List<String> getSplitPath(String objectNameForHistory);  }