public class FilePathNamingValidator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected FilePathRestrictions |
rules |
| Constructor and Description |
|---|
FilePathNamingValidator(FilePathRestrictions... rules) |
| Modifier and Type | Method and Description |
|---|---|
void |
validateFilePathNaming(FsFile fsFile)
Validate the given FS file.
|
void |
validateFilePathNaming(java.lang.String filePath)
Validate the given file path.
|
protected final FilePathRestrictions rules
public FilePathNamingValidator(FilePathRestrictions... rules)
rules - the rules to apply in validating file namingpublic void validateFilePathNaming(FsFile fsFile) throws FilePathNamingException
fsFile - the FS fileFilePathNamingException - if the FS file is invalidly namedpublic void validateFilePathNaming(java.lang.String filePath)
throws FilePathNamingException
filePath - the file pathFilePathNamingException - if the file path is invalidly named