@Test public void testGetPathTwoLevel() { List<String> splitPath = JsonPath.getSplitPath("_mgt.ClassificationRule"); Assert.assertEquals(1, splitPath.size()); Assert.assertEquals("_mgt", splitPath.get(0)); }
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);  }