public interface DescendantFileSource extends FileSource
| Modifier and Type | Method and Description |
|---|---|
DescendantFileSource |
getDescendant(java.lang.String relativePath)
Return a DescendantFileSource representing the descendant directory
specified by the relative path.
|
java.lang.String |
getRelativePath(java.io.File file)
Return the path relative to the root directory that represents the given descendant file.
|
java.lang.String |
getRelativePath(java.lang.String filePath)
Return the path relative to the root directory that represents the given descendant file path.
|
java.io.File |
getRootDirectory()
Return the root directory represented by this FileLocator as a java.io.File.
|
java.lang.String |
getRootDirectoryPath()
Return the path of the root directory represented by this FileLocator.
|
boolean |
isDescendant(java.io.File file)
Return true if the given File is an existing descendant of the root directory, false otherwise.
|
boolean |
isDescendant(java.lang.String filePath)
Return true if the given file path is an existing descendant of the root directory, false otherwise.
|
getFileDescendantFileSource getDescendant(java.lang.String relativePath)
relativePath - the relative path to the descendant directory.java.io.File getRootDirectory()
java.lang.String getRootDirectoryPath()
boolean isDescendant(java.io.File file)
file - the File to be checked if it is a descendant.boolean isDescendant(java.lang.String filePath)
filePath - the file path to be checked if it is a descendant.java.lang.String getRelativePath(java.io.File file)
file - the File for which the relative path is to be determined.java.lang.String getRelativePath(java.lang.String filePath)
filePath - the file path for which the relative path is to be determined.