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 omero.FilePathNamingException
fsFile
- the FS fileomero.FilePathNamingException
- if the FS file is invalidly namedpublic void validateFilePathNaming(java.lang.String filePath) throws omero.FilePathNamingException
filePath
- the file pathomero.FilePathNamingException
- if the file path is invalidly named
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.