Interface PathNamingService
-
public interface PathNamingServiceUtilities service for directories and files naming methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.uberfire.backend.vfs.PathbuildTargetPath(org.uberfire.backend.vfs.Path originalPath, String targetFileName)Creates a path by renaming a file or directory, keeping the original file extension (if applicable).org.uberfire.backend.vfs.PathbuildTargetPath(org.uberfire.backend.vfs.Path originalPath, org.uberfire.backend.vfs.Path targetParentDirectory, String targetFileName)Creates a path to a file or directory in another parent directory, keeping the original file extension (if applicable).StringgetExtension(String fileName)Returns the extension of the passed file name.
-
-
-
Method Detail
-
buildTargetPath
org.uberfire.backend.vfs.Path buildTargetPath(org.uberfire.backend.vfs.Path originalPath, String targetFileName)Creates a path by renaming a file or directory, keeping the original file extension (if applicable).- Parameters:
originalPath- Original file pathtargetFileName- New file name- Returns:
- Path for the new file
-
buildTargetPath
org.uberfire.backend.vfs.Path buildTargetPath(org.uberfire.backend.vfs.Path originalPath, org.uberfire.backend.vfs.Path targetParentDirectory, String targetFileName)Creates a path to a file or directory in another parent directory, keeping the original file extension (if applicable).- Parameters:
originalPath- Original file pathtargetParentDirectory- Parent directory of the created file/directory pathtargetFileName- New file name- Returns:
- Path for the new file
-
-