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.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.