Class PathUtils

java.lang.Object
com.regnosys.rosetta.common.util.PathUtils

public class PathUtils extends Object
  • Constructor Details

    • PathUtils

      public PathUtils()
  • Method Details

    • toRosettaPath

      public static com.rosetta.model.lib.path.RosettaPath toRosettaPath(Path path)
    • toPath

      public static Path toPath(com.rosetta.model.lib.path.RosettaPath rosettaPath)
    • getExcludedPaths

      public static List<Path> getExcludedPaths(String excludedPathsFile)
      Parse contents of excluded paths file into list of path objects.
    • filterSubPaths

      public static List<Path> filterSubPaths(Collection<Path> paths)
      Filter sub-paths (e.g. that endWith other paths) from list of paths. e.g. given list ["a.b.c", "b.c", "c", "a.b", "x.y.z"] would be filtered to ["a.b.c", "a.b", "x.y.z"].