Class SVNPathUtil
java.lang.Object
org.tmatesoft.svn.core.internal.util.SVNPathUtil
- Version:
- 1.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
static String
canonicalizePath
(String path) static void
checkPathIsValid
(String path) static String
condencePaths
(String[] paths, Collection condencedPaths, boolean removeRedundantPaths) static String
getAbsolutePath
(String path) static String
getCommonPathAncestor
(String path1, String path2) static String
getPathAsChild
(String path, String pathChild) Former pathIsChild.static String
getRelativePath
(String parent, String child) static int
getSegmentsCount
(String path) static String
static boolean
isAbsolute
(String path) static boolean
isAncestor
(String parentPath, String childPath) static boolean
isCanonical
(String path) static boolean
isSinglePathComponent
(String name) static boolean
static boolean
isWithinBasePath
(String basePath, String path) static String
removeHead
(String path) static String
removeTail
(String path) static String
static String
validateFilePath
(String path)
-
Field Details
-
PATH_COMPARATOR
-
-
Constructor Details
-
SVNPathUtil
public SVNPathUtil()
-
-
Method Details
-
isCanonical
-
checkPathIsValid
- Throws:
SVNException
-
getAbsolutePath
-
validateFilePath
-
canonicalizePath
-
canonicalizeAbsolutePath
-
append
-
isSinglePathComponent
-
head
-
removeHead
-
tail
-
removeTail
-
getCommonPathAncestor
-
condencePaths
public static String condencePaths(String[] paths, Collection condencedPaths, boolean removeRedundantPaths) -
getSegmentsCount
-
isAncestor
-
getPathAsChild
Former pathIsChild.- Parameters:
path
-pathChild
-- Returns:
-
getRelativePath
-
isURL
-
isWithinBasePath
-
isAbsolute
-