@ApplicationScoped public class DefaultFileNameValidator extends Object implements FileNameValidator
| Constructor and Description |
|---|
DefaultFileNameValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(org.uberfire.backend.vfs.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
|
public int getPriority()
FileNameValidatorgetPriority in interface FileNameValidatorpublic boolean accept(String fileName)
FileNameValidatoraccept in interface FileNameValidatorfileName - File name to validate (including extension)public boolean accept(org.uberfire.backend.vfs.Path path)
FileNameValidatoraccept in interface FileNameValidatorpath - Path to validatepublic boolean isValid(String value)
FileNameValidatorisValid in interface FileNameValidatorvalue - Value to be validatedCopyright © 2012–2016 JBoss by Red Hat. All rights reserved.