Interface FileNameValidator

  • All Known Implementing Classes:
    DefaultFileNameValidator

    public interface FileNameValidator
    Generic validator for Path based resources
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean accept​(String fileName)
      Indicates if the current parameter path matched the current validator
      boolean accept​(org.uberfire.backend.vfs.Path path)
      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
    • 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