Interface FileNameValidator
-
- All Known Implementing Classes:
DefaultFileNameValidator
public interface FileNameValidatorGeneric validator for Path based resources
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(String fileName)Indicates if the current parameter path matched the current validatorbooleanaccept(org.uberfire.backend.vfs.Path path)Indicates if the current parameter path matched the current validatorintgetPriority()Defines the validator priority in terms of validator resolution.booleanisValid(String value)Validate the value
-
-
-
Method Detail
-
getPriority
int getPriority()
Defines the validator priority in terms of validator resolution. Lower is lower priority.- Returns:
- the priority
-
accept
boolean accept(String fileName)
Indicates if the current parameter path matched the current validator- Parameters:
fileName- File name to validate (including extension)- Returns:
- true if matches, otherwise false
-
accept
boolean accept(org.uberfire.backend.vfs.Path path)
Indicates if the current parameter path matched the current validator- Parameters:
path- Path to validate- Returns:
- true if matches, otherwise false
-
isValid
boolean isValid(String value)
Validate the value- Parameters:
value- Value to be validated
-
-