public class FilePathNamingValidator extends 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(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 omero.FilePathNamingException
fsFile
- the FS fileomero.FilePathNamingException
- if the FS file is invalidly namedpublic void validateFilePathNaming(String filePath) throws omero.FilePathNamingException
filePath
- the file pathomero.FilePathNamingException
- if the file path is invalidly named
Version: 5.3.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.