public interface FileNameValidator
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Path path)
Indicates if the current parameter path matched the current validator
|
boolean |
accept(String fileName)
Indicates if the current parameter path matched the current validator
|
int |
getPriority()
Defines the validator priority in terms of validator resolution.
|
boolean |
isValid(String value)
Validate the value
|
int getPriority()
boolean accept(String fileName)
fileName
- File name to validate (including extension)boolean accept(Path path)
path
- Path to validateboolean isValid(String value)
value
- Value to be validatedCopyright © 2012–2018 JBoss by Red Hat. All rights reserved.