Class InstallPear.PEARFilter

java.lang.Object
javax.swing.filechooser.FileFilter
org.apache.uima.tools.pear.install.InstallPear.PEARFilter
Enclosing class:
InstallPear

protected static class InstallPear.PEARFilter extends FileFilter
The PEARFilter class allows to filter directories, as well as '.tear' and '.pear' files.
  • Field Details

  • Constructor Details

    • PEARFilter

      protected PEARFilter()
  • Method Details

    • accept

      public boolean accept(File file)
      Returns true, if the given input file is directory or has 'tear' or 'pear' extension, false otherwise.
      Specified by:
      accept in class FileFilter
      Parameters:
      file - the file
      Returns:
      true, if the given input file is directory or has 'tear' or 'pear' extension, false otherwise.
    • getExtension

      private String getExtension(File f)
      Returns file name extension in lowercase.
      Parameters:
      f - The given file.
      Returns:
      The file name extension in lowercase.
    • getDescription

      public String getDescription()
      Returns the filter description.
      Specified by:
      getDescription in class FileFilter
      Returns:
      The filter description.