Package ome.services.blitz.repo.path
Class FilePathNamingValidator
- java.lang.Object
-
- ome.services.blitz.repo.path.FilePathNamingValidator
-
public class FilePathNamingValidator extends java.lang.Object
- Since:
- 5.0
-
-
Field Summary
Fields Modifier and Type Field Description protected FilePathRestrictions
rules
-
Constructor Summary
Constructors Constructor Description FilePathNamingValidator(FilePathRestrictions... rules)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validateFilePathNaming(java.lang.String filePath)
Validate the given file path.void
validateFilePathNaming(FsFile fsFile)
Validate the given FS file.
-
-
-
Field Detail
-
rules
protected final FilePathRestrictions rules
-
-
Constructor Detail
-
FilePathNamingValidator
public FilePathNamingValidator(FilePathRestrictions... rules)
- Parameters:
rules
- the rules to apply in validating file naming
-
-
Method Detail
-
validateFilePathNaming
public void validateFilePathNaming(FsFile fsFile) throws FilePathNamingException
Validate the given FS file.- Parameters:
fsFile
- the FS file- Throws:
FilePathNamingException
- if the FS file is invalidly named
-
validateFilePathNaming
public void validateFilePathNaming(java.lang.String filePath) throws FilePathNamingException
Validate the given file path.- Parameters:
filePath
- the file path- Throws:
FilePathNamingException
- if the file path is invalidly named
-
-