Class DefaultFileNameValidator

    • Constructor Detail

      • DefaultFileNameValidator

        public DefaultFileNameValidator()
    • Method Detail

      • getPriority

        public int getPriority()
        Description copied from interface: FileNameValidator
        Defines the validator priority in terms of validator resolution. Lower is lower priority.
        Specified by:
        getPriority in interface FileNameValidator
        Returns:
        the priority
      • accept

        public boolean accept​(String fileName)
        Description copied from interface: FileNameValidator
        Indicates if the current parameter path matched the current validator
        Specified by:
        accept in interface FileNameValidator
        Parameters:
        fileName - File name to validate (including extension)
        Returns:
        true if matches, otherwise false
      • accept

        public boolean accept​(org.uberfire.backend.vfs.Path path)
        Description copied from interface: FileNameValidator
        Indicates if the current parameter path matched the current validator
        Specified by:
        accept in interface FileNameValidator
        Parameters:
        path - Path to validate
        Returns:
        true if matches, otherwise false